From patchwork Thu Nov 7 18:59:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 178816 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1472895ilf; Thu, 7 Nov 2019 11:01:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwTtXbgrnxaAiGVbwadz+FDKnO7VXA2XYvlT2DcN5JU6eeaPB7U8xb82N0tSdYLhfL3AoAM X-Received: by 2002:a17:906:7c55:: with SMTP id g21mr4720750ejp.48.1573153299786; Thu, 07 Nov 2019 11:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573153299; cv=none; d=google.com; s=arc-20160816; b=cIUOY8x1NPFGbH8BgANmPfTISAdiqCUR76O/pK9CcZXDEiD1TkVpsirPtSYoXj7QyT wsR4eg/MGltXYHTUNmoNLIZ3lKnr/9pVBQ4bqE584xKf22m0+m2uBiyglIr9etDz+kPM QQTzDNIehTPrMXK8jNhbih53elsOYdUsdAH4pw0BqvDJx0VbksojKt7HaiUPBKEczMDN xORacY90fUwkeK0Y6Ici8danVV0Un0u6z/EOxfgcUkOW1MRN/dmFYUsE3l5BfLjd91EI 4Z0IL4s7D6ADDMztPs43yE6lPW4BYHWJ3heWQFXZuAPT+VnApknev0T+lanK26M+ll5n bHmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UQXzB4GgTn9cD6swhErWtBItm5oB63v5d0fbFFBTOGM=; b=L2VLKlIdjz5kjuGb2SL9GyYCKNJp0WN8Q2JkxmuFWnuTunY00pgeqM+IyD70mBfrA/ 23bFdQBiHgHi5dbHLYuewERBARytoj9QEhqnU46YNDMSr6okvdjxYFpn0WC9yhSskaNb suq1hL4/17pOTfSHJoLuzCw2ngeCmmfMjHWveIXfqL3V6vpp4RYQJ9wGcB3q0YLQueSH YRdedZVT5mQ+C+EY1o8TfT8O67gQLkgqW0rSjYsY9bL1Sp+M7fJ+hQSu3DSVnvySAVV5 X9xFJFIoLFFj+od8iJcrV3KZgaAeulHjD212GZHUWzZwAkJnPry7QMurDedEuU13SHtZ Yllg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DP0hI2tG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b47si2184576edc.129.2019.11.07.11.01.39; Thu, 07 Nov 2019 11:01:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DP0hI2tG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbfKGTBg (ORCPT + 26 others); Thu, 7 Nov 2019 14:01:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:40918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfKGTBf (ORCPT ); Thu, 7 Nov 2019 14:01:35 -0500 Received: from quaco.ghostprotocols.net (179-240-172-58.3g.claro.net.br [179.240.172.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 46B5821882; Thu, 7 Nov 2019 19:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573153294; bh=mLv9srSdCScvSK+KObTSW8M2mnct2ipluEZmZHHVwpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DP0hI2tG8tarJZYhxakyNh6eIUS8hLP86qHzkV4XQ5jN3qYsuvj0ktVNl3buzQ03H 39S1qnMNQ0bnzOCj3RC1I1gN5lCnO35Jo/wb71dWnwSV5jL1/dvmxns74SeFFBGUZ7 WCztfe0a/EUeY0nb8BMMvaTgqYeChAwQzAhK/X38= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan , Mathieu Poirier , Alexander Shishkin , Jiri Olsa , Mark Rutland , Peter Zijlstra , Suzuki Poulouse , coresight ml , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo Subject: [PATCH 08/63] perf cs-etm: Fix definition of macro TO_CS_QUEUE_NR Date: Thu, 7 Nov 2019 15:59:16 -0300 Message-Id: <20191107190011.23924-9-acme@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191107190011.23924-1-acme@kernel.org> References: <20191107190011.23924-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan Macro TO_CS_QUEUE_NR definition has a typo, which uses 'trace_id_chan' as its parameter, this doesn't match with its definition body which uses 'trace_chan_id'. So renames the parameter to 'trace_chan_id'. It's luck to have a local variable 'trace_chan_id' in the function cs_etm__setup_queue(), even we wrongly define the macro TO_CS_QUEUE_NR, the local variable 'trace_chan_id' is used rather than the macro's parameter 'trace_id_chan'; so the compiler doesn't complain for this before. After renaming the parameter, it leads to a compiling error due cs_etm__setup_queue() has no variable 'trace_id_chan'. This patch uses the variable 'trace_chan_id' for the macro so that fixes the compiling error. Signed-off-by: Leo Yan Reviewed-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Suzuki Poulouse Cc: coresight ml Cc: linux-arm-kernel@lists.infradead.org Link: http://lore.kernel.org/lkml/20191021074808.25795-1-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/cs-etm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.21.0 diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index 4ba0f871f086..f5f855fff412 100644 --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -110,7 +110,7 @@ static int cs_etm__decode_data_block(struct cs_etm_queue *etmq); * encode the etm queue number as the upper 16 bit and the channel as * the lower 16 bit. */ -#define TO_CS_QUEUE_NR(queue_nr, trace_id_chan) \ +#define TO_CS_QUEUE_NR(queue_nr, trace_chan_id) \ (queue_nr << 16 | trace_chan_id) #define TO_QUEUE_NR(cs_queue_nr) (cs_queue_nr >> 16) #define TO_TRACE_CHAN_ID(cs_queue_nr) (cs_queue_nr & 0x0000ffff) @@ -819,7 +819,7 @@ static int cs_etm__setup_queue(struct cs_etm_auxtrace *etm, * Note that packets decoded above are still in the traceID's packet * queue and will be processed in cs_etm__process_queues(). */ - cs_queue_nr = TO_CS_QUEUE_NR(queue_nr, trace_id_chan); + cs_queue_nr = TO_CS_QUEUE_NR(queue_nr, trace_chan_id); ret = auxtrace_heap__add(&etm->heap, cs_queue_nr, timestamp); out: return ret; From patchwork Thu Nov 7 18:59:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 178817 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1474510ilf; Thu, 7 Nov 2019 11:02:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzmd7V6bl5wm4sYNVd4jvQLWwChppsD5rS+zT0chO7mjXlbbVlI1JDgKzLslWYiJkOjEV3n X-Received: by 2002:aa7:cd54:: with SMTP id v20mr5419404edw.203.1573153355144; Thu, 07 Nov 2019 11:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573153355; cv=none; d=google.com; s=arc-20160816; b=evhn4TVc9G5OXEAaOHH0hDCoBJUz+cciX6rgp+yRYLEbpqc2QJeuBNVmk2d4CU3rX9 oGX9IQ5ngTBGeukv+umVp0k67oxP+O5ztiPFP0EGAQY/OXskxOiTFRKhrs6LLmaBAhN6 0/9Lam8hFfe6iC0Rllc/RAtBw/Eoxs5oe3QzrSPA4sHcJ4H2PRpaTd4/Jt/4SsJ6m+Xp Xy4AbBICX6S7olQ+lZtlIiPr6swIbJGBcF0PN6sqxrzcPHgb+93UsdHlVbLbE9mD9DNh Qzy3r8oYrOmiPEtVrx8w9VEJWE3HCIEsGTmM2G58M9IkBL/tt+HCvDkr4JAa/eqq5saW vAEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b5HqaixJcN742pxiNytEuAljXH0iJO3T6qvEv/Cm+W4=; b=M3coPqsWQ4KFDfd0jW+ylCP30ikaE55npRlQqEsez2h7aM9QQYenFuvCI0cYYMUCdO Q577C+DlgYApHW70bxV/Rs64B2v3l2s7exhrL0sUVKo1XPBs5SxWj2tZHOXkevlBrGKO WqDaV7Q1ypakMS+2F4R+UCSCyNayHR5G6koOb8pzbv1OnU04pe8mVL0DgAcosrN7gXHs AE8fiaRJCSl4m2KGvFpb1PMYCqZLHSo536OOhgKv5SuBGBRqbudD7MtPPvDxWdoNWrLx uSUBXXbWVOGvb3kZUdlMYd3xKyLy3Vd77FHeQ0hvMtwPdcxLlVl/wGMTZALNCcjO6hAx Oxpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZMh/zMEW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si2682950eda.359.2019.11.07.11.02.34; Thu, 07 Nov 2019 11:02:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZMh/zMEW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728754AbfKGTCc (ORCPT + 26 others); Thu, 7 Nov 2019 14:02:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:41676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726887AbfKGTCb (ORCPT ); Thu, 7 Nov 2019 14:02:31 -0500 Received: from quaco.ghostprotocols.net (179-240-172-58.3g.claro.net.br [179.240.172.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ECACF2085B; Thu, 7 Nov 2019 19:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573153351; bh=H7RFy1rb5D/JvenBmiiuieYO0PKJugczlqf28PJUQkU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZMh/zMEWSvz8KVhTJq3ellRvvdnHLLe1d9+z4GGeS0xbS21ulODzrn3wuFRxyeIyI sonQ61RYrgOzpn/RqHsVcKwFfnDveuJG7LyPkHjTA/TfWRA5WmTLHdSdg2L9yBfY+D ZI4MkP5J5FUROn50KxNlJJwPmJO1JYjBm5QidR7k= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan , Will Deacon , Alexander Shishkin , Florian Fainelli , Jiri Olsa , Mark Rutland , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 13/63] perf tests: Fix a typo Date: Thu, 7 Nov 2019 15:59:21 -0300 Message-Id: <20191107190011.23924-14-acme@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191107190011.23924-1-acme@kernel.org> References: <20191107190011.23924-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan Correct typo in comment: s/suck/stuck. Signed-off-by: Leo Yan Reported-by: Will Deacon Cc: Alexander Shishkin Cc: Florian Fainelli Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/20191023083324.12093-1-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/bp_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c index 166f411568a5..415903b48578 100644 --- a/tools/perf/tests/bp_signal.c +++ b/tools/perf/tests/bp_signal.c @@ -295,7 +295,7 @@ bool test__bp_signal_is_supported(void) * breakpointed instruction. * * Since arm64 has the same issue with arm for the single-step - * handling, this case also gets suck on the breakpointed + * handling, this case also gets stuck on the breakpointed * instruction. * * Just disable the test for these architectures until these From patchwork Thu Nov 7 18:59:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 178818 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1482162ilf; Thu, 7 Nov 2019 11:06:52 -0800 (PST) X-Google-Smtp-Source: APXvYqy4l0Rm+QwnGR9HRS8Wn7PrKsgMGoMvUKZ9FAlJICbfsFLZhvfrOygE+jRHv5dEH5kjfMFX X-Received: by 2002:a17:907:2078:: with SMTP id qp24mr4651188ejb.157.1573153607380; Thu, 07 Nov 2019 11:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573153607; cv=none; d=google.com; s=arc-20160816; b=edpUPPeDokDNB0hs4OIswLCayzlgymnPjzXB8H2xcN0n9XPecoNR1bQSjOApMPFWOF DjO2ZcJeGgvfzBuN1Gf9CJz+zhQZHtI8Xcq78YIaPaqevmBcmVDwmArBuFbjbT6gJa41 PhB0sltwP2tvV+PRe2c2VgpomZ+Ez9BuBPFgSh1ESCcSSIIty/+n/DDxhC2uELKyTBXP rw3Ub5SUehsPdGy7IPbuhf6oPOr3MD4YiXXU2PSws82D0jr2e038WH+yjGmlj7GOEPL3 LklCP+54z5h0PCfXOa0Ya3PFVA2bIifL9qU2bjpJt89CnnJ0OKBuzd58hUsoUzJQabyL seWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rC8O4jWDmGZq7Gx25apivE3xeFfHAg6VR36H1gGJCy4=; b=ZKosUjhDyf2K1rK92QQ+tn/TeLwSSB49r4Soqa0b74/yyNrG5NAaBYaZ1NRJ2wnoCu FGUcHh5a2mTGFyXVIMxLVyaUHnYoCYScHba3BY4pLLeX5RrVn5mjO4E6OGckz9DFVpzI Qz+QOCMU983cQqL5vuLxrLqM9firKuYZH7kzw0C7J+67+I8owI2cmt0/9JyXgIAlxkO2 vj+6BiJ0qoMHHxnVa5wi2O0MhlAYuO3yjuOIoS9PFrWHFTq8Npg7Nfey/LEYPbCcEXdV LZEjLsD0nBX7XFbL5YNoReHeNrISExDIkodvURq8jYVcjzFctSAqzb4q1ZufCWKmK6Ht V7QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qvS7IjMt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si2132854eja.141.2019.11.07.11.06.39; Thu, 07 Nov 2019 11:06:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qvS7IjMt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730512AbfKGTGa (ORCPT + 26 others); Thu, 7 Nov 2019 14:06:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:44712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727352AbfKGTG3 (ORCPT ); Thu, 7 Nov 2019 14:06:29 -0500 Received: from quaco.ghostprotocols.net (179-240-172-58.3g.claro.net.br [179.240.172.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C4C8222C6; Thu, 7 Nov 2019 19:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573153588; bh=obswrDG1ZxfUiXZJ7jUiqEfLNTSGT592OfqCFlY8FxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qvS7IjMt1UP18lkoUCiTLu6F5DzUcHkUBA23zt5nCPQnqNnJhJzlr7x6Lzm6rE/yw 1sCqMle/1ZDQaGyDr/v0m72IDQklPDiJqZqMVsLkyKZU5XSM6RHdhpc2dEZQmgEuhW W/9qe98+6CnP4b1vTd5uYfKRb0+MUzHp4ziFQuUI= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, John Garry , Alexander Shishkin , Jiri Olsa , Mark Rutland , Peter Zijlstra , Will Deacon , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo Subject: [PATCH 39/63] perf tools: Fix cross compile for ARM64 Date: Thu, 7 Nov 2019 15:59:47 -0300 Message-Id: <20191107190011.23924-40-acme@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191107190011.23924-1-acme@kernel.org> References: <20191107190011.23924-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Garry Currently when cross compiling perf tool for ARM64 on my x86 machine I get this error: arch/arm64/util/sym-handling.c:9:10: fatal error: gelf.h: No such file or directory #include For the build, libelf is reported off: Auto-detecting system features: ... ... libelf: [ OFF ] Indeed, test-libelf is not built successfully: more ./build/feature/test-libelf.make.output test-libelf.c:2:10: fatal error: libelf.h: No such file or directory #include ^~~~~~~~~~ compilation terminated. I have no such problems natively compiling on ARM64, and I did not previously have this issue for cross compiling. Fix by relocating the gelf.h include. Signed-off-by: John Garry Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Link: http://lore.kernel.org/lkml/1573045254-39833-1-git-send-email-john.garry@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/arm64/util/sym-handling.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/tools/perf/arch/arm64/util/sym-handling.c b/tools/perf/arch/arm64/util/sym-handling.c index 5df788985130..8dfa3e5229f1 100644 --- a/tools/perf/arch/arm64/util/sym-handling.c +++ b/tools/perf/arch/arm64/util/sym-handling.c @@ -6,9 +6,10 @@ #include "symbol.h" // for the elf__needs_adjust_symbols() prototype #include -#include #ifdef HAVE_LIBELF_SUPPORT +#include + bool elf__needs_adjust_symbols(GElf_Ehdr ehdr) { return ehdr.e_type == ET_EXEC ||