summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc
blob: bb1eb5a7c64e16fbe622c187d935347f68fd7bd0 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Kprobe dynamic event - adding and removing

[ -f kprobe_events ] || exit_unsupported # this is configurable

echo p:myevent _do_fork > kprobe_events
grep myevent kprobe_events
test -d events/kprobes/myevent
echo > kprobe_events