include/trace/syscall.h

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

File Facts

System
Linux kernel
Corpus path
include/trace/syscall.h
Extension
.h
Size
1573 bytes
Lines
58
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: syscall or user/kernel boundary
Status
core 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

struct syscall_metadata {
	const char	*name;
	int		syscall_nr;
	u8		nb_args:7;
	u8		user_arg_is_str:1;
	s8		user_arg_size;
	short		user_mask;
	const char	**types;
	const char	**args;
	struct list_head enter_fields;

	struct trace_event_call *enter_event;
	struct trace_event_call *exit_event;
};

#if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_HAVE_SYSCALL_TRACEPOINTS)
static inline void syscall_tracepoint_update(struct task_struct *p)
{
	if (test_syscall_work(SYSCALL_TRACEPOINT))
		set_task_syscall_work(p, SYSCALL_TRACEPOINT);
	else
		clear_task_syscall_work(p, SYSCALL_TRACEPOINT);
}
#else
static inline void syscall_tracepoint_update(struct task_struct *p)
{
}
#endif

#endif /* _TRACE_SYSCALL_H */

Annotation

Implementation Notes