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