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