From owner-svn-src-all@FreeBSD.ORG Fri Mar 27 13:05:29 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D36C106564A; Fri, 27 Mar 2009 13:05:29 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7A4098FC23; Fri, 27 Mar 2009 13:05:29 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2RD5T3K061797; Fri, 27 Mar 2009 13:05:29 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2RD5T83061796; Fri, 27 Mar 2009 13:05:29 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200903271305.n2RD5T83061796@svn.freebsd.org> From: Konstantin Belousov Date: Fri, 27 Mar 2009 13:05:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190465 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 13:05:30 -0000 Author: kib Date: Fri Mar 27 13:05:29 2009 New Revision: 190465 URL: http://svn.freebsd.org/changeset/base/190465 Log: MFC r190141: When ktracing namei operations, log a result of the __getcwd(). Approved by: re (kensmith) Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/kern/vfs_cache.c Modified: stable/7/sys/kern/vfs_cache.c ============================================================================== --- stable/7/sys/kern/vfs_cache.c Fri Mar 27 11:03:02 2009 (r190464) +++ stable/7/sys/kern/vfs_cache.c Fri Mar 27 13:05:29 2009 (r190465) @@ -35,6 +35,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_ktrace.h" + #include #include #include @@ -50,6 +52,9 @@ __FBSDID("$FreeBSD$"); #include #include #include +#ifdef KTRACE +#include +#endif #include @@ -737,6 +742,10 @@ kern___getcwd(struct thread *td, u_char bcopy(bp, buf, strlen(bp) + 1); else error = copyout(bp, buf, strlen(bp) + 1); +#ifdef KTRACE + if (KTRPOINT(curthread, KTR_NAMEI)) + ktrnamei(bp); +#endif } free(tmpbuf, M_TEMP); return (error);