perf/x86: Clean up __intel_pmu_pebs_event() code
authorStephane Eranian <eranian@google.com>
Mon, 11 Aug 2014 19:27:13 +0000 (21:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Aug 2014 05:51:16 +0000 (07:51 +0200)
commitc8aab2e04ac9f442a07abeaf49ddd1703c608f47
tree06c3673adc39b10d9c5651439d5c1387a706a824
parent770eee1fd38c70a009b321f5dbe64358f42511fd
perf/x86: Clean up __intel_pmu_pebs_event() code

This patch makes the code more readable. It also renames
precise_store_data_hsw() to precise_datala_hsw() because
the function is called for both loads and stores on HSW.
The patch also gets rid of the hardcoded store events
codes in that same function.

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