hwpmc: add thread id field to callchain and context switch records to allow filtering
authormmacy <mmacy@FreeBSD.org>
Wed, 23 May 2018 17:25:00 +0000 (17:25 +0000)
committermmacy <mmacy@FreeBSD.org>
Wed, 23 May 2018 17:25:00 +0000 (17:25 +0000)
commit834f2e02b273120a723f8a34be2d2362d9f0234a
tree1f0553274902ce652d135787848d7087fb4103f1
parent58182302dff7ebcd5cb16c9e6a0253b80de75d63
hwpmc: add thread id field to callchain and context switch records to allow filtering
on thread in post-processing.

To generate stacks for just ${THREADID}:

pmcstat -R ${PREFIX}.pmcstat -L ${THREADID} -z100 -G ${PREFIX}.stacks

Sponsored by: Limelight Networks
lib/libpmc/pmclog.c
lib/libpmc/pmclog.h
lib/libpmcstat/libpmcstat.h
lib/libpmcstat/libpmcstat_logging.c
sys/sys/pmc.h
sys/sys/pmclog.h
usr.sbin/pmcstat/pmcstat.c