doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/kfunct.exp
raw| 1 | # Simple function to test that systemtap can generate a kernel module that |
| 2 | # instruments a function, install it, and get some output. |
| 3 | |
| 4 | set test "kfunct" |
| 5 | |
| 6 | # better have a count other than zero to show that probe fired |
| 7 | set output_string "count = \[1-9\]\[0-9\]*\r\n" |
| 8 | |
| 9 | stap_run $test no_load $output_string $srcdir/$subdir/$test.stp |