aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-01-22 16:41:00 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-02-05 07:46:45 -0500
commit921f3fadbc48c7c3799b415b895297cd476cf7f1 (patch)
treeb3436dd9d01aa1478db2c5c3252d845abc127d3a /tools
parent8ee4646038e47d065d35703e3e343136c4cd42aa (diff)
perf inject: Make sure mmap records are ordered when injecting build_ids
To make sure the mmap records are ordered correctly and so that the correct especially due to jitted code mmaps. We cannot generate the buildid hit list and inject the jit mmaps (will come right after this patch) in at the same time for now. Signed-off-by: Stephane Eranian <eranian@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Carl Love <cel@us.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: John McCutchan <johnmccutchan@google.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sonny Rao <sonnyrao@chromium.org> Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/1448874143-7269-3-git-send-email-eranian@google.com [ Carved out from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-inject.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c
index 0022e02ed31a..6567baedd92a 100644
--- a/tools/perf/builtin-inject.c
+++ b/tools/perf/builtin-inject.c
@@ -755,6 +755,17 @@ int cmd_inject(int argc, const char **argv, const char *prefix __maybe_unused)
755 if (inject.session == NULL) 755 if (inject.session == NULL)
756 return -1; 756 return -1;
757 757
758 if (inject.build_ids) {
759 /*
760 * to make sure the mmap records are ordered correctly
761 * and so that the correct especially due to jitted code
762 * mmaps. We cannot generate the buildid hit list and
763 * inject the jit mmaps at the same time for now.
764 */
765 inject.tool.ordered_events = true;
766 inject.tool.ordering_requires_timestamps = true;
767 }
768
758 ret = symbol__init(&inject.session->header.env); 769 ret = symbol__init(&inject.session->header.env);
759 if (ret < 0) 770 if (ret < 0)
760 goto out_delete; 771 goto out_delete;