mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 01:26:29 +07:00
93115d32e8
On s390 the event bc000 (also named CF_DIAG) extracts the CPU Measurement Facility diagnostic counter sets and displays them as counter number and counter value pairs sorted by counter set number. Output: [root@s35lp76 perf]# ./perf report -D --stdio [00000000] Counterset:0 Counters:6 Counter:000 Value:0x000000000085ec36 Counter:001 Value:0x0000000000796c94 Counter:002 Value:0x0000000000005ada Counter:003 Value:0x0000000000092460 Counter:004 Value:0x0000000000006073 Counter:005 Value:0x00000000001a9a73 [0x000038] Counterset:1 Counters:2 Counter:000 Value:0x000000000007c59f Counter:001 Value:0x000000000002fad6 [0x000050] Counterset:2 Counters:16 Counter:000 Value:000000000000000000 Counter:001 Value:000000000000000000 Counter:002 Value:000000000000000000 Counter:003 Value:000000000000000000 Counter:004 Value:000000000000000000 Counter:005 Value:000000000000000000 Counter:006 Value:000000000000000000 Counter:007 Value:000000000000000000 Counter:008 Value:000000000000000000 Counter:009 Value:000000000000000000 Counter:010 Value:000000000000000000 Counter:011 Value:000000000000000000 Counter:012 Value:000000000000000000 Counter:013 Value:000000000000000000 Counter:014 Value:000000000000000000 Counter:015 Value:000000000000000000 [0x0000d8] Counterset:3 Counters:128 Counter:000 Value:0x000000000000020f Counter:001 Value:0x00000000000001d8 Counter:002 Value:0x000000000000d7fa Counter:003 Value:0x000000000000008b ... The number in brackets is the offset into the raw data field of the sample. New functions trace_event_sample_raw__init() and s390_sample_raw() are introduced in the code path to enable interpretation on non s390 platforms. This event bc000 attached raw data is generated only on s390 platform. Correct display on other platforms requires correct endianness handling. Committer notes: Added a init function that sets up a evlist function pointer to avoid repeated tests on evlist->env and calls to perf_env__name() that involves normalizing, etc, for each PERF_RECORD_SAMPLE. Removed needless __maybe_unused from the trace_event_raw() prototype in session.h, move it to be an static function in evlist. The 'offset' variable is a size_t, not an u64, fix it to avoid this on some arches: CC /tmp/build/perf/util/s390-sample-raw.o util/s390-sample-raw.c: In function 's390_cpumcfdg_testctr': util/s390-sample-raw.c:77:4: error: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'size_t' [-Werror=format=] pr_err("Invalid counter set entry at %#" PRIx64 "\n", ^ cc1: all warnings being treated as errors Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com> Link: https://lkml.kernel.org/r/9c856ac0-ef23-72b5-901d-a1f815508976@linux.ibm.com Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Link: https://lkml.kernel.org/n/tip-s3jhif06et9ug78qhclw41z1@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> |
||
---|---|---|
.. | ||
c++ | ||
cs-etm-decoder | ||
include | ||
intel-pt-decoder | ||
libunwind | ||
scripting-engines | ||
annotate.c | ||
annotate.h | ||
arm-spe-pkt-decoder.c | ||
arm-spe-pkt-decoder.h | ||
arm-spe.c | ||
arm-spe.h | ||
auxtrace.c | ||
auxtrace.h | ||
block-range.c | ||
block-range.h | ||
bpf-loader.c | ||
bpf-loader.h | ||
bpf-prologue.c | ||
bpf-prologue.h | ||
branch.c | ||
branch.h | ||
Build | ||
build-id.c | ||
build-id.h | ||
cache.h | ||
call-path.c | ||
call-path.h | ||
callchain.c | ||
callchain.h | ||
cgroup.c | ||
cgroup.h | ||
cloexec.c | ||
cloexec.h | ||
color.c | ||
color.h | ||
comm.c | ||
comm.h | ||
compress.h | ||
config.c | ||
config.h | ||
counts.c | ||
counts.h | ||
cpumap.c | ||
cpumap.h | ||
cs-etm.c | ||
cs-etm.h | ||
ctype.c | ||
data-convert-bt.c | ||
data-convert-bt.h | ||
data-convert.h | ||
data.c | ||
data.h | ||
db-export.c | ||
db-export.h | ||
debug.c | ||
debug.h | ||
demangle-java.c | ||
demangle-java.h | ||
demangle-rust.c | ||
demangle-rust.h | ||
drv_configs.c | ||
drv_configs.h | ||
dso.c | ||
dso.h | ||
dump-insn.c | ||
dump-insn.h | ||
dwarf-aux.c | ||
dwarf-aux.h | ||
dwarf-regs.c | ||
env.c | ||
env.h | ||
event.c | ||
event.h | ||
evlist.c | ||
evlist.h | ||
evsel_fprintf.c | ||
evsel.c | ||
evsel.h | ||
expr.h | ||
expr.y | ||
find-map.c | ||
genelf_debug.c | ||
genelf.c | ||
genelf.h | ||
generate-cmdlist.sh | ||
get_current_dir_name.c | ||
group.h | ||
header.c | ||
header.h | ||
help-unknown-cmd.c | ||
help-unknown-cmd.h | ||
hist.c | ||
hist.h | ||
intel-bts.c | ||
intel-bts.h | ||
intel-pt.c | ||
intel-pt.h | ||
intlist.c | ||
intlist.h | ||
jit.h | ||
jitdump.c | ||
jitdump.h | ||
kvm-stat.h | ||
levenshtein.c | ||
levenshtein.h | ||
llvm-utils.c | ||
llvm-utils.h | ||
lzma.c | ||
machine.c | ||
machine.h | ||
map.c | ||
map.h | ||
mem2node.c | ||
mem2node.h | ||
mem-events.c | ||
mem-events.h | ||
memswap.c | ||
memswap.h | ||
metricgroup.c | ||
metricgroup.h | ||
mmap.c | ||
mmap.h | ||
namespaces.c | ||
namespaces.h | ||
ordered-events.c | ||
ordered-events.h | ||
parse-branch-options.c | ||
parse-branch-options.h | ||
parse-events.c | ||
parse-events.h | ||
parse-events.l | ||
parse-events.y | ||
parse-regs-options.c | ||
parse-regs-options.h | ||
path.c | ||
path.h | ||
perf_regs.c | ||
perf_regs.h | ||
perf-hooks-list.h | ||
perf-hooks.c | ||
perf-hooks.h | ||
PERF-VERSION-GEN | ||
pmu.c | ||
pmu.h | ||
pmu.l | ||
pmu.y | ||
print_binary.c | ||
print_binary.h | ||
probe-event.c | ||
probe-event.h | ||
probe-file.c | ||
probe-file.h | ||
probe-finder.c | ||
probe-finder.h | ||
pstack.c | ||
pstack.h | ||
python-ext-sources | ||
python.c | ||
rb_resort.h | ||
rblist.c | ||
rblist.h | ||
record.c | ||
rwsem.c | ||
rwsem.h | ||
s390-cpumcf-kernel.h | ||
s390-cpumsf-kernel.h | ||
s390-cpumsf.c | ||
s390-cpumsf.h | ||
s390-sample-raw.c | ||
sample-raw.c | ||
sample-raw.h | ||
sane_ctype.h | ||
session.c | ||
session.h | ||
setns.c | ||
setup.py | ||
smt.c | ||
smt.h | ||
sort.c | ||
sort.h | ||
srccode.c | ||
srccode.h | ||
srcline.c | ||
srcline.h | ||
stat-display.c | ||
stat-shadow.c | ||
stat.c | ||
stat.h | ||
strbuf.c | ||
strbuf.h | ||
strfilter.c | ||
strfilter.h | ||
string2.h | ||
string.c | ||
strlist.c | ||
strlist.h | ||
svghelper.c | ||
svghelper.h | ||
symbol_fprintf.c | ||
symbol-elf.c | ||
symbol-minimal.c | ||
symbol.c | ||
symbol.h | ||
syscalltbl.c | ||
syscalltbl.h | ||
target.c | ||
target.h | ||
term.c | ||
term.h | ||
thread_map.c | ||
thread_map.h | ||
thread-stack.c | ||
thread-stack.h | ||
thread.c | ||
thread.h | ||
time-utils.c | ||
time-utils.h | ||
tool.h | ||
top.c | ||
top.h | ||
trace-event-info.c | ||
trace-event-parse.c | ||
trace-event-read.c | ||
trace-event-scripting.c | ||
trace-event.c | ||
trace-event.h | ||
trigger.h | ||
tsc.c | ||
tsc.h | ||
units.c | ||
units.h | ||
unwind-libdw.c | ||
unwind-libdw.h | ||
unwind-libunwind-local.c | ||
unwind-libunwind.c | ||
unwind.h | ||
usage.c | ||
util-cxx.h | ||
util.c | ||
util.h | ||
values.c | ||
values.h | ||
vdso.c | ||
vdso.h | ||
xyarray.c | ||
xyarray.h | ||
zlib.c |