freebsd-dev/sys/dev/hwpmc
John Baldwin 2ff47c5f18 Remove unnecessary locking around vn_fullpath(). The vnode lock for the
vnode in question does not need to be held.  All the data structures used
during the name lookup are protected by the global name cache lock.
Instead, the caller merely needs to ensure a reference is held on the
vnode (such as vhold()) to keep it from being freed.

In the case of procfs' <pid>/file entry, grab the process lock while we
gain a new reference (via vhold()) on p_textvp to fully close races with
execve(2).

For the kern.proc.vmmap sysctl handler, use a shared vnode lock around
the call to VOP_GETATTR() rather than an exclusive lock.

MFC after:	1 month
2008-11-04 19:04:01 +00:00
..
hwpmc_amd.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
hwpmc_amd.h
hwpmc_arm.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_ia64.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_logging.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
hwpmc_mod.c Remove unnecessary locking around vn_fullpath(). The vnode lock for the 2008-11-04 19:04:01 +00:00
hwpmc_pentium.c
hwpmc_pentium.h
hwpmc_piv.c Fix a number of style issues in the MALLOC / FREE commit. I've tried to 2008-10-23 20:26:15 +00:00
hwpmc_piv.h
hwpmc_powerpc.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_ppro.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
hwpmc_ppro.h
hwpmc_sparc64.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_x86.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
pmc_events.h - Sparsely number enumerations 'pmc_cputype' and 'pmc_event' in order to 2008-10-09 14:55:45 +00:00