Author: trasz Date: Sun Sep 27 18:14:01 2020 New Revision: 366201 URL: https://svnweb.freebsd.org/changeset/base/366201
Log: Shrink struct sysent from 48 to 32 bytes (on LP64; on ILP32 its probably from 32 to 28) by shrinking some entries and reordering them. Reviewed by: kib Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26508 Modified: head/sys/sys/sysent.h Modified: head/sys/sys/sysent.h ============================================================================== --- head/sys/sys/sysent.h Sun Sep 27 16:15:03 2020 (r366200) +++ head/sys/sys/sysent.h Sun Sep 27 18:14:01 2020 (r366201) @@ -65,14 +65,14 @@ extern bool systrace_enabled; #endif /* _KERNEL */ struct sysent { /* system call table */ - int sy_narg; /* number of arguments */ sy_call_t *sy_call; /* implementing function */ - au_event_t sy_auevent; /* audit event associated with syscall */ systrace_args_func_t sy_systrace_args_func; /* optional argument conversion function. */ + u_int8_t sy_narg; /* number of arguments */ + u_int8_t sy_flags; /* General flags for system calls. */ + au_event_t sy_auevent; /* audit event associated with syscall */ u_int32_t sy_entry; /* DTrace entry ID for systrace. */ u_int32_t sy_return; /* DTrace return ID for systrace. */ - u_int32_t sy_flags; /* General flags for system calls. */ u_int32_t sy_thrcnt; }; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"