svn commit: r341221 - head/sys/security/audit

Mateusz Guzik mjg at FreeBSD.org
Thu Nov 29 09:19:50 UTC 2018


Author: mjg
Date: Thu Nov 29 09:19:48 2018
New Revision: 341221
URL: https://svnweb.freebsd.org/changeset/base/341221

Log:
  audit: predict AUDITING_TD as false
  
  By default it is compiled in and disabled.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/security/audit/audit.h

Modified: head/sys/security/audit/audit.h
==============================================================================
--- head/sys/security/audit/audit.h	Thu Nov 29 09:04:10 2018	(r341220)
+++ head/sys/security/audit/audit.h	Thu Nov 29 09:19:48 2018	(r341221)
@@ -150,7 +150,7 @@ void	 audit_thread_free(struct thread *td);
  * Define macros to wrap the audit_arg_* calls by checking the global
  * audit_syscalls_enabled flag before performing the actual call.
  */
-#define	AUDITING_TD(td)		((td)->td_pflags & TDP_AUDITREC)
+#define	AUDITING_TD(td)		(__predict_false((td)->td_pflags & TDP_AUDITREC))
 
 #define	AUDIT_ARG_ADDR(addr) do {					\
 	if (AUDITING_TD(curthread))					\


More information about the svn-src-head mailing list