drm/panel-edp: Add STA 116QHD024002
[drm/drm-misc.git] / tools / testing / selftests / ftrace / test.d / kprobe / kretprobe_entry_arg.tc
blobe50470b531648ddb31328034619d0aac6d288d22
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kretprobe entry argument access
4 # requires: kprobe_events 'kernel return probes support:':README
6 echo 'p:myevent1 vfs_open arg=$arg1' >> kprobe_events
7 echo 'r:myevent2 vfs_open arg=$arg1' >> kprobe_events
9 echo 1 > events/kprobes/enable
11 echo > trace
12 cat trace > /dev/null
14 streq() {
15 test $1 = $2
18 streq `grep -A 1 -m 1 myevent1 trace | sed -r 's/^.*(arg=.*)/\1/' `