Re: Build failure due to Intel PT

Sukadev Bhattiprolu
2015-08-24T20:43:12Z

Arnaldo Carvalho de Melo [acme@kernel.org] wrote:
|
| > Besides adding a 'default' case, can this file be skipped when building on
| > non-x86 architectures?
|
| Not sure, what about processing a perf.data file generated on a x86
| system using a PowerPC workstation?

I am not sure either. Is that well supported?

Anyway, I tried to build with WERROR=0 and get link errors like:

linux-acme.git/tools/perf/perf-obj/libperf.a(libperf-in.o): In function `intel_pt_synth_branch_sample':
sources/linux-acme.git/tools/perf/util/intel-pt.c:871: undefined reference to `tsc_to_perf_time'
linux-acme.git/tools/perf/perf-obj/libperf.a(libperf-in.o): In function `intel_pt_sample':
sources/linux-acme.git/tools/perf/util/intel-pt.c:915: undefined reference to `tsc_to_perf_time'
sources/linux-acme.git/tools/perf/util/intel-pt.c:962: undefined reference to `tsc_to_perf_time'
linux-acme.git/tools/perf/perf-obj/libperf.a(libperf-in.o): In function `intel_pt_process_event':
sources/linux-acme.git/tools/perf/util/intel-pt.c:1454: undefined reference to `perf_time_to_tsc'

...