xref: /openbmc/linux/tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc (revision 05cf4fe738242183f1237f1b3a28b4479348c0a1)
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 p:myevent _do_fork > kprobe_events
8grep myevent kprobe_events
9test -d events/kprobes/myevent
10echo > kprobe_events
11