11 lines
288 B
Bash
11 lines
288 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# description: Kprobe dynamic event - adding and removing
|
|
|
|
[ -f kprobe_events ] || exit_unsupported # this is configurable
|
|
|
|
echo p:myevent _do_fork > kprobe_events
|
|
grep myevent kprobe_events
|
|
test -d events/kprobes/myevent
|
|
echo > kprobe_events
|