include/rv/instrumentation.h

Source file repositories/reference/linux-study-clean/include/rv/instrumentation.h

File Facts

System
Linux kernel
Corpus path
include/rv/instrumentation.h
Extension
.h
Size
885 bytes
Lines
30
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#include <linux/ftrace.h>

/*
 * rv_attach_trace_probe - check and attach a handler function to a tracepoint
 */
#define rv_attach_trace_probe(monitor, tp, rv_handler)					\
	do {										\
		check_trace_callback_type_##tp(rv_handler);				\
		WARN_ONCE(register_trace_##tp(rv_handler, NULL),			\
				"fail attaching " #monitor " " #tp "handler");		\
	} while (0)

/*
 * rv_detach_trace_probe - detach a handler function to a tracepoint
 */
#define rv_detach_trace_probe(monitor, tp, rv_handler)					\
	do {										\
		unregister_trace_##tp(rv_handler, NULL);				\
	} while (0)

Annotation

Implementation Notes