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