WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / kprobe / kprobe_args_comm.tc
bloba053ee2e7d779e20ce645f0dda1e95f5b9315927
1 #!/bin/sh
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
13 ( echo "forked")
14 grep testprobe trace | grep -q 'comm=".*"'
16 exit 0