Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / testing / selftests / ftrace / test.d / kprobe / add_and_remove.tc
blob4604d2103c89383a698bc18e0cf432e53ab2c9b2
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe dynamic event - adding and removing
5 [ -f kprobe_events ] || exit_unsupported # this is configurable
7 echo 0 > events/enable
8 echo > kprobe_events
9 echo p:myevent _do_fork > kprobe_events
10 grep myevent kprobe_events
11 test -d events/kprobes/myevent
12 echo > kprobe_events
13 clear_trace