Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / testing / selftests / ftrace / test.d / kprobe / kretprobe_args.tc
blob321954683aaa9ed166406ccde15e69eed126d266
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kretprobe dynamic event with arguments
5 [ -f kprobe_events ] || exit_unsupported # this is configurable
7 echo 0 > events/enable
8 echo > kprobe_events
9 echo 'r:testprobe2 _do_fork $retval' > kprobe_events
10 grep testprobe2 kprobe_events
11 test -d events/kprobes/testprobe2
12 echo 1 > events/kprobes/testprobe2/enable
13 ( echo "forked")
14 echo 0 > events/kprobes/testprobe2/enable
15 echo '-:testprobe2' >> kprobe_events
16 clear_trace
17 test -d events/kprobes/testprobe2 && exit_fail || exit_pass