diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ChangeLog | 5 | ||||
-rwxr-xr-x | examples/small_demos/prof.stp | 2 | ||||
-rwxr-xr-x | examples/small_demos/top.stp | 2 | ||||
-rw-r--r-- | examples/socket-trace.stp | 2 |
4 files changed, 8 insertions, 3 deletions
diff --git a/examples/ChangeLog b/examples/ChangeLog index 0d32fe3a..5ee73c56 100644 --- a/examples/ChangeLog +++ b/examples/ChangeLog @@ -1,3 +1,8 @@ +2007-04-02 Frank Ch. Eigler <fche@elastic.org> + + * socket-trace.stp, small_demos/prof.stp, top.stp: Adapt to + .inline -> .function change. + 2007-01-30 Frank Ch. Eigler <fche@elastic.org> * socket-trace.stp: Added from the tutorial. diff --git a/examples/small_demos/prof.stp b/examples/small_demos/prof.stp index 986be65e..e08aa21c 100755 --- a/examples/small_demos/prof.stp +++ b/examples/small_demos/prof.stp @@ -11,7 +11,7 @@ # Will profile pid 3323 until it ^c is hit. # -probe kernel.function("sys_*") { +probe kernel.function("sys_*").call { if (target() == tid()) calltime[tid()] = gettimeofday_us() } diff --git a/examples/small_demos/top.stp b/examples/small_demos/top.stp index ed658907..69931ab1 100755 --- a/examples/small_demos/top.stp +++ b/examples/small_demos/top.stp @@ -13,7 +13,7 @@ function print_top () { delete syscalls } -probe kernel.function("sys_*") { +probe kernel.function("sys_*").call { syscalls[probefunc()]++ } diff --git a/examples/socket-trace.stp b/examples/socket-trace.stp index 53b69ecc..a34a33a8 100644 --- a/examples/socket-trace.stp +++ b/examples/socket-trace.stp @@ -1,4 +1,4 @@ -probe kernel.function("*@net/socket.c") { +probe kernel.function("*@net/socket.c").call { printf ("%s -> %s\n", thread_indent(1), probefunc()) } probe kernel.function("*@net/socket.c").return { |