From patchwork Fri Feb 2 14:32:20 2024 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: 195877 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp467303dyc; Fri, 2 Feb 2024 06:33:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkQHPk6KB8VnnmEqBeTlZ07dc9GKmxS4oNQMik+pxqX02QA30of2hk9A743eiYe6vKX0U6 X-Received: by 2002:aa7:cf03:0:b0:560:24e:3ca6 with SMTP id a3-20020aa7cf03000000b00560024e3ca6mr1013970edy.11.1706884385759; Fri, 02 Feb 2024 06:33:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706884385; cv=pass; d=google.com; s=arc-20160816; b=CtPO6QVji71xrwEd4q2DLte12/wftY+oAZztA83D9xDUthLaCricm1DmYvji0aBTlZ fB4nQ/REZteMohSe3edecSwJ/58rAO0qwgK+0L/rybnQjC05nw8XJRJywZXGmfKPJFMg cKa8DZllZFOcsmS4/FYS1PsxMPb2ukLskSco6HBFG3LYW6hs05YepudJq2GpL2qDHGkg S+fy8OOy5bFiz2iHQgM6qFu8KTuo7xu6hUt5/UiBoH0PzCMvKl9MaXnweqkSUhOrhyFj 2AFsJZhUXzNvfLqbP4m+ZK7374lLXATyg9ZANedasTyBcyjceF1CeJ5IHndR9mTXgx+7 tTrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=qaV4WXtQiTQkVXt999IFfohsBFuPk9tUIA6ZNtDZzCU=; fh=DI/S5vkkE1Alzx/qi9zQKpxHZtsY7cW7I5cG7XddQTQ=; b=nZnspded4NW+F8rFCPjjKNaN02BNEBAmhUV3MYBGg5+bORawIqxNaoElhM/IZtgQZH s0CZCn/Ik7xVG0Vqs+N52La5W8biDFWxuKcz0DvdxEm8EkBIIE68ghmU5p2pmSWypQRu 3XIdyn8KxTYfAuEbnComAFmRC5ZIVYsG8eKMMySaQntjbc1eIKMQf4xkutBFRAROuPxZ mnVDjZxQO7WEequoIPkouRr8e389PmN5zSBK3FI8R02JwOdTuIwKrNwlSImlXIc3WMXm u4rHxXk4BHeAlELXu6zHrqLZriguPscn1MYIS8g2Y52a2CwB9Q8RYYF88PC8WPmQSSYM r5EQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tQL0iDpE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49953-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49953-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWCmdiCy0VVSvRpQ0wzclZcgS5KKIF5raSDamV2LQRUCQPbHa6ofuFkmfdb8kPEkzlLu14uvpMau2sofO6Tvp2rVOKBKQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d28-20020a50cd5c000000b0055a5e7fb2d2si870381edj.345.2024.02.02.06.33.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 06:33:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49953-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tQL0iDpE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49953-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49953-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 54BA51F2BCE2 for ; Fri, 2 Feb 2024 14:33:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C06DD145B0C; Fri, 2 Feb 2024 14:32:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tQL0iDpE" 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 705FE145334; Fri, 2 Feb 2024 14:32:26 +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=1706884346; cv=none; b=B0izVzBsRyh7WK6vd/b1YYyf3f7UbmaV/IiO+U7q7LIInZvA7QzdfE/bmZ7vCdtt2SDNP54bCn5M8N621ZPQDvjzM7QCi7MZeelHkkPtcSdRlSpw6xHsqF616tscp9oQ2BTD47WVgE5HFt2/OG2apiGrJhCm1DeYTUNGx7F+7e8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706884346; c=relaxed/simple; bh=Lmfieud73BcgseATjFSGPCLch3+jpSxrJB6K0BO3xmI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=JjWunds9Z/+Ywbs1ETb6k5elCC6RLT1Qtnnjsu7zzvYw1EFfGN2+CBzVxBXr1oQq9syDVnB9T9qb36ny6WAofE6nHI2GVdftNY8dO69HhjiQz2qpn2e+4UUTNF/DLOwYpGSLtm33Toa0+agt5wpCSRsBbCAHcIeN1YeP95LOTMw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tQL0iDpE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55F7BC433F1; Fri, 2 Feb 2024 14:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706884343; bh=Lmfieud73BcgseATjFSGPCLch3+jpSxrJB6K0BO3xmI=; h=Date:From:To:Cc:Subject:From; b=tQL0iDpEH8IIJNf858ZIKK20QpdNal19Z1ayr5RRTbxI4DDGdJ8+bstfkgab5JgE4 ERNPM6+Gfi3xJinj2D1lvnGd+gzSz3lcUXh8NMjrmTwhu9GpguN6RIADgDMtDoCedt q2tBbwwIxKJy2W0TkEJ2kKGT/NhNEBnqN2aLUXRgGlKpa2bj71jPXo1wGeh52EYG1X R5RYSZhEI4J3yBmYPNx4TJGYU0dHnIGUeXR77fYmNEuptgqgkHJXXU6QiCt3AEjpld gdFYte/Uyho3ZfuGzKsnpgmM5vwQdoEb1HxEUYAKXp4Fj/z/I2MTiMpfN9hhdTgCUD 3nq1Tf2wb7FnA== Date: Fri, 2 Feb 2024 11:32:20 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim , Ian Rogers Cc: Adrian Hunter , Alexander Shishkin , Andrii Nakryiko , bpf@vger.kernel.org, Ingo Molnar , James Clark , Jiri Olsa , Mark Rutland , Peter Zijlstra , Tiezhu Yang , Yang Jihong , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 1/1] perf bpf: Clean up the generated/copied vmlinux.h Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789798001395916047 X-GMAIL-MSGID: 1789798001395916047 When building perf with BPF skels we either copy the minimalistic tools/perf/util/bpf_skel/vmlinux/vmlinux.h or use bpftool to generate a vmlinux from BTF, storing the result in $(SKEL_OUT)/vmlinux.h. We need to remove that when doing a 'make -C tools/perf clean', fix it. Fixes: b7a2d774c9c5a9a3 ("perf build: Add ability to build with a generated vmlinux.h") Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andrii Nakryiko Cc: bpf@vger.kernel.org Cc: Ian Rogers Cc: Ingo Molnar Cc: James Clark Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Tiezhu Yang Cc: Yang Jihong Link: https://lore.kernel.org/lkml/ Signed-off-by: Arnaldo Carvalho de Melo Reviewed-by: Ian Rogers --- tools/perf/Makefile.perf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 27e7c478880fdecd..51ac396ed9f641af 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -1157,7 +1157,7 @@ bpf-skel: endif # CONFIG_PERF_BPF_SKEL bpf-skel-clean: - $(call QUIET_CLEAN, bpf-skel) $(RM) -r $(SKEL_TMP_OUT) $(SKELETONS) + $(call QUIET_CLEAN, bpf-skel) $(RM) -r $(SKEL_TMP_OUT) $(SKELETONS) $(SKEL_OUT)/vmlinux.h clean:: $(LIBAPI)-clean $(LIBBPF)-clean $(LIBSUBCMD)-clean $(LIBSYMBOL)-clean $(LIBPERF)-clean arm64-sysreg-defs-clean fixdep-clean python-clean bpf-skel-clean tests-coresight-targets-clean $(call QUIET_CLEAN, core-objs) $(RM) $(LIBPERF_A) $(OUTPUT)perf-archive $(OUTPUT)perf-iostat $(LANG_BINDINGS)