drm/panel-edp: Add STA 116QHD024002
[drm/drm-misc.git] / tools / testing / selftests / ftrace / test.d / kprobe / busy_check.tc
blob010a8b1d6c1d56c8cb9187d80391ec7bd5532bf7
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kprobe dynamic event - busy event check
4 # requires: kprobe_events
6 echo p:myevent $FUNCTION_FORK > kprobe_events
7 test -d events/kprobes/myevent
8 echo 1 > events/kprobes/myevent/enable
9 echo > kprobe_events && exit_fail # this must fail
10 echo 0 > events/kprobes/myevent/enable
11 echo > kprobe_events # this must succeed