Can perf account for all cache misses?
问题 I'm trying to understand the cache misses recorded by perf. I have a minimal program: int main(void) { return 0; } If I compile this: gcc -std=c99 -W -Wall -Werror -O3 -S -o test.S test.c I get an expectedly small program: .file "test.c" .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB0: .cfi_startproc xorl %eax, %eax ret .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (Debian 4.7.2-5) 4.7.2" .section .note.GNU-stack,"",@progbits With only