Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2018 09:19:49 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341221 - head/sys/security/audit
Message-ID:  <201811290919.wAT9Jn7b002861@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))					\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811290919.wAT9Jn7b002861>