From owner-cvs-src-old@FreeBSD.ORG Mon Mar 9 10:47:42 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38EA3106571C for ; Mon, 9 Mar 2009 10:47:42 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 246588FC18 for ; Mon, 9 Mar 2009 10:47:42 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n29AlgG7053380 for ; Mon, 9 Mar 2009 10:47:42 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n29AlgEu053379 for cvs-src-old@freebsd.org; Mon, 9 Mar 2009 10:47:42 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200903091047.n29AlgEu053379@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Mon, 9 Mar 2009 10:45:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/security/audit audit.c audit.h audit_syscalls.c src/sys/sys proc.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2009 10:47:44 -0000 rwatson 2009-03-09 10:45:58 UTC FreeBSD src repository Modified files: sys/security/audit audit.c audit.h audit_syscalls.c sys/sys proc.h Log: SVN rev 189570 on 2009-03-09 10:45:58Z by rwatson Add a new thread-private flag, TDP_AUDITREC, to indicate whether or not there is an audit record hung off of td_ar on the current thread. Test this flag instead of td_ar when auditing syscall arguments or checking for an audit record to commit on syscall return. Under these circumstances, td_pflags is much more likely to be in the cache (especially if there is no auditing of the current system call), so this should help reduce cache misses in the system call return path. MFC after: 1 week Reported by: kris Obtained from: TrustedBSD Project Revision Changes Path 1.50 +11 -2 src/sys/security/audit/audit.c 1.24 +3 -3 src/sys/security/audit/audit.h 1.37 +1 -0 src/sys/security/audit/audit_syscalls.c 1.526 +1 -0 src/sys/sys/proc.h