STRUCT SYSCALL(9)
π NAME π
struct syscall β okay so this is the struct that holds everything perf's trace tooling needs to know about one single syscall, and the manpage straight-up left the description blank so we're gonna vibe with the fields themselves β¨
π¦ SYNOPSIS π¦
struct syscall {
int e_machine;
int id;
struct tep_event *tp_format;
int nr_args;
int args_size;
struct {
struct bpf_program *sys_enter, *sys_exit;
} bpf_prog;
bool is_exit;
bool is_open;
bool nonexistent;
bool use_btf;
struct tep_format_field *args;
const char *name;
const struct syscall_fmt *fmt;
struct syscall_arg_fmt *arg_fmt;
};
Like, look at her. The anonymous nested struct for bpf_prog holding *sys_enter and *sys_exit? Main character energy fr fr π₯
π Members π
Heads up bestie β the page only spells out some of these fields, so I'm not gonna make up lore for the rest. Here's exactly what we got:
e_machineβ the ELF machine that's associated with the entry. iykyk π§idβ the id value that comes from the tracepoint; it's the system call number.args_sizeβ the sum of the sizes of the syscall arguments. Anything after that is augmented stuff, like the pathname foropenat, etc. πis_exitβ is this"exit"or"exit_group"? πis_openβ is this"open"or"openat"? It exists so you can associate the fd returned insys_exitwith the pathname insys_enter. iconic.nonexistentβ name lookup failed. It's literally just a hole in the syscall table, syscall id not allocated. π
Quick vibe check:tp_format,nr_args,bpf_prog,use_btf,args,name,fmtandarg_fmtare all chillin' in the synopsis, but the manpage doesn't document them here β so no invented facts from me, periodt. π
π SEE ALSO π
- Kernel file
./tools/perf/builtin-trace.c trace__fprintf_cpu(9)
That's the whole page, bestie β slay π«Ά This lil beauty comes from ./tools/perf and is dated October 2026, so go forth and trace those syscalls πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms