staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / kprobe / kprobe_args_string.tc
blob46e7744f8358a920cda64668f489987296c4a25a
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe event string type argument
5 [ -f kprobe_events ] || exit_unsupported # this is configurable
7 case `uname -m` in
8 x86_64)
9 ARG1=%di
11 i[3456]86)
12 ARG1=%ax
14 aarch64)
15 ARG1=%x0
17 arm*)
18 ARG1=%r0
20 ppc64*)
21 ARG1=%r3
23 ppc*)
24 ARG1=%r3
27 echo "Please implement other architecture here"
28 exit_untested
29 esac
31 : "Test get argument (1)"
32 echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):string" > kprobe_events
33 echo 1 > events/kprobes/testprobe/enable
34 echo "p:test _do_fork" >> kprobe_events
35 grep -qe "testprobe.* arg1=\"test\"" trace
37 echo 0 > events/kprobes/testprobe/enable
38 : "Test get argument (2)"
39 echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):string arg2=+0(${ARG1}):string" > kprobe_events
40 echo 1 > events/kprobes/testprobe/enable
41 echo "p:test _do_fork" >> kprobe_events
42 grep -qe "testprobe.* arg1=\"test\" arg2=\"test\"" trace