Sample Header Ad - 728x90

Why can't I find hardware cache event in my perf list?

2 votes
3 answers
7273 views
I have a problem in using linux perf on a newly bought laptop: there is no available hardware cache effect in my perf list!!! Well, this is really all important information that I wish to sample!! Here is my perf list: List of pre-defined events (to be used in -e): cpu-cycles OR cycles [Hardware event] instructions [Hardware event] cache-references [Hardware event] cache-misses [Hardware event] branch-instructions OR branches [Hardware event] branch-misses [Hardware event] bus-cycles [Hardware event] ref-cycles [Hardware event] cpu-clock [Software event] task-clock [Software event] page-faults OR faults [Software event] context-switches OR cs [Software event] cpu-migrations OR migrations [Software event] minor-faults [Software event] major-faults [Software event] alignment-faults [Software event] emulation-faults [Software event] dummy [Software event] branch-instructions OR cpu/branch-instructions/ [Kernel PMU event] branch-misses OR cpu/branch-misses/ [Kernel PMU event] bus-cycles OR cpu/bus-cycles/ [Kernel PMU event] cache-misses OR cpu/cache-misses/ [Kernel PMU event] cache-references OR cpu/cache-references/ [Kernel PMU event] cpu-cycles OR cpu/cpu-cycles/ [Kernel PMU event] instructions OR cpu/instructions/ [Kernel PMU event] power/energy-cores/ [Kernel PMU event] power/energy-gpu/ [Kernel PMU event] power/energy-pkg/ [Kernel PMU event] power/energy-ram/ [Kernel PMU event] ref-cycles OR cpu/ref-cycles/ [Kernel PMU event] rNNN [Raw hardware event descriptor] cpu/t1=v1[,t2=v2,t3 ...]/modifier [Raw hardware event descriptor] (see 'man perf-list' on how to encode it) mem:[:access] [Hardware breakpoint] [ Tracepoints not available: Permission denied ] while this is the perf list I used to see: . What I used to do is: sudo perf stat -e L1-dcache-loads,L1-dcache-load-misses,LLC-loads,LLC-load-misses -a --append -o perf.txt [some command to run a file] but this does not work on my new machine. How can I collect data I want in this case? I am using Ubuntu 14.04, with kernel . Perf version . ------ **update** I installed the papi-tools library, and papi_native_avail gives me Available native events and hardware information. PAPI Version : 5.3.0.0 Vendor string and code : GenuineIntel (1) Model string and code : Intel(R) Core(TM) M-5Y71 CPU @ 1.20GHz (61) CPU Revision : 4.000000 CPUID Info : Family: 6 Model: 61 Stepping: 4 CPU Max Megahertz : 2900 CPU Min Megahertz : 500 Hdw Threads per core : 1 Cores per Socket : 2 Sockets : 2 NUMA Nodes : 1 CPUs per Node : 4 Total CPUs : 4 Running in a VM : no Number Hardware Counters : 0 Max Multiplex Counters : 64
Asked by Zheyuan Li (123 rep)
Apr 2, 2016, 07:16 PM
Last activity: Jun 30, 2020, 11:57 AM