mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
b2ca2e50b9
metadata changes:
- log pmc sample rate with pmcallocate
- log proc flags with thread / process logging
to identify user vs kernel threads
fixes:
- use log cpuid to translate event id to event name
Implement rudimentary summary command to track sample
counts by thread and process name within a pmc log.
% make -j4 buildkernel >& /dev/null &
% sudo pmcstat -S unhalted_core_cycles -S llc-misses -O foo sleep 15
% pmc summary foo
cpu_clk_unhalted.thread_p_any:
idle: 138108207162
clang-6.0: 105336158004
sh: 72340108510
make: 8642012963
kernel: 7754011631
longest_lat_cache.miss:
clang-6.0: 87502625
sh: 40901227
make: 5500165
kernel: 3300099
awk:
|
||
---|---|---|
.. | ||
Makefile | ||
Makefile.depend | ||
pmcpl_annotate.c | ||
pmcpl_annotate.h | ||
pmcpl_annotate_cg.c | ||
pmcpl_annotate_cg.h | ||
pmcpl_callgraph.c | ||
pmcpl_callgraph.h | ||
pmcpl_calltree.c | ||
pmcpl_calltree.h | ||
pmcpl_gprof.c | ||
pmcpl_gprof.h | ||
pmcstat.8 | ||
pmcstat.c | ||
pmcstat.h | ||
pmcstat_log.c | ||
pmcstat_log.h | ||
pmcstat_top.h |