mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 05:22:49 -04:00
Convert the required tracefs interface checking code with requires: list. Fixed merge conflicts in trigger-hist.tc and trigger-trace-marker-hist.tc Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
17 lines
457 B
Bash
17 lines
457 B
Bash
#!/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 _do_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
|