]>
Commit | Line | Data |
---|---|---|
89c5497d MH |
1 | #!/bin/sh |
2 | # description: Kprobe dynamic event with arguments | |
3 | ||
4 | [ -f kprobe_events ] || exit_unsupported # this is configurable | |
5 | ||
6 | echo 0 > events/enable | |
7 | echo > kprobe_events | |
8 | echo 'p:testprobe do_fork $stack $stack0 +0($stack)' > kprobe_events | |
9 | grep testprobe kprobe_events | |
10 | test -d events/kprobes/testprobe | |
11 | echo 1 > events/kprobes/testprobe/enable | |
12 | ( echo "forked") | |
13 | echo 0 > events/kprobes/testprobe/enable | |
14 | echo "-:testprobe" >> kprobe_events | |
ce1ac64b | 15 | clear_trace |
89c5497d MH |
16 | test -d events/kprobes/testprobe && exit 1 || exit 0 |
17 |