2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe event string type argument
4 # requires: kprobe_events
26 echo "Please implement other architecture here"
30 : "Test get argument (1)"
31 echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):string" > kprobe_events
32 echo 1 > events
/kprobes
/testprobe
/enable
33 echo "p:test $FUNCTION_FORK" >> kprobe_events
34 grep -qe "testprobe.* arg1=\"test\"" trace
36 echo 0 > events
/kprobes
/testprobe
/enable
37 : "Test get argument (2)"
38 echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):string arg2=+0(${ARG1}):string" > kprobe_events
39 echo 1 > events
/kprobes
/testprobe
/enable
40 echo "p:test $FUNCTION_FORK" >> kprobe_events
41 grep -qe "testprobe.* arg1=\"test\" arg2=\"test\"" trace