include/linux/trace_remote_event.h

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

File Facts

System
Linux kernel
Corpus path
include/linux/trace_remote_event.h
Extension
.h
Size
744 bytes
Lines
34
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct remote_event_hdr {
	unsigned short	id;
};

#define REMOTE_EVENT_NAME_MAX 30
struct remote_event {
	char				name[REMOTE_EVENT_NAME_MAX];
	unsigned short			id;
	bool				enabled;
	struct trace_remote		*remote;
	struct trace_event_fields	*fields;
	char				*print_fmt;
	void				(*print)(void *evt, struct trace_seq *seq);
};

#define RE_STRUCT(__args...) __args
#define re_field(__type, __field) __type __field;

#define REMOTE_EVENT_FORMAT(__name, __struct)	\
	struct remote_event_format_##__name {	\
		struct remote_event_hdr hdr;	\
		__struct			\
	}
#endif

Annotation

Implementation Notes