From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755405AbbIAI3P (ORCPT ); Tue, 1 Sep 2015 04:29:15 -0400 Received: from mga09.intel.com ([134.134.136.24]:36336 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755113AbbIAI3L (ORCPT ); Tue, 1 Sep 2015 04:29:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,447,1437462000"; d="scan'208";a="795273811" Message-ID: <55E5612F.4030800@intel.com> Date: Tue, 01 Sep 2015 11:26:23 +0300 From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Stephane Eranian , LKML CC: Arnaldo Carvalho de Melo , Jiri Olsa , Peter Zijlstra , "mingo@elte.hu" , Namhyung Kim Subject: Re: [BUG] perf: does not compile on ARM because of Intel PT code References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/09/15 11:26, 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. Ingo just pulled the fix for that a moment ago. Look for "perf tools: Fix build on powerpc broken by pt/bts"