linux_dsm_epyc7002/Documentation/perf_counter/util
Ingo Molnar 8326f44da0 perf_counter: Implement generalized cache event types
Extend generic event enumeration with the PERF_TYPE_HW_CACHE
method.

This is a 3-dimensional space:

       { L1-D, L1-I, L2, ITLB, DTLB, BPU } x
       { load, store, prefetch } x
       { accesses, misses }

User-space passes in the 3 coordinates and the kernel provides
a counter. (if the hardware supports that type and if the
combination makes sense.)

Combinations that make no sense produce a -EINVAL.
Combinations that are not supported by the hardware produce -ENOTSUP.

Extend the tools to deal with this, and rewrite the event symbol
parsing code with various popular aliases for the units and
access methods above. So 'l1-cache-miss' and 'l1d-read-ops' are
both valid aliases.

( x86 is supported for now, with the Nehalem event table filled in,
  and with Core2 and Atom having placeholder tables. )

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-06-06 13:14:47 +02:00
..
abspath.c perf_counter tools: Introduce stricter C code checking 2009-05-27 08:10:35 +02:00
alias.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
cache.h perf_counter tools: Introduce stricter C code checking 2009-05-27 08:10:35 +02:00
color.c perf_counter tools: Dont output in color on !tty 2009-06-04 15:40:25 +02:00
color.h perf_counter tools: Add color terminal output support 2009-06-04 15:28:11 +02:00
config.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
ctype.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
environment.c perf_counter tools: Add color terminal output support 2009-06-04 15:28:11 +02:00
exec_cmd.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
exec_cmd.h perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
generate-cmdlist.sh perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
help.c perf help: Fix bug when there's no perf-* command around 2009-06-03 20:09:11 +02:00
help.h perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
levenshtein.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
levenshtein.h perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
list.h perf_counter: Add our private copy of list.h 2009-05-26 13:52:55 +02:00
pager.c perf_counter tools: Add built-in pager support 2009-05-27 09:59:00 +02:00
parse-events.c perf_counter: Implement generalized cache event types 2009-06-06 13:14:47 +02:00
parse-events.h perf_counter: Separate out attr->type from attr->config 2009-06-06 11:37:22 +02:00
parse-options.c perf_counter tools: Work around warnings in older GCCs 2009-06-03 21:50:44 +02:00
parse-options.h perf record: Use long arg for counter period 2009-06-03 14:14:31 +02:00
path.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
PERF-VERSION-GEN perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
quote.c perf_counter tools: Fix warn_unused_result warnings 2009-06-04 22:46:40 +02:00
quote.h perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
rbtree.c perf_counter: Use rb_trees in perf report 2009-05-26 13:52:55 +02:00
rbtree.h perf_counter: Use rb_trees in perf report 2009-05-26 13:52:55 +02:00
run-command.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
run-command.h perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
sigchain.c perf_counter tools: Add built-in pager support 2009-05-27 09:59:00 +02:00
sigchain.h perf_counter tools: Add built-in pager support 2009-05-27 09:59:00 +02:00
strbuf.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
strbuf.h perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
string.c perf_counter tools: Add string.[ch] 2009-06-02 03:40:42 +02:00
string.h perf_counter tools: Add string.[ch] 2009-06-02 03:40:42 +02:00
symbol.c perf report: Deal with maps 2009-06-05 14:46:41 +02:00
symbol.h perf report: Deal with maps 2009-06-05 14:46:41 +02:00
usage.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00
util.h perf_counter tools: Introduce stricter C code checking 2009-05-27 08:10:35 +02:00
wrapper.c perf_counter tools: move helper library to util/* 2009-04-27 09:05:08 +02:00