diff options
author | William Cohen <wcohen@localhost.localdomain> | 2008-04-24 12:20:13 -0400 |
---|---|---|
committer | William Cohen <wcohen@localhost.localdomain> | 2008-04-24 12:20:13 -0400 |
commit | 7f79ea13a0f64573ce13353257d322ae49ef0c27 (patch) | |
tree | 60de8da5af4c2bcc26abfb9430fdca66bdc20b98 /examples/small_demos/key.stp | |
parent | f90f92615df6ff2a62282359281889597e5dbf17 (diff) | |
download | systemtap-steved-7f79ea13a0f64573ce13353257d322ae49ef0c27.tar.gz systemtap-steved-7f79ea13a0f64573ce13353257d322ae49ef0c27.tar.xz systemtap-steved-7f79ea13a0f64573ce13353257d322ae49ef0c27.zip |
Move examples to testsuite/systemtap.examples
Diffstat (limited to 'examples/small_demos/key.stp')
-rwxr-xr-x | examples/small_demos/key.stp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/examples/small_demos/key.stp b/examples/small_demos/key.stp deleted file mode 100755 index 6d2d6c3f..00000000 --- a/examples/small_demos/key.stp +++ /dev/null @@ -1,22 +0,0 @@ -#! /usr/bin/env stap - -# Useless, but amusing. Based on an idea I saw on a -# dtrace site. (wav files are from emacs). - -// KEY_ENTER = 28 -probe kernel.function("kbd_event") { - if ($event_type == 1 && $value) { - if ($event_code == 28) - system("play return.wav &> /dev/null") - else - system("play click.wav &> /dev/null") - } -} - -probe begin { - printf("TYPEWRITER ON\n") -} - -probe end { - printf("DONE\n") -} |