License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / tools / testing / selftests / ftrace / test.d / kprobe / kprobe_args.tc
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe dynamic event with arguments
4
5 [ -f kprobe_events ] || exit_unsupported # this is configurable
6
7 echo 0 > events/enable
8 echo > kprobe_events
9 echo 'p:testprobe _do_fork $stack $stack0 +0($stack)' > kprobe_events
10 grep testprobe kprobe_events
11 test -d events/kprobes/testprobe
12 echo 1 > events/kprobes/testprobe/enable
13 ( echo "forked")
14 echo 0 > events/kprobes/testprobe/enable
15 echo "-:testprobe" >> kprobe_events
16 clear_trace
17 test -d events/kprobes/testprobe && exit 1 || exit 0
18