staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / kprobe / kprobe_args.tc
blobbcdecf80a8f1921b5714cadb230bd748b27168f8
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe dynamic event with arguments
5 [ -f kprobe_events ] || exit_unsupported # this is configurable
7 echo 'p:testprobe _do_fork $stack $stack0 +0($stack)' > kprobe_events
8 grep testprobe kprobe_events | grep -q 'arg1=\$stack arg2=\$stack0 arg3=+0(\$stack)'
9 test -d events/kprobes/testprobe
11 echo 1 > events/kprobes/testprobe/enable
12 ( echo "forked")
13 grep testprobe trace | grep '_do_fork' | \
14 grep -q 'arg1=0x[[:xdigit:]]* arg2=0x[[:xdigit:]]* arg3=0x[[:xdigit:]]*$'
16 echo 0 > events/kprobes/testprobe/enable
17 echo "-:testprobe" >> kprobe_events
18 clear_trace
19 test -d events/kprobes/testprobe && exit_fail || exit_pass