2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe event with comm arguments
4 # requires: kprobe_events
6 grep -A1 "fetcharg:" README |
grep -q "\$comm" || exit_unsupported
# this is too old
8 echo "p:testprobe $FUNCTION_FORK comm=\$comm " > kprobe_events
9 grep testprobe kprobe_events |
grep -q 'comm=$comm'
10 test -d events
/kprobes
/testprobe
12 echo 1 > events
/kprobes
/testprobe
/enable
14 grep testprobe trace |
grep -q 'comm=".*"'