linux/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
..
PERF-VERSION-GEN
abspath.c
alias.c
cache.h
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
ctype.c
environment.c perf_counter tools: Add color terminal output support 2009-06-04 15:28:11 +02:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
help.c perf help: Fix bug when there's no perf-* command around 2009-06-03 20:09:11 +02:00
help.h
levenshtein.c
levenshtein.h
list.h
pager.c
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
quote.c perf_counter tools: Fix warn_unused_result warnings 2009-06-04 22:46:40 +02:00
quote.h
rbtree.c
rbtree.h
run-command.c
run-command.h
sigchain.c
sigchain.h
strbuf.c
strbuf.h
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
util.h
wrapper.c