Search notes:

include/trace/syscall.h

struct syscall_metadata

The syscall_metadata struct is an entry in the ftrace syscalls array.
struct syscall_metadata {
    const char               *name;         // Name of the syscall
    int                       syscall_nr;   // Number of the syscall
    int                       nb_args;      // Number of paramters the syscall takes
    const char              **types;        // list of types as strings
    const char              **args;         // list of args as strings (args[i] matches types[i])
    struct list_head          enter_fields; // list of fields for syscall_enter trace event

    struct trace_event_call  *enter_event;  // Associated enter and
    struct trace_event_call  *exit_event;   // exit trace event.
}
See also the SYSCALL_METADATA macro, defined in include/linux/syscalls.h.

Index