From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932392AbcBIMQH (ORCPT ); Tue, 9 Feb 2016 07:16:07 -0500 Received: from terminus.zytor.com ([198.137.202.10]:35863 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932134AbcBIMQF (ORCPT ); Tue, 9 Feb 2016 07:16:05 -0500 Date: Tue, 9 Feb 2016 04:15:21 -0800 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: eranian@google.com, mingo@kernel.org, sonnyrao@chromium.org, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, ak@linux.intel.com, pawel.moll@arm.com, cel@us.ibm.com, jolsa@redhat.com, peterz@infradead.org, dsahern@gmail.com, tglx@linutronix.de, hpa@zytor.com, namhyung@kernel.org, sukadev@linux.vnet.ibm.com, johnmccutchan@google.com, acme@redhat.com Reply-To: peterz@infradead.org, dsahern@gmail.com, jolsa@redhat.com, pawel.moll@arm.com, cel@us.ibm.com, ak@linux.intel.com, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, sonnyrao@chromium.org, eranian@google.com, mingo@kernel.org, johnmccutchan@google.com, sukadev@linux.vnet.ibm.com, namhyung@kernel.org, acme@redhat.com, hpa@zytor.com, tglx@linutronix.de In-Reply-To: <1448874143-7269-3-git-send-email-eranian@google.com> References: <1448874143-7269-3-git-send-email-eranian@google.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf inject: Make sure mmap records are ordered when injecting build_ids Git-Commit-ID: 921f3fadbc48c7c3799b415b895297cd476cf7f1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 921f3fadbc48c7c3799b415b895297cd476cf7f1 Gitweb: http://git.kernel.org/tip/921f3fadbc48c7c3799b415b895297cd476cf7f1 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 22 Jan 2016 18:41:00 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 5 Feb 2016 09:46:45 -0300 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 Cc: Adrian Hunter Cc: Andi Kleen Cc: Carl Love Cc: David Ahern Cc: Jiri Olsa Cc: John McCutchan Cc: Namhyung Kim Cc: Pawel Moll Cc: Peter Zijlstra Cc: Sonny Rao Cc: Sukadev Bhattiprolu 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 --- tools/perf/builtin-inject.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index 0022e02..6567bae 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) if (inject.session == NULL) return -1; + if (inject.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 at the same time for now. + */ + inject.tool.ordered_events = true; + inject.tool.ordering_requires_timestamps = true; + } + ret = symbol__init(&inject.session->header.env); if (ret < 0) goto out_delete;