summaryrefslogtreecommitdiffstats
path: root/examples/small_demos
diff options
context:
space:
mode:
Diffstat (limited to 'examples/small_demos')
-rwxr-xr-xexamples/small_demos/prof.stp2
-rwxr-xr-xexamples/small_demos/top.stp2
2 files changed, 2 insertions, 2 deletions
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()]++
}