audit: predict AUDITING_TD as false

By default it is compiled in and disabled.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
mjg 2018-11-29 09:19:48 +00:00
parent 157d106c90
commit 3ecf53c2d0

View File

@ -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)) \