audit: predict AUDITING_TD as false

By default it is compiled in and disabled.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mateusz Guzik 2018-11-29 09:19:48 +00:00
parent 712775843f
commit c0282e1e07
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341221

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