From e3f6c9cdd804120df4ec0b0fa33c033371958f17 Mon Sep 17 00:00:00 2001 From: fche Date: Mon, 2 May 2005 14:24:34 +0000 Subject: [PATCH] none --- tapsets/dynamic_cg/usage.stp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tapsets/dynamic_cg/usage.stp diff --git a/tapsets/dynamic_cg/usage.stp b/tapsets/dynamic_cg/usage.stp new file mode 100644 index 000000000..1625768b5 --- /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; +} + + -- 2.43.5