From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755422AbbIAIag (ORCPT ); Tue, 1 Sep 2015 04:30:36 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:32997 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750884AbbIAIad (ORCPT ); Tue, 1 Sep 2015 04:30:33 -0400 Date: Tue, 1 Sep 2015 10:30:29 +0200 From: Ingo Molnar To: Stephane Eranian Cc: LKML , Arnaldo Carvalho de Melo , Jiri Olsa , Peter Zijlstra , "mingo@elte.hu" , Namhyung Kim , Adrian Hunter Subject: Re: [BUG] perf: does not compile on ARM because of Intel PT code Message-ID: <20150901083029.GB25398@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Stephane Eranian wrote: > 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. Could you double check the latest tip:perf/urgent or tip:master whether this is properly fixed by: # 97db62062ac7 perf tools: Fix build on powerpc broken by pt/bts ? Thanks, Ingo