perf_event: Add alignment-faults and emulation-faults software events
authorAnton Blanchard <anton@samba.org>
Sun, 18 Oct 2009 01:09:29 +0000 (01:09 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 28 Oct 2009 05:13:03 +0000 (16:13 +1100)
commitf7d7986060b2890fc26db6ab5203efbd33aa2497
tree0ed63257afd3fd02d83ab481af35855603ac4790
parent81cd5ae303e88a1e9d3a3e0f1fe8abd100edde16
perf_event: Add alignment-faults and emulation-faults software events

Add two more software events that are common to many cpus.

Alignment faults: When a load or store is not aligned properly.

Emulation faults: When an instruction is emulated in software.

Both cause a very significant slowdown (100x or worse), so identifying and
fixing them is very important.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/linux/perf_counter.h
include/linux/perf_event.h
kernel/perf_event.c
tools/perf/design.txt
tools/perf/util/parse-events.c