forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
464 B
16 lines
464 B
#!/bin/sh |
|
# SPDX-License-Identifier: GPL-2.0 |
|
# description: Kprobe event with comm arguments |
|
# requires: kprobe_events |
|
|
|
grep -A1 "fetcharg:" README | grep -q "\$comm" || exit_unsupported # this is too old |
|
|
|
echo "p:testprobe $FUNCTION_FORK comm=\$comm " > kprobe_events |
|
grep testprobe kprobe_events | grep -q 'comm=$comm' |
|
test -d events/kprobes/testprobe |
|
|
|
echo 1 > events/kprobes/testprobe/enable |
|
( echo "forked") |
|
grep testprobe trace | grep -q 'comm=".*"' |
|
|
|
exit 0
|
|
|