]> sourceware.org Git - systemtap.git/commitdiff
samples: separate into subdirectories by subsystem
authorFrank Ch. Eigler <fche@elastic.org>
Thu, 7 Aug 2008 20:47:18 +0000 (16:47 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 7 Aug 2008 20:47:18 +0000 (16:47 -0400)
83 files changed:
testsuite/systemtap.examples/ChangeLog
testsuite/systemtap.examples/general/ansi_colors.stp [moved from testsuite/systemtap.examples/small_demos/ansi_colors.stp with 100% similarity]
testsuite/systemtap.examples/general/click.wav [moved from testsuite/systemtap.examples/small_demos/click.wav with 100% similarity]
testsuite/systemtap.examples/general/graphs.meta [moved from testsuite/systemtap.examples/graphs.meta with 100% similarity]
testsuite/systemtap.examples/general/graphs.stp [moved from testsuite/systemtap.examples/graphs.stp with 100% similarity]
testsuite/systemtap.examples/general/helloworld.meta [moved from testsuite/systemtap.examples/helloworld.meta with 100% similarity]
testsuite/systemtap.examples/general/helloworld.stp [moved from testsuite/systemtap.examples/helloworld.stp with 100% similarity]
testsuite/systemtap.examples/general/key.stp [moved from testsuite/systemtap.examples/small_demos/key.stp with 100% similarity]
testsuite/systemtap.examples/general/keyhack.stp [moved from testsuite/systemtap.examples/small_demos/keyhack.stp with 100% similarity]
testsuite/systemtap.examples/general/para-callgraph.meta [moved from testsuite/systemtap.examples/para-callgraph.meta with 100% similarity]
testsuite/systemtap.examples/general/para-callgraph.stp [moved from testsuite/systemtap.examples/para-callgraph.stp with 100% similarity]
testsuite/systemtap.examples/general/return.wav [moved from testsuite/systemtap.examples/small_demos/return.wav with 100% similarity]
testsuite/systemtap.examples/html/html_footer.tmpl [moved from testsuite/systemtap.examples/html_footer.tmpl with 100% similarity]
testsuite/systemtap.examples/html/html_header.tmpl [moved from testsuite/systemtap.examples/html_header.tmpl with 100% similarity]
testsuite/systemtap.examples/html/systemtap.css [moved from testsuite/systemtap.examples/systemtap.css with 100% similarity]
testsuite/systemtap.examples/html/systemtapcorner.gif [moved from testsuite/systemtap.examples/systemtapcorner.gif with 100% similarity]
testsuite/systemtap.examples/html/systemtaplogo.png [moved from testsuite/systemtap.examples/systemtaplogo.png with 100% similarity]
testsuite/systemtap.examples/io/disktop.meta [moved from testsuite/systemtap.examples/disktop.meta with 100% similarity]
testsuite/systemtap.examples/io/disktop.stp [moved from testsuite/systemtap.examples/disktop.stp with 100% similarity]
testsuite/systemtap.examples/io/io_submit.meta [moved from testsuite/systemtap.examples/io_submit.meta with 100% similarity]
testsuite/systemtap.examples/io/io_submit.stp [moved from testsuite/systemtap.examples/io_submit.stp with 100% similarity]
testsuite/systemtap.examples/io/iostat-scsi.stp [moved from testsuite/systemtap.examples/iostat-scsi.stp with 100% similarity]
testsuite/systemtap.examples/io/iostat-scsi.txt [moved from testsuite/systemtap.examples/iostat-scsi.txt with 100% similarity]
testsuite/systemtap.examples/io/iotime.meta [moved from testsuite/systemtap.examples/iotime.meta with 100% similarity]
testsuite/systemtap.examples/io/iotime.stp [moved from testsuite/systemtap.examples/iotime.stp with 100% similarity]
testsuite/systemtap.examples/io/iotop.meta [moved from testsuite/systemtap.examples/iotop.meta with 100% similarity]
testsuite/systemtap.examples/io/iotop.stp [moved from testsuite/systemtap.examples/iotop.stp with 100% similarity]
testsuite/systemtap.examples/io/traceio.meta [moved from testsuite/systemtap.examples/traceio.meta with 100% similarity]
testsuite/systemtap.examples/io/traceio.stp [moved from testsuite/systemtap.examples/traceio.stp with 100% similarity]
testsuite/systemtap.examples/io/traceio2.meta [moved from testsuite/systemtap.examples/traceio2.meta with 100% similarity]
testsuite/systemtap.examples/io/traceio2.stp [moved from testsuite/systemtap.examples/traceio2.stp with 100% similarity]
testsuite/systemtap.examples/network/nettop.meta [moved from testsuite/systemtap.examples/nettop.meta with 100% similarity]
testsuite/systemtap.examples/network/nettop.stp [moved from testsuite/systemtap.examples/nettop.stp with 100% similarity]
testsuite/systemtap.examples/network/nettop.txt [moved from testsuite/systemtap.examples/nettop.txt with 100% similarity]
testsuite/systemtap.examples/network/socket-trace.meta [moved from testsuite/systemtap.examples/socket-trace.meta with 100% similarity]
testsuite/systemtap.examples/network/socket-trace.stp [moved from testsuite/systemtap.examples/socket-trace.stp with 100% similarity]
testsuite/systemtap.examples/network/socktop [moved from testsuite/systemtap.examples/socktop with 100% similarity]
testsuite/systemtap.examples/network/socktop.txt [moved from testsuite/systemtap.examples/socktop.txt with 100% similarity]
testsuite/systemtap.examples/process/futexes.meta [moved from testsuite/systemtap.examples/futexes.meta with 100% similarity]
testsuite/systemtap.examples/process/futexes.stp [moved from testsuite/systemtap.examples/futexes.stp with 100% similarity]
testsuite/systemtap.examples/process/futexes.txt [moved from testsuite/systemtap.examples/futexes.txt with 100% similarity]
testsuite/systemtap.examples/process/pf2.meta [moved from testsuite/systemtap.examples/pf2.meta with 100% similarity]
testsuite/systemtap.examples/process/pf2.stp [moved from testsuite/systemtap.examples/pf2.stp with 100% similarity]
testsuite/systemtap.examples/process/pf2.txt [moved from testsuite/systemtap.examples/pf2.txt with 100% similarity]
testsuite/systemtap.examples/process/proc_snoop.stp [moved from testsuite/systemtap.examples/small_demos/proc_snoop.stp with 100% similarity]
testsuite/systemtap.examples/process/sig_by_pid.meta [moved from testsuite/systemtap.examples/sig_by_pid.meta with 100% similarity]
testsuite/systemtap.examples/process/sig_by_pid.stp [moved from testsuite/systemtap.examples/sig_by_pid.stp with 100% similarity]
testsuite/systemtap.examples/process/sig_by_pid.txt [moved from testsuite/systemtap.examples/sig_by_pid.txt with 100% similarity]
testsuite/systemtap.examples/process/sig_by_proc.meta [moved from testsuite/systemtap.examples/sig_by_proc.meta with 100% similarity]
testsuite/systemtap.examples/process/sig_by_proc.stp [moved from testsuite/systemtap.examples/sig_by_proc.stp with 100% similarity]
testsuite/systemtap.examples/process/sig_by_proc.txt [moved from testsuite/systemtap.examples/sig_by_proc.txt with 100% similarity]
testsuite/systemtap.examples/process/sigkill.meta [moved from testsuite/systemtap.examples/sigkill.meta with 100% similarity]
testsuite/systemtap.examples/process/sigkill.stp [moved from testsuite/systemtap.examples/sigkill.stp with 100% similarity]
testsuite/systemtap.examples/process/sigmon.meta [moved from testsuite/systemtap.examples/sigmon.meta with 100% similarity]
testsuite/systemtap.examples/process/sigmon.stp [moved from testsuite/systemtap.examples/sigmon.stp with 100% similarity]
testsuite/systemtap.examples/process/sleepingBeauties.meta [moved from testsuite/systemtap.examples/sleepingBeauties.meta with 100% similarity]
testsuite/systemtap.examples/process/sleepingBeauties.stp [moved from testsuite/systemtap.examples/sleepingBeauties.stp with 100% similarity]
testsuite/systemtap.examples/process/sleeptime.meta [moved from testsuite/systemtap.examples/sleeptime.meta with 100% similarity]
testsuite/systemtap.examples/process/sleeptime.stp [moved from testsuite/systemtap.examples/sleeptime.stp with 100% similarity]
testsuite/systemtap.examples/process/syscalls_by_pid.meta [moved from testsuite/systemtap.examples/syscalls_by_pid.meta with 100% similarity]
testsuite/systemtap.examples/process/syscalls_by_pid.stp [moved from testsuite/systemtap.examples/syscalls_by_pid.stp with 100% similarity]
testsuite/systemtap.examples/process/syscalls_by_pid.txt [moved from testsuite/systemtap.examples/syscalls_by_pid.txt with 100% similarity]
testsuite/systemtap.examples/process/syscalls_by_proc.meta [moved from testsuite/systemtap.examples/syscalls_by_proc.meta with 100% similarity]
testsuite/systemtap.examples/process/syscalls_by_proc.stp [moved from testsuite/systemtap.examples/syscalls_by_proc.stp with 100% similarity]
testsuite/systemtap.examples/process/syscalls_by_proc.txt [moved from testsuite/systemtap.examples/syscalls_by_proc.txt with 100% similarity]
testsuite/systemtap.examples/process/syscalltimes [moved from testsuite/systemtap.examples/syscalltimes with 100% similarity]
testsuite/systemtap.examples/process/syscalltimes.txt [moved from testsuite/systemtap.examples/syscalltimes.txt with 100% similarity]
testsuite/systemtap.examples/process/wait4time.meta [moved from testsuite/systemtap.examples/wait4time.meta with 100% similarity]
testsuite/systemtap.examples/process/wait4time.stp [moved from testsuite/systemtap.examples/wait4time.stp with 100% similarity]
testsuite/systemtap.examples/profiling/functioncallcount.meta [moved from testsuite/systemtap.examples/functioncallcount.meta with 100% similarity]
testsuite/systemtap.examples/profiling/functioncallcount.stp [moved from testsuite/systemtap.examples/functioncallcount.stp with 100% similarity]
testsuite/systemtap.examples/profiling/thread-times.meta [moved from testsuite/systemtap.examples/thread-times.meta with 100% similarity]
testsuite/systemtap.examples/profiling/thread-times.stp [moved from testsuite/systemtap.examples/thread-times.stp with 100% similarity]
testsuite/systemtap.examples/small_demos/close.stp [deleted file]
testsuite/systemtap.examples/small_demos/demo_script.txt [deleted file]
testsuite/systemtap.examples/small_demos/fileopen.stp [deleted file]
testsuite/systemtap.examples/small_demos/kmalloc.stp [deleted file]
testsuite/systemtap.examples/small_demos/kmalloc2.stp [deleted file]
testsuite/systemtap.examples/small_demos/prof.stp [deleted file]
testsuite/systemtap.examples/small_demos/rwtiming.stp [deleted file]
testsuite/systemtap.examples/small_demos/sched_snoop.stp [deleted file]
testsuite/systemtap.examples/small_demos/sys.stp [deleted file]
testsuite/systemtap.examples/small_demos/top.stp [deleted file]

index fa6a3aa34e50f70e6abfd0ad0ada257048f2bdeb..89503a6476009569227c70c2ea7c39b37feb5d25 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-07  Frank Ch. Eigler  <fche@elastic.org>
+
+       * small_demos: Unique parts kept, others dropped.
+       * all other samples: Moved into new subdirectories.
+
 2008-08-07  Mark Wielaard  <mwielaard@redhat.com>
 
        * examples-index-gen.pl: New file.
diff --git a/testsuite/systemtap.examples/small_demos/close.stp b/testsuite/systemtap.examples/small_demos/close.stp
deleted file mode 100755 (executable)
index 7ba2a03..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env stap
-
-probe syscall.close {
-       printf("%s: %s(%s) = ", execname(), name, argstr)
-}
-
-probe syscall.close.return {
-       printf("%s\n", returnstr(returnp))
-}
-
-probe end {
-       printf("DONE\n")
-}
-
diff --git a/testsuite/systemtap.examples/small_demos/demo_script.txt b/testsuite/systemtap.examples/small_demos/demo_script.txt
deleted file mode 100644 (file)
index f3166a4..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-> cd /root/systemtap
-
-A systemtap script can be as simple as a single line. For example,
-the following script places a probepoint on the kernel sys_read()
-function and prints all callers with the function's arguments.
-
->stap -e 'probe syscall.open {printf("%s: %s\n", execname(), argstr)}'
-
-Most scripts are a bit longer. (show top.stp)
-This script sets a probepoint on all kernel functions beginning with "sys_".
-When the probepoint is hit, it increments an entry in the map 
-(or associative array) "syscalls" with the key "probefunc()" which returns
-the name of the function that was triggered. For example, "sys_read".
-
-There is a timer that is triggered every 5000ms or 5 seconds. That timer
-calls the function print_top(). print_top() sorts the syscalls map
-and prints the top 20 entries. Then it clears the map.
-
-> ./top.stp
-
-(after stopping "top" go ahead and enter "./sys.stp". It takes a minute
-to load this script. Diplay the source in another window and talk 
-while it is loading.)
-
-The "top" script looked only at the functions called. If we want more 
-detail about the functions, we can use systemtap to examine their local 
-arguments and variables. However that would be difficult because each 
-system call has different parameters. The Syscall Tapset solves
-this problem. To use it, we set probe points using the syntax "syscall.name"
-instead of kernel.function("sys_name"). The Syscall Tapset provides three
-defined variables we can use:
-name - the name of the function
-argstr - on function entry, a formatted string containing the arguments
-retstr - on function exit, the return value and possibly error code
-
-In this example, we filter out programs named "staprun" because this is 
-part of the systemtap infrastructure. (It may be filtered out
-automatically in the future.)
-
-The next example shows how you can use systemtap to focus on
-specific programs or pids. (show prof.stp)
-
-Like the "top" example, this script places probes on all kernel
-functions starting with "sys_". Only the probepoint also checks to see
-if the tid/pid matches the one returned by "target()". We'll show how
-the target pid is set later.
-
-Unlike the previous examples, this script sets a probe point on all the 
-system call returns. When triggered, this probepoint computes the elapsed
-time since the function entry. 
-
-To run this script, we must give it a pid to use for the target, or a
-program to run, in which case target will be its pid.
-
->  ./prof.stp -c "top -n5"
-
---------------------------------
-
-Systemtap can also run in an unsafe mode where you can give
-it arbitrary C code to run at probepoints, or modify kernel variables
-and structures. This is very dangerous so only experts with root access will
-ever be permitted to do this.
-
-(show keyhack.stp)
-
-The next example will modify the local variable "keycode" in the "kdb_keycode"
-function in the kernel driver. We indicate it is a local variable by putting
-a dollar sign before the name.
-
-./keyhack.stp
-
-(prints error message)
-
-To tell systemtap we really want to run this script, we must use the "-g" flag.
-
-./keyhack.stp -g
-
-(type some keys. "m" should display as "b" in every window) 
-
-This example is not something you would normally want to do. There are 
-far better ways to remap a keyboard. What it demonstartes is that Systemtap 
-can modify variables in a running kernel.
-
-(show kmalloc.stp)
-This next script shows the kind of statistics systemtap can collect.
-It collects information about kernel allocations.
-
-> ./kmalloc.stp
-
-Now we can refine this further
-(show kmalloc2.stp)
-
-Remember in some previous examples, we used maps or associative arrays. Maps can contain
-statistics too.  So we have enhanced the previous script to collect statistics per
-program name.  The output might be large so we'll redirect it to a file.
-
-> ./kmalloc2.stp > out
-
-(runs for 10 seconds)
-
-> more out
-
diff --git a/testsuite/systemtap.examples/small_demos/fileopen.stp b/testsuite/systemtap.examples/small_demos/fileopen.stp
deleted file mode 100755 (executable)
index c1298f9..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#! /usr/bin/env stap
-
-#
-# fileopen.stp
-#
-# This is based on dtrace script from 
-# http://www.gnome.org/~gman/blog/2006/Jan
-#
-# stap  fileopen.stp  -c "zenity --about"
-# or
-# ./fileopen.stp -c "program or script"
-
-global opens
-
-probe syscall.open {
-  if (target() == pid()) opens[filename] ++
-}
-
-probe end {
-  foreach([name] in opens+) {
-    printf("%-70s%5d\n", name, opens[name])
-  }
-}
-
diff --git a/testsuite/systemtap.examples/small_demos/kmalloc.stp b/testsuite/systemtap.examples/small_demos/kmalloc.stp
deleted file mode 100755 (executable)
index 9157928..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /usr/bin/env stap
-
-# Using statistics to examine kernel memory allocations
-
-global kmalloc
-
-probe kernel.function("__kmalloc") { 
-       kmalloc <<< $size
-}
-
-# Exit after 10 seconds
-probe timer.ms(10000) { exit () }
-
-probe end {
-       printf("Count:   %d allocations\n", @count(kmalloc))
-       printf("Sum:     %d Kbytes\n", @sum(kmalloc)/1000)
-       printf("Average: %d bytes\n", @avg(kmalloc))
-       printf("Min:     %d bytes\n", @min(kmalloc))
-       printf("Max:     %d bytes\n", @max(kmalloc))    
-       print("\nAllocations by size in bytes\n")
-       print(@hist_log(kmalloc))
-}
diff --git a/testsuite/systemtap.examples/small_demos/kmalloc2.stp b/testsuite/systemtap.examples/small_demos/kmalloc2.stp
deleted file mode 100755 (executable)
index 2622dd2..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#! /usr/bin/env stap
-
-# Using statistics and maps to examine kernel memory allocations
-
-global kmalloc
-
-probe kernel.function("__kmalloc") { 
-       kmalloc[execname()] <<< $size
-}
-
-# Exit after 10 seconds
-probe timer.ms(10000) { exit () }
-
-probe end {
-       foreach ([name] in kmalloc) {
-               printf("Allocations for %s\n", name)
-               printf("Count:   %d allocations\n", @count(kmalloc[name]))
-               printf("Sum:     %d Kbytes\n", @sum(kmalloc[name])/1000)
-               printf("Average: %d bytes\n", @avg(kmalloc[name]))
-               printf("Min:     %d bytes\n", @min(kmalloc[name]))
-               printf("Max:     %d bytes\n", @max(kmalloc[name]))      
-               print("\nAllocations by size in bytes\n")
-               print(@hist_log(kmalloc[name]))
-               printf("-------------------------------------------------------\n\n");
-       }
-}
diff --git a/testsuite/systemtap.examples/small_demos/prof.stp b/testsuite/systemtap.examples/small_demos/prof.stp
deleted file mode 100755 (executable)
index 389f743..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env stap
-
-# This is an example of profiling a specific command or pid.
-# It works by recording the time when a system call is entered
-# exited. 
-
-# Usage: prof.stp -c "top -n5"
-# Will start up "top" and after 5 iterations, will exit.
-#
-# Usage: prof.stp -x 3323
-# Will profile pid 3323 until it ^c is hit.
-#
-
-probe kernel.function("sys_*").call {
-       if (target() == tid())
-               calltime[tid()] = gettimeofday_us()
-}
-
-probe kernel.function("sys_*").return {
-       if (target() != tid())  next
-       now = gettimeofday_us()
-       c = calltime[tid()]
-       if (!c) next
-       ttime[probefunc()] <<< now - c
-       delete calltime[tid()]
-}
-
-probe end {
-       printf("\n")
-       foreach (x in ttime)
-               printf("%-20s\tcalls:%6d\tavg time (us):%5d\ttotal(us):%7d\n", 
-                       x, @count(ttime[x]), @avg(ttime[x]), @sum(ttime[x]))
-}
-
-global calltime, ttime
diff --git a/testsuite/systemtap.examples/small_demos/rwtiming.stp b/testsuite/systemtap.examples/small_demos/rwtiming.stp
deleted file mode 100755 (executable)
index d570c58..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-#! /usr/bin/env stap
-# rwtiming.stp
-#
-# This is a simple example to track the amount of time
-# spent doing reads and writes for the various programs running on the
-# system.
-
-probe begin { log("starting probe") }
-
-global names, opens, reads, writes
-global entry_opens, entry_reads, entry_writes
-global time_opens, time_reads, time_writes
-
-probe kernel.function("sys_open") {
-  t=gettimeofday_us(); p=pid(); e=execname();
-  names[e]=1
-  opens[e] ++ # plain integer
-  entry_opens[p] = t;
-}
-
-probe kernel.function("sys_open").return {
-  t=gettimeofday_us(); p=pid(); e=execname();
-  time_opens[e] <<< t - entry_opens[p];
-}
-
-probe kernel.function("sys_read") {
-  t= gettimeofday_us(); p =pid(); e=execname();
-  names[e]=1
-  reads[e] <<< $count # statistics
-  entry_reads[p] = t;
-}
-
-probe kernel.function("sys_read").return {
-  t=gettimeofday_us(); p=pid(); e=execname();
-  time_reads[e] <<< t - entry_reads[p];
-}
-
-probe kernel.function("sys_write") {
-  t=gettimeofday_us(); p=pid(); e=execname();
-  names[e]=1
-  writes[e] <<< $count # statistics
-  entry_writes[p] = t;
-}
-
-probe kernel.function("sys_write").return {
-  t = gettimeofday_us(); p = pid(); e=execname();
-  time_writes[e] <<< t - entry_writes[p];
-}
-
-probe end {
-  foreach(name+ in names) { # sort by names
-    printf ("process: %s\n", name)
-    if (opens[name]) {
-      printf ("opens n=%d\n", opens[name])
-      print (@hist_log(time_opens[name]))
-    }
-    if (@count(reads[name])) {
-      printf ("reads n=%d, sum=%d, avg=%d\n",
-         @count(reads[name]), # extracting stat results
-         @sum(reads[name]),
-         @avg(reads[name]))
-      print ("read timing distribution\n")
-      print (@hist_log(time_reads[name]))
-    }
-    if (@count(writes[name])) {
-      printf ("writes n=%d, sum=%d, avg=%d\n",
-         @count(writes[name]), # extracting stat results
-         @sum(writes[name]),
-         @avg(writes[name]))
-      print ("write timing distribution\n")
-      print (@hist_log(time_writes[name]))
-    }
-  }
-}
diff --git a/testsuite/systemtap.examples/small_demos/sched_snoop.stp b/testsuite/systemtap.examples/small_demos/sched_snoop.stp
deleted file mode 100755 (executable)
index 623643d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env stap
-
-global start_ts
-
-probe begin {
-    start_ts = gettimeofday_us()
-    printf("%12s  %3s  %5s  %5s  %-16s  ACTION\n",
-            "TIMESTAMP", "CPU", "PID", "TID", "EXECNAME")
-}
-
-function report(action:string) {
-    printf("%3d  %12d  %5d  %5d  %-16s  %s\n",
-            gettimeofday_us() - start_ts, cpu(),
-            pid(), tid(), execname(), action)
-}
-
-probe scheduler.cpu_off {
-    report(sprintf("cpu_off%s", idle? " [idle]" : ""))
-}
-
-probe scheduler.cpu_on {
-    report(sprintf("cpu_on%s", idle? " [idle]" : ""))
-}
-
-probe scheduler.tick {
-    report(sprintf("tick%s", idle? " [idle]" : ""))
-}
-
-probe scheduler.migrate ? {
-    report("migrate")
-}
-
-probe scheduler.balance ? {
-    report("balance")
-}
diff --git a/testsuite/systemtap.examples/small_demos/sys.stp b/testsuite/systemtap.examples/small_demos/sys.stp
deleted file mode 100755 (executable)
index 2df20bc..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env stap
-
-# print all system calls on the system
-
-probe syscall.* {
-  if (execname() != "staprun")
-       printf("%s: %s (%s) = ", execname(), name, argstr)
-}
-
-probe syscall.*.return {
-  if (execname() != "staprun")
-       printf("%s\n", retstr)
-}
-
-probe end {
-       printf("\n")
-}
diff --git a/testsuite/systemtap.examples/small_demos/top.stp b/testsuite/systemtap.examples/small_demos/top.stp
deleted file mode 100755 (executable)
index b46b994..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env stap 
-#
-# This script continuously lists the top 20 systemcalls on the system
-#
-
-global syscalls
-
-function print_top () {
-       printf ("SYSCALL\t\t\t\tCOUNT\n")
-       foreach ([name] in syscalls- limit 20)
-               printf("%-20s\t\t%5d\n",name, syscalls[name])
-       printf("--------------------------------------\n")
-       delete syscalls
-}
-
-probe syscall.* {
-       syscalls[probefunc()]++
-}
-
-# print top syscalls every 5 seconds
-probe timer.ms(5000) {
-       print_top ()
-}
-
This page took 0.08917 seconds and 5 git commands to generate.