summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2009-01-30 12:33:14 -0500
committerWilliam Cohen <wcohen@redhat.com>2009-01-30 12:33:14 -0500
commit1cc8a4c78bff79ea8b60e916e5cd01571b469b03 (patch)
tree4e32eca7acddc28d2e5aa0de5a1bc559a2550c95 /testsuite/systemtap.samples
parent9fbda39bf7687ceeee28813f30f6e3ec5c72fc5d (diff)
downloadsystemtap-steved-1cc8a4c78bff79ea8b60e916e5cd01571b469b03.tar.gz
systemtap-steved-1cc8a4c78bff79ea8b60e916e5cd01571b469b03.tar.xz
systemtap-steved-1cc8a4c78bff79ea8b60e916e5cd01571b469b03.zip
Move the scf.stp example from systemtap.samples to systemtap.examples.
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r--testsuite/systemtap.samples/scf.stp25
-rw-r--r--testsuite/systemtap.samples/scf2.stp13
2 files changed, 0 insertions, 38 deletions
diff --git a/testsuite/systemtap.samples/scf.stp b/testsuite/systemtap.samples/scf.stp
deleted file mode 100644
index 1108fdea..00000000
--- a/testsuite/systemtap.samples/scf.stp
+++ /dev/null
@@ -1,25 +0,0 @@
-# scf.stp
-# A reimplementation of user script:smp_call_function example given at OLS 2005
-# in the current language.
-#
-# Will Cohen
-# 9/22/2005
-
-global traces
-
-probe kernel.function("smp_call_function")
-{
- traces[pid(), pexecname(), backtrace()] += 1;
-}
-
-probe begin { print( "starting probe\n" ); }
-
-probe end {
- print("end of data collection\n");
- foreach( [pid, name, stack] in traces){
- print( "traces[" . sprint(pid) . "," . name . ",\n" );
- print_stack(stack)
- print( "] = " . sprint(traces[pid, name, stack]) );
- print( "\n" );
- }
-}
diff --git a/testsuite/systemtap.samples/scf2.stp b/testsuite/systemtap.samples/scf2.stp
deleted file mode 100644
index 5ad46350..00000000
--- a/testsuite/systemtap.samples/scf2.stp
+++ /dev/null
@@ -1,13 +0,0 @@
-global traces
-
-probe kernel.function("smp_call_function") {
- traces[pid(), pexecname(), backtrace()] ++
-}
-probe timer.ms(1000) { exit () }
-probe end {
- foreach ([pid+, name, stack] in traces) { # sort by pid
- printf ("traces[%d,%s,\n", pid, name)
- print_stack (stack)
- printf ("] = %d\n", traces[pid, name, stack]);
- }
-}