]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Fix data source encoding issues for load latency/precise store
authorStephane Eranian <eranian@google.com>
Mon, 11 Aug 2014 19:27:12 +0000 (21:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Aug 2014 05:51:15 +0000 (07:51 +0200)
commit4b6bce05cb5c215c395963d1c8f71a9171ab2e34
tree6d8f605feca5cff7e73edc4770545a48901d48ac
parent33793318b8b370b1fcf6d7615e01679dc7e90376
perf/x86: Fix data source encoding issues for load latency/precise store

This patch fixes issues introuduce by Andi's previous patch 'Revamp PEBS'
series.

This patch fixes the following:

 - precise_store_data_hsw() encode the mem op type whenever we can
 - precise_store_data_hsw set the default data source correctly

 - 0 is not a valid init value for data source. Define PERF_MEM_NA as the
   default value

This bug was actually introduced by

    commit f73fc05c949ffc2e23041334d13b5597064c3cc2
    Author: Stephane Eranian <eranian@google.com>
    Date:   Thu May 15 17:56:44 2014 +0200

        fix Haswell precise store data source encoding

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1407785233-32193-4-git-send-email-eranian@google.com
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: ak@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c
include/linux/perf_event.h