2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe event string type argument
5 [ -f kprobe_events
] || exit_unsupported
# this is configurable
27 echo "Please implement other architecture here"
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