diff options
author | Kan Liang <[email protected]> | 2015-01-12 17:42:21 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-01-16 09:06:59 +0100 |
commit | 33636732dcd7cc738a5913bb730d663c6b03c8fb (patch) | |
tree | ace9f6093e59ba6fc62cfb7db1e963ad9299927c /net/nfc/llcp_commands.c | |
parent | 433678bdc6ed39f053c55da96b51de5bf0aeebb1 (diff) |
perf/x86/intel: Fix bug for "cycles:p" and "cycles:pp" on SLM
cycles:p and cycles:pp do not work on SLM since commit:
86a04461a99f ("perf/x86: Revamp PEBS event selection")
UOPS_RETIRED.ALL is not a PEBS capable event, so it should not be used
to count cycle number.
Actually SLM calls intel_pebs_aliases_core2() which uses INST_RETIRED.ANY_P
to count the number of cycles. It's a PEBS capable event. But inv and
cmask must be set to count cycles.
Considering SLM allows all events as PEBS with no flags, only
INST_RETIRED.ANY_P, inv=1, cmask=16 needs to handled specially.
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/nfc/llcp_commands.c')
0 files changed, 0 insertions, 0 deletions