Date: Sun, 27 Sep 2020 18:14:02 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366201 - head/sys/sys Message-ID: <202009271814.08RIE272090278@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009271814.08RIE272090278>