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.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or participates in a user/kernel boundary; inspect argument validation, copy_from_user/copy_to_user, credentials, and dispatch target.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/tracepoint.hlinux/unistd.hlinux/trace_events.hlinux/thread_info.hasm/ptrace.h
Detected Declarations
struct syscall_metadatafunction syscall_tracepoint_updatefunction syscall_tracepoint_update
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
- Immediate include surface: `linux/tracepoint.h`, `linux/unistd.h`, `linux/trace_events.h`, `linux/thread_info.h`, `asm/ptrace.h`.
- Detected declarations: `struct syscall_metadata`, `function syscall_tracepoint_update`, `function syscall_tracepoint_update`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: core implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.