Re: [PATCH] perf record: Set PERF_RECORD_SAMPLE if attr->freq is set.

2020-07-27 Thread Athira Rajeev
> On 27-Jul-2020, at 12:29 PM, Ian Rogers wrote: > > From: David Sharp > > evsel__config() would only set PERF_RECORD_SAMPLE if it set attr->freq Hi Ian, Commit message says PERF_RECORD_SAMPLE. But since we are setting period here, it has to say “PERF_SAMPLE_PERIOD” ? Thanks Athira >

[PATCH] perf record: Set PERF_RECORD_SAMPLE if attr->freq is set.

2020-07-26 Thread Ian Rogers
From: David Sharp evsel__config() would only set PERF_RECORD_SAMPLE if it set attr->freq from perf record options. When it is set by libpfm events, it would not get set. This changes evsel__config to see if attr->freq is set outside of whether or not it changes attr->freq itself. Signed-off-by: