tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc

Source file repositories/reference/linux-study-clean/tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc
Extension
.tc
Size
374 bytes
Lines
12
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Kprobe dynamic event - busy event check
# requires: kprobe_events

echo p:myevent $FUNCTION_FORK > kprobe_events
test -d events/kprobes/myevent
echo 1 > events/kprobes/myevent/enable
echo > kprobe_events && exit_fail # this must fail
echo 0 > events/kprobes/myevent/enable
echo > kprobe_events # this must succeed

Annotation

Implementation Notes