| 1 |
set stap_path $env(SYSTEMTAP_PATH)/stap |
| 2 |
|
| 3 |
exec echo "#!$stap_path" > tracescripts.sh |
| 4 |
|
| 5 |
if {[catch {exec stap -L {process("tracescripts.sh").mark("*")}} res]} { |
| 6 |
fail "tracescripts $res" |
| 7 |
} else { |
| 8 |
pass "tracescripts" |
| 9 |
} |
| 10 |
|
| 11 |
catch {exec rm -f tracescripts.sh} |