Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2352406rwb; Thu, 17 Nov 2022 09:36:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4rykn5gbikraaEHzL6cloJPV2B9S0H7iEy9hH2l1tfyZogk9w9zo0nSxsHNuRQzps6zIj6 X-Received: by 2002:a63:9318:0:b0:470:60a5:f822 with SMTP id b24-20020a639318000000b0047060a5f822mr2898951pge.302.1668706614274; Thu, 17 Nov 2022 09:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668706614; cv=none; d=google.com; s=arc-20160816; b=A6jkbaYfhvtL7IiIhB/VIkVcq7l3BXAQ87bY/DJjLeApfdDar7aqgy56CVN90iZyPM jQIXCdvGrCCJOxgVKOLEovU0Lj/t4Bu6DrGmIfriAr6ne6j+ADlT4aG6+OE+8wAcDCoL wUV4pi+l5nI6l+Crg85h9Yg0kc2ga91O31akxAPc6K6rEPe9cqBRu3LPNssTDWgxQ75E HHq7pOiz4+4KeAgfcxqqO9imV4Ui7o64aJTIVeX8f9WyeK104rsOwDdghve+Kkl9I1W5 iDn/yjKws0DQ9jfY3yOwnmG6c8bhOGBBZHZknh1SvHwzwceQOBWm1tXITMUXH8DXY4ZU KRsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+G+jefr7ymw5kyDWKXEsX2UJzRRuDh3ZeqTuoucnosI=; b=jmI3LdPEJvFRVOQghOoWxRKZ3ffxATEN6J7AD8IOBJIdfd/evaAdvh958/BCpArPmc BL1px27sg4ebZKrFYBC8mqAaRBBxRrDz4wxPQK+apuy1qQcywxV23SyWSQoV//qyl6ID HeSs54I2cVr8bR2jB/86NxUKBpSkzO8fTPPCkD1fZZ6EP1OPYFVvpjfQ3yqf9MXohxMi be1lTWFhQWZ7EPD7SVuueeNCOsmpoUvU90hvoOewUe2CmtyCfETePHgcxyoWNmeyWH+M IblwT17hd9Gp/ssGeeT0u5XesllB8aWchl0E4zen1TvRZblD44GR6OMAG3JUeXt8sVwN 3Mrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JkGyuBGg; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pf12-20020a17090b1d8c00b0020a47a4c951si1446697pjb.147.2022.11.17.09.36.42; Thu, 17 Nov 2022 09:36:54 -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=@google.com header.s=20210112 header.b=JkGyuBGg; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239985AbiKQRRW (ORCPT + 92 others); Thu, 17 Nov 2022 12:17:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231480AbiKQRRU (ORCPT ); Thu, 17 Nov 2022 12:17:20 -0500 Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44253781AA for ; Thu, 17 Nov 2022 09:17:19 -0800 (PST) Received: by mail-vs1-xe34.google.com with SMTP id z189so2218886vsb.4 for ; Thu, 17 Nov 2022 09:17:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+G+jefr7ymw5kyDWKXEsX2UJzRRuDh3ZeqTuoucnosI=; b=JkGyuBGgxo9i85kQpqZ5qcTcAXTZgX+0FucJmoLGVURLvPyw3ktPx8juDetuvyJGpP KnxHThmpS+6vJMTzxkmavPjHquGZRhlxtepePATfV+d+7I5rURj7vSTYRGo0Is6PaaBr +9MKfu80+K7LRoiN6XbLBiSyUyBfVSSymRCRP+H/A9xAnU8UeSfRmXM53GuEpQVWbIn1 3GG4QzjC7duHxLKukZcKDyYlP3H7jIPMJ9MwWoyinM7XG78psdqigRcOt0jV9+Vu7AUX WjVtvGBm1DK5qj8GtXPtRs0wYoW0DknwokeCm4hclKH1ge0XZUf9x817ppsEtvLQE06K Hz4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+G+jefr7ymw5kyDWKXEsX2UJzRRuDh3ZeqTuoucnosI=; b=sRMz8bOQEX9hgFtCoVA9N5HtkPEGWXsAQNr6MUpoxbp8Aue7tMz5n9A3WULkjKJ0ka UkisqcA+l9gplsy9sOYNhoAeLKvSCk4JljdgmkwjJR4kvwI/pqwbFgDY/Q/IEg2d/q8n 01k8SBGveF+k0F7NNBX9RjiSo9Vv6t0d9cTB9tBKJwk/mokXa48hRDVfQOsDxkx5/iBk 0aNyVG0RX/G104O15+KxJfQehlejftCHfGc5W5R9F5jF7kO/0HzgGAp6QR+nbuEKY661 aFIsTWhJSHMKHorO37qvrPaAsvvihfINa/4ABlPhM6f2la5p7aiXmP43A9M8OXpRgtG0 9a8Q== X-Gm-Message-State: ANoB5pkGw3rKcI09n2d07QMRaQ+Z36SuDPoGJ6vkurd5eBgn+uoKvtHP El+8tSW9sGvoD6b5nyoU9rTocsjOVU/3BqXZbGU2nNFC76k= X-Received: by 2002:a05:6102:318e:b0:3ad:1459:6936 with SMTP id c14-20020a056102318e00b003ad14596936mr2266833vsh.23.1668705438144; Thu, 17 Nov 2022 09:17:18 -0800 (PST) MIME-Version: 1.0 References: <20221116233854.1596378-1-namhyung@kernel.org> <20221116233854.1596378-6-namhyung@kernel.org> In-Reply-To: From: Ian Rogers Date: Thu, 17 Nov 2022 09:16:58 -0800 Message-ID: Subject: Re: [PATCH 05/12] perf test: Add 'leafloop' test workload To: Arnaldo Carvalho de Melo Cc: Namhyung Kim , Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Adrian Hunter , linux-perf-users@vger.kernel.org, Leo Yan , German Gomez , Zhengjun Xing , James Clark , Athira Jajeev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Thu, Nov 17, 2022 at 8:15 AM Arnaldo Carvalho de Melo wrote: > > 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: Is there a reason we are compiling without -O ? Perhaps we can filter setting _FORTIFY_SOURCE so that it depends on -O being enabled. Thanks, Ian > 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"