public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] perf: does not compile on ARM because of Intel PT code
@ 2015-09-01  8:26 Stephane Eranian
  2015-09-01  8:26 ` Adrian Hunter
  2015-09-01  8:30 ` Ingo Molnar
  0 siblings, 2 replies; 8+ messages in thread
From: Stephane Eranian @ 2015-09-01  8:26 UTC (permalink / raw)
  To: LKML
  Cc: Arnaldo Carvalho de Melo, Jiri Olsa, Peter Zijlstra,
	mingo@elte.hu, Namhyung Kim, Adrian Hunter

Hi,

If you compile tip.git on ARM32 (or ARM64, I bet) you compile link time errors:

libperf.a(libperf-in.o): In function `intel_pt_synth_branch_sample':
/home/ubuntu/perfmon/linux/tools/perf/util/intel-pt.c:899: undefined
reference to `tsc_to_perf_time'
libperf.a(libperf-in.o): In function `intel_pt_synth_transaction_sample':
/home/ubuntu/perfmon/linux/tools/perf/util/intel-pt.c:992: undefined
reference to `tsc_to_perf_time'
libperf.a(libperf-in.o): In function `intel_pt_synth_instruction_sample':
/home/ubuntu/perfmon/linux/tools/perf/util/intel-pt.c:943: undefined
reference to `tsc_to_perf_time'
libperf.a(libperf-in.o): In function `intel_pt_process_event':
/home/ubuntu/perfmon/linux/tools/perf/util/intel-pt.c:1484: undefined
reference to `perf_time_to_tsc'
libperf.a(libperf-in.o): In function `intel_pt_process_itrace_start':
/home/ubuntu/perfmon/linux/tools/perf/util/intel-pt.c:1455: undefined
reference to `perf_time_to_tsc'
libperf.a(libperf-in.o): In function `intel_pt_process_switch':
/home/ubuntu/perfmon/linux/tools/perf/util/intel-pt.c:1405: undefined
reference to `perf_time_to_tsc'
/home/ubuntu/perfmon/linux/tools/perf/util/intel-pt.c:1427: undefined
reference to `perf_time_to_tsc'
libperf.a(libperf-in.o): In function `intel_bts_process_event':
/home/ubuntu/perfmon/linux/tools/perf/util/intel-bts.c:614: undefined
reference to `perf_time_to_tsc'

That's because if AUXTRACE is detected, it pulls in x86 specific stuff
like intel-pt. This should
be decoupled.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-09-01  8:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01  8:26 [BUG] perf: does not compile on ARM because of Intel PT code Stephane Eranian
2015-09-01  8:26 ` Adrian Hunter
2015-09-01  8:29   ` Stephane Eranian
2015-09-01  8:42     ` Ingo Molnar
2015-09-01  8:44       ` Stephane Eranian
2015-09-01  8:51         ` Stephane Eranian
2015-09-01  8:57         ` Ingo Molnar
2015-09-01  8:30 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox