]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hwpmc: support sampling both kernel and user stacks when interrupted in kernel
authormmacy <mmacy@FreeBSD.org>
Mon, 4 Jun 2018 01:10:23 +0000 (01:10 +0000)
committermmacy <mmacy@FreeBSD.org>
Mon, 4 Jun 2018 01:10:23 +0000 (01:10 +0000)
commit73041f23e18b4388ea6f06ac6529ca71c41c21c2
tree908d529e4f5c3103c7c3d8c4196b2178799a7a34
parent68429d0e006da20923f8331ea4fbf35dbefe2dcc
hwpmc: support sampling both kernel and user stacks when interrupted in kernel

This adds the -U options to pmcstat which will attribute in-kernel samples
back to the user stack that invoked the system call. It is not the default,
because when looking at kernel profiles it is generally more desirable to
merge all instances of a given system call together.

Although heavily revised, this change is directly derived from D7350 by
Jonathan T. Looney.

Obtained from: jtl
Sponsored by: Juniper Networks, Limelight Networks
sys/dev/hwpmc/hwpmc_logging.c
sys/dev/hwpmc/hwpmc_mod.c
sys/kern/subr_trap.c
sys/sys/pmc.h
sys/sys/pmckern.h
sys/sys/proc.h
usr.sbin/pmcstat/pmcpl_callgraph.c
usr.sbin/pmcstat/pmcstat.8
usr.sbin/pmcstat/pmcstat.c