History

perf_events: Fix bogus AMD64 generic TLB events

PERF_COUNT_HW_CACHE_DTLB:READ:MISS had a bogus umask value of 0 which counts nothing. Needed to be 0x7 (to count all possibilities). PERF_COUNT_HW_CACHE_ITLB:READ:MISS had a bogus umask value of 0 which counts nothing. Needed to be 0x3 (to count all possibilities).

Stephane Eranian committed 16 years ago

Commit ba0cef31 parent c530ccd1 file · +2 −2Browse files

Unified · Split

arch/x86/kernel/cpu/perf_event_amd.c+2−2
@@ -52,7 +52,7 @@ static __initconst const u64 amd_hw_cache_event_ids · 51 unmodified lines
52 [ C(DTLB) ] = {52 [ C(DTLB) ] = {
53 [ C(OP_READ) ] = {53 [ C(OP_READ) ] = {
54 [ C(RESULT_ACCESS) ] = 0x0040, /* Data Cache Accesses */54 [ C(RESULT_ACCESS) ] = 0x0040, /* Data Cache Accesses */
55 [ C(RESULT_MISS) ] = 0x0046, /* L1 DTLB and L2 DLTB Miss */55 [ C(RESULT_MISS) ] = 0x0746, /* L1_DTLB_AND_L2_DLTB_MISS.ALL */
56 },56 },
57 [ C(OP_WRITE) ] = {57 [ C(OP_WRITE) ] = {
58 [ C(RESULT_ACCESS) ] = 0,58 [ C(RESULT_ACCESS) ] = 0,
@@ -66,7 +66,7 @@ static __initconst const u64 amd_hw_cache_event_ids · 7 unmodified lines
66 [ C(ITLB) ] = {66 [ C(ITLB) ] = {
67 [ C(OP_READ) ] = {67 [ C(OP_READ) ] = {
68 [ C(RESULT_ACCESS) ] = 0x0080, /* Instruction fecthes */68 [ C(RESULT_ACCESS) ] = 0x0080, /* Instruction fecthes */
69 [ C(RESULT_MISS) ] = 0x0085, /* Instr. fetch ITLB misses */69 [ C(RESULT_MISS) ] = 0x0385, /* L1_ITLB_AND_L2_ITLB_MISS.ALL */
70 },70 },
71 [ C(OP_WRITE) ] = {71 [ C(OP_WRITE) ] = {
72 [ C(RESULT_ACCESS) ] = -1,72 [ C(RESULT_ACCESS) ] = -1,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t