From 7f79ea13a0f64573ce13353257d322ae49ef0c27 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Thu, 24 Apr 2008 12:20:13 -0400 Subject: Move examples to testsuite/systemtap.examples --- testsuite/systemtap.examples/socket-trace.stp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 testsuite/systemtap.examples/socket-trace.stp (limited to 'testsuite/systemtap.examples/socket-trace.stp') diff --git a/testsuite/systemtap.examples/socket-trace.stp b/testsuite/systemtap.examples/socket-trace.stp new file mode 100755 index 00000000..13ab8e06 --- /dev/null +++ b/testsuite/systemtap.examples/socket-trace.stp @@ -0,0 +1,8 @@ +#! /usr/bin/env stap + +probe kernel.function("*@net/socket.c").call { + printf ("%s -> %s\n", thread_indent(1), probefunc()) +} +probe kernel.function("*@net/socket.c").return { + printf ("%s <- %s\n", thread_indent(-1), probefunc()) +} -- cgit