diff options
-rw-r--r-- | tapsets/dynamic_cg/usage.stp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tapsets/dynamic_cg/usage.stp b/tapsets/dynamic_cg/usage.stp new file mode 100644 index 00000000..1625768b --- /dev/null +++ b/tapsets/dynamic_cg/usage.stp @@ -0,0 +1,30 @@ + +probe.kernel.sys_open.entry() +{ + $dynamic_call_graph =1; +} + +# What you would see in the output would be something of this kind +# call sys_open +# call getname +# call do_getname +# return do_getname +# return getname +# call get_unused_fd +# call find_next_zero_bit +# return find_next_zero_bit +# return get_unused_fd +# call filep_open + ..... +return sys_open + +# The above probe could be customized to a particular process as well, +# like in the following + +probe.kernel.sys_open.entry() +{ +if ($PID == 1234) + $dynamic_call_graph =1; +} + + |