Re: [PATCH v6 10/18] perf/x86: add support for PEBS Precise Store

2013-01-18 Thread Andi Kleen
> u64 sample_type; > - int fll; > + int fll, fst; > > if (!intel_pmu_save_and_restart(event)) > return; > > fll = event->hw.flags & PERF_X86_EVENT_PEBS_LDLAT; > + fst = event->hw.flags & PERF_X86_EVENT_PEBS_ST; > > perf_sample_data_init(&data,

[PATCH v6 10/18] perf/x86: add support for PEBS Precise Store

2013-01-15 Thread Stephane Eranian
This patch adds support for PEBS Precise Store which is available on Intel Sandy Bridge and Ivy Bridge processors. To use Precise store, the proper PEBS event must be used: mem_trans_retired:precise_stores. For the perf tool, the generic mem-stores event exported via sysfs can be used directly. S