2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobes event arguments with types
5 [ -f kprobe_events ] || exit_unsupported # this is configurable
7 grep "x8/16/32/64" README > /dev/null || exit_unsupported # version issue
13 echo 'p:testprobe _do_fork $stack0:s32 $stack0:u32 $stack0:x32 $stack0:b8@4/32' > kprobe_events
14 grep testprobe kprobe_events
15 test -d events/kprobes/testprobe
17 echo 1 > events/kprobes/testprobe/enable
19 echo 0 > events/kprobes/testprobe/enable
20 ARGS=`tail -n 1 trace | sed -e 's/.* arg1=\(.*\) arg2=\(.*\) arg3=\(.*\) arg4=\(.*\)/\1 \2 \3 \4/'`
23 X1=`printf "%x" $1 | tail -c 8`
31 B3=`echo -n $X3 | tail -c 3 | head -c 2`
36 echo "-:testprobe" >> kprobe_events
38 test -d events/kprobes/testprobe && exit 1 || exit 0