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