1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Kprobe event with comm arguments 4 # requires: kprobe_events 5 6 grep -A1 "fetcharg:" README | grep -q "\$comm" || exit_unsupported # this is too old 7 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 11 12 echo 1 > events/kprobes/testprobe/enable 13 ( echo "forked") 14 grep testprobe trace | grep -q 'comm=".*"' 15 16 exit 0
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.