Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1320072lqd; Thu, 25 Apr 2024 11:46:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSs6ln+bV4T+CclSMA6wOx2Oz7LtPOuIpiup8y5z4CHpfz8dgKQirdInHekKWRK0sLprr4lT3LPhEIK9BmJmNnMok+j7iMWz+MiLradQ== X-Google-Smtp-Source: AGHT+IGD6oswm473HL7uFofs3davX3tdEt0f+tBGKLx6uX3qNDkZbZvtkasCQ1z4s1r0mGBSJgSj X-Received: by 2002:a05:620a:3183:b0:790:9461:1b7 with SMTP id bi3-20020a05620a318300b00790946101b7mr650214qkb.14.1714070768571; Thu, 25 Apr 2024 11:46:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714070768; cv=pass; d=google.com; s=arc-20160816; b=zdr7UcZrfyrmJyHWwLYC546DyE1VN6h7NzZRvdq0lebdgFD0tR0a5geRHIE85MjTXi ShN27stIIIAAuMoP244sTeUkBKe6kCputLxMDezkKbHaBvJJEcfDr9OijkE1b32GC5DG puXTtXYPw13hw/ojGiGbJHMEPLhyDnNMtEmOp9NfGdc4IF7r/B3OSPfNYRluVbOXez2D /qD8DkPAp3/eEgfP00PPHChWijPdF72yAOs0LFKCji5/7UoIWDpl0oy+D+ulrNGJmhh4 g2llc9iiCWyw+5dpEvF2AIN05a6JbYnJfAvdFO+XTAF/avyRvAmq1Bz2LzqA/wCaEaYo aT6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P7X3Gg7WeknVgsXu/DWG9NnNdXz/LNW0tiazYRga9aM=; fh=+nf3xsUObfH9Yp5NDiwu6oI02KIu+MFZ4MEudg/3pt8=; b=MFG98g+y7QVEYjQEkAri81CiaUt3pyT1NH/zW97uWLzkHInyNtRNCxHsLU1VKI2O/c 5qzdzM3e0jjAX4AWbJUu8g+nq5inEa/2bayRL44DUXVk9Hannry5cVtDB1GGlJfYXHiK AHPdhWKs9z8H5Ux6IImVAcSp6KiJCOeD9s37N/Gk/OhgS8o/M/d7BPWiFFcJCmWJJghS bAp9UkpOvtdOyzt6CK07/NmESGu3CvSByVaf4BQFQQKptjjNz/ZzSafu3PIfL39ZNBy1 1KcKzmHw4mfSwn2fPim0WSAaewxm15E3gPEyAJ1OchKrmU+ulSfbxJsi9kx15ktDux0C nNFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mvt0G6ow; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m6-20020ae9f206000000b0078eee24b36csi17870866qkg.359.2024.04.25.11.46.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 11:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mvt0G6ow; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4ADAB1C20F66 for ; Thu, 25 Apr 2024 18:46:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC12114A09F; Thu, 25 Apr 2024 18:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mvt0G6ow" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F85F38394; Thu, 25 Apr 2024 18:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714070760; cv=none; b=I4yNN1bSMpzuSdYfArjZUCfWu9tBQSYIxwkXeJNG8YKWhBGPfPyt5AATPRa/xOh7tPyCmR8mA9o3eavHwXIfqFmAVV11LyIgMIXSWlt21TfjCYXDCghyCtrxdYyQR21sP5tBVPTHlxKfamKijXoM5XKpkGlMdhJleTLoJDyZKzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714070760; c=relaxed/simple; bh=RFfEfAIbVRyPCqcrDodTEdWTYjr+D1deQhNiDeDKVIQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qi0C+WVXV6bslMfwtrEcUaIwYMbBKidWcthfWK1Lump6CwZz2ICjfyz5sGYE8jxo0G2MdCJRYzzvhOYnZUb/H7T6tfITPOfOm7dvaDOnZ4qr+oOHHhb8kp8E4ZL/AfZo4lOsOOr1KTkqmallbtkLdEDDNgWUorE+QKlq6HQIzLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mvt0G6ow; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C872CC113CC; Thu, 25 Apr 2024 18:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714070759; bh=RFfEfAIbVRyPCqcrDodTEdWTYjr+D1deQhNiDeDKVIQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mvt0G6ow2DNaBop94KCHPZDWXbwKxWPhvis+ivoKnyh5ua6ROYWGBrJhVQc7R1ZnH RAImd/kkY1H+c9ypzWY2A3jm9RHjOdkUrP09zrrGKj1TKRHO70+5SJeSAr2WJxIkJf mYetdXiOoej1Gvr5yF+BeXyZ4kubtAEUNLcF3XyRXcTkg4TMpbfgieIaUAw/h7bT8X lJOTKT7h9EDhrmI7LR3/N8FUhC9fHNSuAm7FZIjUNBkaXrhYXjwdWiuVMQDQ2FCyj4 caj5gRNNuWOVV/gWpAhkY8gP1oouJ0VzPW/HALrsle89eB8TxhPrlgJ1dbykiPK8df SlS3QSK/+niLA== Date: Thu, 25 Apr 2024 15:45:53 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] perf build: Pretend scandirat is missing with msan Message-ID: References: <20240320163244.1287780-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240320163244.1287780-1-irogers@google.com> On Wed, Mar 20, 2024 at 09:32:44AM -0700, Ian Rogers wrote: > Memory sanitizer lacks an interceptor for scandirat, reporting all > memory it allocates as uninitialized. Memory sanitizer has a scandir > interceptor so use the fallback function in this case. This allows > perf test to run under memory sanitizer. Thanks, applied to perf-tools-next, - Arnaldo > Signed-off-by: Ian Rogers > --- > tools/perf/Makefile.config | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index 1fe8df97fe88..74e0b17050b5 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -486,7 +486,10 @@ ifdef NO_DWARF > endif > > ifeq ($(feature-scandirat), 1) > - CFLAGS += -DHAVE_SCANDIRAT_SUPPORT > + # Ignore having scandirat with memory sanitizer that lacks an interceptor. > + ifeq ($(filter s% -fsanitize=memory%,$(EXTRA_CFLAGS),),) > + CFLAGS += -DHAVE_SCANDIRAT_SUPPORT > + endif > endif > > ifeq ($(feature-sched_getcpu), 1) > -- > 2.44.0.291.gc1ea87d7ee-goog