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

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

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