kaul84 / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
1 stars 0 forks source link

perfctr fails with error #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
Machine:  Linux mymach 3.10.0-229.el7.x86_64
OS: Redhat MAIPO - ID_LIKE="fedora" VERSION_ID="7.1"

CPU type:       Intel Core Haswell processor
*************************************************************
Hardware Thread Topology
*************************************************************
Sockets:        1
Cores per socket:       4
Threads per core:       1
2. Use perf counter
likwid-perfctr -g BRANCH -C 1 /bin/ls

What is the expected output? What do you see instead?
Some perf counter values. 
But, I See
<snip>
Measuring group BRANCH
ERROR - [./src/perfmon.c:726] Event BR_MISP_RETIRED_ALL_BRANCHES not found for 
current architecture
</snip>

What version of the product are you using?
likwid-perfctr  3.1

Please provide any additional information below.

When I use "likwid-perfctr -g ICACHE -C 2 /bin/ls"
The tool results in a segfault.

Original issue reported on code.google.com by ggan...@gmail.com on 16 Apr 2015 at 5:51

GoogleCodeExporter commented 9 years ago
Hi,

I checked it and for Haswell there is no event BR_MISP_RETIRED_ALL_BRANCHES in 
LIKWID. But there are two events that should measure the same stuff: 
BR_MISP_RETIRED_ALL_BRANCHES_1 and BR_MISP_RETIRED_ALL_BRANCHES_2
I re-checked the documentation and there are two event masks for the event 
BR_MISP_RETIRED_ALL_BRANCHES, that's why LIKWID provides both events but they 
use different event configuration. Since I will not release a fix for Likwid 
3.1.3, you can fix it yourself in groups/haswell/BRANCH.txt and recompile 
Likwid. For the upcomming version 4, I corrected the issue.

Also ICACHE works fine with Likwid 4.

Original comment by Thomas.R...@googlemail.com on 21 Apr 2015 at 11:41