mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
perf tools: Hit all build ids when AUX area tracing
We need to include all buildids when a perf.data file contains AUX area tracing data because we do not decode the trace for that purpose because it would take too long. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1430404667-10593-4-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
99fa298453
commit
cd10b28952
3 changed files with 25 additions and 2 deletions
|
@ -27,6 +27,7 @@ struct perf_inject {
|
|||
struct perf_session *session;
|
||||
bool build_ids;
|
||||
bool sched_stat;
|
||||
bool have_auxtrace;
|
||||
const char *input_name;
|
||||
struct perf_data_file output;
|
||||
u64 bytes_written;
|
||||
|
@ -122,6 +123,8 @@ static s64 perf_event__repipe_auxtrace(struct perf_tool *tool,
|
|||
tool);
|
||||
int ret;
|
||||
|
||||
inject->have_auxtrace = true;
|
||||
|
||||
if (!inject->output.is_pipe) {
|
||||
off_t offset;
|
||||
|
||||
|
@ -508,9 +511,12 @@ static int __cmd_inject(struct perf_inject *inject)
|
|||
ret = perf_session__process_events(session);
|
||||
|
||||
if (!file_out->is_pipe) {
|
||||
if (inject->build_ids)
|
||||
if (inject->build_ids) {
|
||||
perf_header__set_feat(&session->header,
|
||||
HEADER_BUILD_ID);
|
||||
if (inject->have_auxtrace)
|
||||
dsos__hit_all(session);
|
||||
}
|
||||
/*
|
||||
* The AUX areas have been removed and replaced with
|
||||
* synthesized hardware events, so clear the feature flag.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue