Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2330129rwb; Thu, 17 Nov 2022 09:19:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YJQm0jFdyQYVXRBF1WmZJOIriDflWU9W8ck52mwCAFzc7hSu5ReZoaBbPv7aNa5EKtvDt X-Received: by 2002:a17:906:c7d1:b0:7ae:fdcd:8198 with SMTP id dc17-20020a170906c7d100b007aefdcd8198mr3032268ejb.475.1668705587652; Thu, 17 Nov 2022 09:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668705587; cv=none; d=google.com; s=arc-20160816; b=eoyjNvw6LXWBqyyhQcvj971uGmUqdhiQFlY7fdN/0U5Z+7FOlgDl+5xFhQtKuRd6x7 bs5i3l5ZN1xaG0veNElAmqtU/7rc9+4spY7yGEFRuDeUw0PqLdhgUu+dhOI+eu9l1yZ+ XTe87FRICOuUZaA8rAWl4z40R63lSkCPZS9O74LZpgBOw6j6Tp/B+Zx1gQFApUJBGNSV 5Y/q8kpmPuJupdwwkmTo+bCUKeKkqXr+PnbOjIzA5lgFMib2S6pnlmkRuVGz1XxkTPQ9 WV6b4+vpBoP88/s7p5506TWAvB3xpyk9ETshrjVMg5N8DXfRWxP4tjyS0pBezIbUPBv/ w3jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IK7eP1pBgdE33gX79cyfaS0KvC0w6iF3f/dCx6FA1EU=; b=eWfXRS3Rjd1HC1+wFgVSfaAJB6URsgfS130jwtANpFL3LS5arBWofteHx/KINHDHUR eNtmifYiogpfY4eDhD33bcC+0huxu24svya+aAHMBQFhThPcOYvwXFvXARIEpjg4iYCg 4DTsZVHXU501LPCCGp+P5cUP9iAMyqtpfZbp6iw37UcVqI/YxHPqlxM1d+EhAoseLeat xz3CUyd/1VJvDkwXzrOK2WEB9LTkY1cWasFqGmRE3HVfkIMmpKwYMUBMBTzhbSkEfIQ/ mH2Yd8m9078LRP8LL1vCitIz/QPz3FSdJWk6TCz2roG5zeBdFm2YMxOfu4rDOMmgIwTw N+QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XQ5/qkY+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020aa7c692000000b00453b9f11b56si1154350edq.261.2022.11.17.09.19.20; Thu, 17 Nov 2022 09:19:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XQ5/qkY+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S239374AbiKQQQX (ORCPT + 92 others); Thu, 17 Nov 2022 11:16:23 -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 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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"