xref: /linux/tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc (revision c0c914eca7f251c70facc37dfebeaf176601918d)
1#!/bin/sh
2# description: Kprobe dynamic event - adding and removing
3
4[ -f kprobe_events ] || exit_unsupported # this is configurable
5
6echo 0 > events/enable
7echo > kprobe_events
8echo p:myevent _do_fork > kprobe_events
9grep myevent kprobe_events
10test -d events/kprobes/myevent
11echo > kprobe_events
12clear_trace
13