Re: [PATCH v6 07/18] perf: add generic memory sampling interface

2013-01-23 Thread Stephane Eranian
On Sat, Jan 19, 2013 at 12:06 AM, Andi Kleen wrote: >> extern void perf_output_sample(struct perf_output_handle *handle, >> diff --git a/include/uapi/linux/perf_event.h >> b/include/uapi/linux/perf_event.h >> index 7e24641..8283218 100644 >> --- a/include/uapi/linux/perf_event.h >> +++ b/include

Re: [PATCH v6 07/18] perf: add generic memory sampling interface

2013-01-18 Thread Andi Kleen
> extern void perf_output_sample(struct perf_output_handle *handle, > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 7e24641..8283218 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -133,9 +133,9 @@ enum perf_event

[PATCH v6 07/18] perf: add generic memory sampling interface

2013-01-15 Thread Stephane Eranian
This patch adds PERF_SAMPLE_DSRC. PERF_SAMPLE_DSRC collects the data source, i.e., where did the data associated with the sampled instruction come from. Information is stored in a perf_mem_dsrc structure. It contains opcode, mem level, tlb, snoop, lock information, subject to availability in hardw