Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp910113rdb; Fri, 2 Feb 2024 07:40:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGz3gYD85MIMJ4CRUEg47M4Kcboqgy3mXBq4xh70yEtswlNcKo7ch4VgZC0pt+E0bfSiHx8 X-Received: by 2002:a17:903:2b0d:b0:1d8:ec52:7317 with SMTP id mc13-20020a1709032b0d00b001d8ec527317mr3194804plb.6.1706888436307; Fri, 02 Feb 2024 07:40:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706888436; cv=pass; d=google.com; s=arc-20160816; b=BfFydsf+F+4uPs1LEM6I1XLPJEybpw3+IcP6dLnaFLfPK2qR0sEP6FqpGKvPDphUZj 9ZtD8LFVl6MwdpecvY0sj4Q6t1k5qbhJJRUA0mEvMM1pv1BNF/aCN6P60coaSQpL9G0k iTgKUOZvcRIy8RrdQspqQbQg671ik/i/pBoKJFEOKg1tzJpw2RrCeXj3cqnE8P7H7MMu 3V26TCdJiKRdhsK08j3P/rLb4Qk+lx6xGXYs2AS/nUbZZlFJF2tGGqfcH1L0fZ8Gd3hx P+alAkcTnzue+rQ7QhdpZtaR4NYqJqoDps06SLLAzxdVhkdY1UdVWA0bXeqKKU3XUGwi bunQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=T4ALzc52MUp0xsJuOuNKwtNjRqGPUBBZ7w0ggAt/c6A=; fh=B202AyF6uk9oThKmT+tOyfyRo577+ZGQPsmy8stfuNY=; b=rA0iYixo4hgRcKt21sq66aUDnozU1377ykrKtD+D4X0SW8iZNgqL2Wx6sVp3NckeHc UcQYzn8cLtRYqFVNVz+Cw5O9gXcaZXXYz+0k27o25QEKY0wr9cd1THVpNXrcWQsYuhae v5Z0KCYC+z5m2JvrrzEFwiPPEkT0b+ptdRD+NN5TFU9h8ft5ydLDm//+j36mdnZrVXjF QUGPF83kpBEHTVyi8iAD6/KCfWfQDs2VY6uxMgU09Zst0mY6yPuIE5UTLoE0Oi2KiBVz NTVKYzlN1tmzncLIUQh8q7EHcKuVoG1+XiK3fq084YN5a5QSM/QGV6yvUv9/EttjUc05 fI8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=YwAqxYJS; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-50033-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCWifAY3S12tNls1RGDuSq2EhBc2k604PV4D0ed1E4rxJimk7LPwFtnAM9Cf+c8FGXu0jgR14Hs/Adfr1C17DQgNM3vFTMu1ni9ebzsr/w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jv11-20020a170903058b00b001d72ba4b3cbsi1864946plb.44.2024.02.02.07.40.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 07:40:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50033-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=YwAqxYJS; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-50033-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F216528BA95 for ; Fri, 2 Feb 2024 15:40:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8D931468E7; Fri, 2 Feb 2024 15:40:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="YwAqxYJS" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67DCA14462A for ; Fri, 2 Feb 2024 15:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706888425; cv=none; b=JrrDx+HS3ADM3vfRiCkMKxLdlfjrwnhtXoJ32K9rsdpFFMEwsx9uDyR2wTKob7/igu+pwtb5MI1RBpvhvPOiVkX9oVtEUt88GicUbs67IO/ERfDx7Gln7OIJNz/trDRJKVJIkqPstJO8l/RaEHGQWNJFKb73zCXLnckDjzxW7GE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706888425; c=relaxed/simple; bh=I/5cEXnXfXecm8Vpm494QcOnK381qggbTUU9ew5P+7M=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bKyyYDhu5A5y9MBNTzzxUbNLvqZ52gw3wpDqfCZ7g1lQtTLDgEdW/F6J7ickyyW57adTMe9aRDFZpBXUMi+EhYpGbARDlz/Ec23ePJhNVOgAUCJ5B9YmHvgcgWHMDh+2i+K7z24LIGEbO5a7BJfCJoAV+KVIxuvvtlEXfmGblM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=YwAqxYJS; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d94691de1eso103875ad.1 for ; Fri, 02 Feb 2024 07:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706888423; x=1707493223; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=T4ALzc52MUp0xsJuOuNKwtNjRqGPUBBZ7w0ggAt/c6A=; b=YwAqxYJSB/4LLspUrzXogWBoq3y5U4iJPuQJmY8XBa98Sj/HUc3fmOsfZCCn7zmmTa Fv8FtlPoaJ50M/v90apWw7APuCoPfee5b8JCLF+bJWmzlYyL9HSuyjRTXR/9zvxPBvvW TMMAuvGcRaIG8MwKkqApFJceR9R2xoVIQvuToAqYdOe77D0yOh1eYto34SgwjyjNflAG Of6bhdH5wL7yetFCLb/eBWscm1ocSQJVsBM0zRl7nbH08HjdnmoMCJBznEmHqiZ1BjJm K0Uokh0fRCFsbfVsPUFN+C6t8ya0eAxJ21SlbVAr3KTQue9G/yq+p5tXJEWGWZB7h4BO SPhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706888423; x=1707493223; h=content-transfer-encoding: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=T4ALzc52MUp0xsJuOuNKwtNjRqGPUBBZ7w0ggAt/c6A=; b=bET978b7S1subD1VI5DI2A1kG7NoTTqu9fzi+Zjg8PN3DK2M/lZkPTw/DgDJBzeNYd 3lVjrHPPMl8OyjdTYMkaVci6fZnXoUjAwMleT2ZlQxH5nrhA3E7UICU14uzeqiJA2fCV ykxKIhSruj6W8XOA1+3R1ddLEC2GkFrX0MMW27abR1tTDD2dSWnZW3Z5CYyLGd55fMqx TUXHAxOhP0Oi5WDvT8f/LEowhcgnGhFrQaYCBI/gYXPTz3ICOwyE0Ryss2LuVWx8IMIH bACWFpKCW5zhmd52WfRRBccyLGaLyujOHgh5d0jH4w3m90bsdX3AGAFmefnilEexfXGU nXVw== X-Gm-Message-State: AOJu0YwrYwCjTjBSPQJ5v7A+igRGbUAnfaXY4G0gHMtA8BifDbpinO/r /WiY1ndasb5+B8Vnif3oxQ36Qr2J5G1HLR3UxCXteHCsL3pVFrNOebOxf4/PhERuXlziqiAj4ZP Mo/UE4jU5owkyvv5i6yI9ok+/7LY8iW2JHIjD X-Received: by 2002:a17:902:fa43:b0:1d9:760d:31c1 with SMTP id lb3-20020a170902fa4300b001d9760d31c1mr18591plb.23.1706888423356; Fri, 02 Feb 2024 07:40:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Ian Rogers Date: Fri, 2 Feb 2024 07:40:12 -0800 Message-ID: Subject: Re: [PATCH 1/1] perf bpf: Clean up the generated/copied vmlinux.h To: Arnaldo Carvalho de Melo Cc: Namhyung Kim , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 2, 2024 at 6:32=E2=80=AFAM Arnaldo Carvalho de Melo wrote: > > 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 generat= ed 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 Thanks, Ian > --- > 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) $(SKELETON= S) > + $(call QUIET_CLEAN, bpf-skel) $(RM) -r $(SKEL_TMP_OUT) $(SKELETON= S) $(SKEL_OUT)/vmlinux.h > > clean:: $(LIBAPI)-clean $(LIBBPF)-clean $(LIBSUBCMD)-clean $(LIBSYMBOL)-= clean $(LIBPERF)-clean arm64-sysreg-defs-clean fixdep-clean python-clean bp= f-skel-clean tests-coresight-targets-clean > $(call QUIET_CLEAN, core-objs) $(RM) $(LIBPERF_A) $(OUTPUT)perf-= archive $(OUTPUT)perf-iostat $(LANG_BINDINGS) > -- > 2.43.0 >