[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150324110710.GA27134@krava.brq.redhat.com>
Date: Tue, 24 Mar 2015 12:07:10 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Adrian Hunter <adrian.hunter@...el.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
linux-kernel@...r.kernel.org, David Ahern <dsahern@...il.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Namhyung Kim <namhyung@...il.com>,
Paul Mackerras <paulus@...ba.org>,
Stephane Eranian <eranian@...gle.com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH V6 04/25] perf tools: Add support for AUX area recording
On Mon, Mar 16, 2015 at 02:41:26PM +0200, Adrian Hunter wrote:
SNIP
> index 8acd0df..7553788 100644
> --- a/tools/perf/util/record.c
> +++ b/tools/perf/util/record.c
> @@ -119,7 +119,16 @@ void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts)
> evsel->attr.comm_exec = 1;
> }
>
> - if (evlist->nr_entries > 1) {
> + if (opts->full_auxtrace) {
> + /*
> + * Need to be able to synthesize and parse selected events with
> + * arbitrary sample types, which requires always being able to
> + * match the id.
> + */
> + use_sample_identifier = true;
no need to set use_sample_identifier, you can call
perf_evsel__set_sample_id with true
> + evlist__for_each(evlist, evsel)
> + perf_evsel__set_sample_id(evsel, use_sample_identifier);
> + } else if (evlist->nr_entries > 1) {
but shouldn't you first detect the perf_can_sample_identifier bool same
as the other leg does and use it accordingly? maybe smth like:
if (evlist->nr_entries > 1 || opts->full_auxtrace) {
...
}
if (opts->full_auxtrace && !use_sample_identifier)
err..
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists