Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1372247 > unrolled thread

[tip:perf/core] perf intel-pt/bts: Define JITDUMP_USE_ARCH_TIMESTAMP

Started bytip-bot for Adrian Hunter <tipbot@zytor.com>
First post2016-04-06 09:10 +0200
Last post2016-04-06 09:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [tip:perf/core] perf intel-pt/bts: Define  JITDUMP_USE_ARCH_TIMESTAMP tip-bot for Adrian Hunter <tipbot@zytor.com> - 2016-04-06 09:10 +0200

#1372247 — [tip:perf/core] perf intel-pt/bts: Define JITDUMP_USE_ARCH_TIMESTAMP

Fromtip-bot for Adrian Hunter <tipbot@zytor.com>
Date2016-04-06 09:10 +0200
Subject[tip:perf/core] perf intel-pt/bts: Define JITDUMP_USE_ARCH_TIMESTAMP
Message-ID<rkPLc-gu-23@gated-at.bofh.it>
Commit-ID:  bd0c7a54219cc3745ce7f36970d8e5ffb3f8d80e
Gitweb:     http://git.kernel.org/tip/bd0c7a54219cc3745ce7f36970d8e5ffb3f8d80e
Author:     Adrian Hunter <adrian.hunter@intel.com>
AuthorDate: Tue, 8 Mar 2016 10:38:53 +0200
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Fri, 1 Apr 2016 18:46:24 -0300

perf intel-pt/bts: Define JITDUMP_USE_ARCH_TIMESTAMP

For Intel PT / BTS, define the environment variable that selects TSC
timestamps in the jitdump file.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1457426333-30260-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/arch/x86/util/intel-bts.c | 5 +++++
 tools/perf/arch/x86/util/intel-pt.c  | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/tools/perf/arch/x86/util/intel-bts.c b/tools/perf/arch/x86/util/intel-bts.c
index d66f9ad..7dc3063 100644
--- a/tools/perf/arch/x86/util/intel-bts.c
+++ b/tools/perf/arch/x86/util/intel-bts.c
@@ -438,6 +438,11 @@ struct auxtrace_record *intel_bts_recording_init(int *err)
 	if (!intel_bts_pmu)
 		return NULL;
 
+	if (setenv("JITDUMP_USE_ARCH_TIMESTAMP", "1", 1)) {
+		*err = -errno;
+		return NULL;
+	}
+
 	btsr = zalloc(sizeof(struct intel_bts_recording));
 	if (!btsr) {
 		*err = -ENOMEM;
diff --git a/tools/perf/arch/x86/util/intel-pt.c b/tools/perf/arch/x86/util/intel-pt.c
index a339517..a07b960 100644
--- a/tools/perf/arch/x86/util/intel-pt.c
+++ b/tools/perf/arch/x86/util/intel-pt.c
@@ -1027,6 +1027,11 @@ struct auxtrace_record *intel_pt_recording_init(int *err)
 	if (!intel_pt_pmu)
 		return NULL;
 
+	if (setenv("JITDUMP_USE_ARCH_TIMESTAMP", "1", 1)) {
+		*err = -errno;
+		return NULL;
+	}
+
 	ptr = zalloc(sizeof(struct intel_pt_recording));
 	if (!ptr) {
 		*err = -ENOMEM;

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web