From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4FEAC43217 for ; Thu, 17 Nov 2022 16:16:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239669AbiKQQQU (ORCPT ); Thu, 17 Nov 2022 11:16:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240200AbiKQQQB (ORCPT ); Thu, 17 Nov 2022 11:16:01 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1B09748FD; Thu, 17 Nov 2022 08:15:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 73F2E62161; Thu, 17 Nov 2022 16:15:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 704ACC433C1; Thu, 17 Nov 2022 16:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668701757; bh=txAsxsxAWAeuQLtW7hnoSdgRyY4Za7If3OTMuSmBKK0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XQ5/qkY+fcqOxiyMK3r3yFajA3q7sEzrdbBJI1wsox33VG/XKQG7/aKp7n0lYtYww ndY5Y1JKi6UC4BRoihnpFfWMb4DGt+JHJWLAZZmk2b5zAKPR46GYm7swUDtfr25KS8 RtEiGo+2PbKiUCsMuVevL5YzFNLzZPX31+is1yDq7ZYMUHaVTRwr+Tx29Vr5MsikBR uNteM55UN7ehWWJjUfcB/qcFOaoYNfWoMgVMQtg14YoiFHvr/554HEgKhCJQF++pVw skD0NPtPhiVpxAPjBN81cVMZ9pmEvYT1PH4MAmbbrwUjMBBJhs3BGNSUMn7dQUSNds cFkZChVQ4j76w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 762904034E; Thu, 17 Nov 2022 13:15:54 -0300 (-03) Date: Thu, 17 Nov 2022 13:15:54 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, Leo Yan , German Gomez , Zhengjun Xing , James Clark , Athira Jajeev Subject: Re: [PATCH 05/12] perf test: Add 'leafloop' test workload Message-ID: References: <20221116233854.1596378-1-namhyung@kernel.org> <20221116233854.1596378-6-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Em Thu, Nov 17, 2022 at 01:06:16PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Nov 16, 2022 at 03:38:47PM -0800, Namhyung Kim escreveu: > > The leafloop workload is to run an infinite loop in the test_leaf > > function. This is needed for the ARM fp callgraph test to verify if it > > gets the correct callchains. > > > > $ perf test -w leafloop > > On fedora:36 > > In file included from /usr/include/bits/libc-header-start.h:33, > from /usr/include/stdlib.h:26, > from tests/workloads/leafloop.c:2: > /usr/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] > 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) > | ^~~~~~~ > cc1: all warnings being treated as errors > make[5]: *** [/home/acme/git/perf/tools/build/Makefile.build:96: /tmp/build/perf/tests/workloads/leafloop.o] Error 1 > make[5]: *** Waiting for unfinished jobs.... > > I'll try removing the _FORTIFY_SOURCE Works after I added this to datasym.c, leafloop.c and brstack.c: diff --git a/tools/perf/tests/workloads/leafloop.c b/tools/perf/tests/workloads/leafloop.c index 1bf5cc97649b0e23..5d72c001320e3013 100644 --- a/tools/perf/tests/workloads/leafloop.c +++ b/tools/perf/tests/workloads/leafloop.c @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#undef _FORTIFY_SOURCE #include #include #include "../tests.h"