License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / tools / testing / selftests / ftrace / test.d / kprobe / busy_check.tc
CommitLineData
2909ef28 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
2909ef28
MH
3# description: Kprobe dynamic event - busy event check
4
915de2ad 5[ -f kprobe_events ] || exit_unsupported
2909ef28 6
915de2ad
MH
7echo 0 > events/enable
8echo > kprobe_events
c28628b8 9echo p:myevent _do_fork > kprobe_events
915de2ad
MH
10test -d events/kprobes/myevent
11echo 1 > events/kprobes/myevent/enable
2909ef28 12echo > kprobe_events && exit 1 # this must fail
915de2ad 13echo 0 > events/kprobes/myevent/enable
2909ef28 14echo > kprobe_events # this must succeed
ce1ac64b 15clear_trace