Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp121016lqr; Wed, 5 Jun 2024 00:19:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpz0zw28Hjp1ELmzxuEzMcwGZ1P8/Oi8TxeqWBd57gUwq5ggZeQt985AodGXl3PeBx4Bng8ssbvyWPlhCuUaFpUDOLTxRiaLFVfhep3w== X-Google-Smtp-Source: AGHT+IEXmWLDpGB7r4zmFjuVQ5rz8azxe28s0i7p56vjeYx3iywQY1RVJwd4zYig38bqa0yjl7dJ X-Received: by 2002:a17:906:5948:b0:a68:88a3:3645 with SMTP id a640c23a62f3a-a69546aebdemr381922366b.27.1717571997897; Wed, 05 Jun 2024 00:19:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717571997; cv=pass; d=google.com; s=arc-20160816; b=BlBigI/8TQlb8HCE3D2rHxo2rw7WcTUB++wa+nNhJUQPrx6XFMzSfaep+eEd4yNeEo nkJt4WdKoyQktA8m2k+RfAg92/002Ui4oeLQvQxMzL/fVdlQQOrgEQPRtr+ojkFzBdbg qbPieVLvXyOy/lJ6216DOra3iwUiN1LhjP5MgOHEkuzvaymyH2/SMrWoPiOs8kvBWvPo yps6MC0MM3FUNRBy37dwP+6OdANbdN/ykzgW6x/QrLvWU3huNei5DtzmntlS8MQrvlIT QbiCT3LZK1ggkJ/WJ/uogYjwocUDJQC01pn6bDKUEpcWVPsNUOT3ZPo1FuYcDUewg5dU 3oug== 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:sender:dkim-signature; bh=QJkV49/e3kmyn+mnJ4dZBH7P5g4cBR8xr3PBj28hycs=; fh=UOVYFGKkgn15rEgHYiLk5d5g/nRSQ8aRqvv4XYTUJqg=; b=wpPSJw34A2XLJIsFDDjZeqR9DwysWzIEUNSu4cemf52PeLtAdi8Plprs941Xn9Kqj6 NiRBl9k5gxC56KLEOLA+WSQBFPCCWThHBrEgLEf8EtzuiR9g/poaz4JrI6uAhIivsWRj DxvyyfVoL33iY0BdRoQ9OxIpFo9ZEN9CVq9AmuSDfOaB50SDkf1JhEJ7gx0AavM34zqF 2MGDi5HxpWFsFaY7BQ8pipa2xxYWtJaozonh8ithue9O5tNdJmDEf+26qRmciLSoHLk7 R1hBaXz3f6UbVjImgMMFRJxL5coyei7AIsC78YtFfmL3aDHqSl3sbp5e5Z64w+M0kPP+ KoIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="h4jGj/6i"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68b2ed429fsi443776266b.533.2024.06.05.00.19.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:19:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="h4jGj/6i"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201866-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9DA6D1F236E0 for ; Wed, 5 Jun 2024 07:19:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86E2518F2D8; Wed, 5 Jun 2024 07:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h4jGj/6i" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 1912018F2CE; Wed, 5 Jun 2024 07:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571919; cv=none; b=qzBsT2bHQDRkA7nUwIpn3MYEMKDSdZJq1NWJGS/ouVTa80K0CxBTFf5j7SsGCp5+vKYR4KTAVmChhKLALr/d1drx7jOoTXn13CdERIrGBzPMwWu1MKfImjspD4u4SG0QLBOYJo7qAPP97kATl4zvZVfJxvNYW8fGgtjhoqNbcTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571919; c=relaxed/simple; bh=m+UuNv/WLkgRzQQ99MoqMzHOaOLAkbVmyBLCmcQ8WCY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d29oK/YXN+8sTm6ptX/RLBDOeMpoViQi6G6+4aotQJ27NB+huHgrPLReHCkOZlfc6xd/K06LyNnt7tC4/KimYwloNUMAj2ZKwiVNTZTk3lskq7wETyljfbKG1LQgl9RDXmU0ZTEvy/2HBCLAUhvGE33+AgYFEBKOF2lMLmisoPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h4jGj/6i; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-57864327f6eso963005a12.1; Wed, 05 Jun 2024 00:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717571916; x=1718176716; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=QJkV49/e3kmyn+mnJ4dZBH7P5g4cBR8xr3PBj28hycs=; b=h4jGj/6ifVgo2KKW1Jw+HMoculC++ffKWBT2m3nreJFR9xKIF7Mxcs6vMP2M164Of4 w08aWhXkhHifBJnrhsb0NuAd9vnT2bKe+kChvjAN1L+S14a6yyDe0YpiplZiaVUxK+7z xPl52UXrIMIC1Fk7tTn7XM7HimI7L8GuTT7oAqSOFyzDhaqcq4KIn56IK1f0fbZPqauv kefQjsA9QJcZ1b0qPfDceySA9fIpRM5bTxwHdumqzt1i5rx83eEscVGn46jgYl7Wwqzl cUrV8aoZ9/0ayLb1OZsz6Ekcki/iK+8MkM2m0Cra91L9zxZn7qsuPIBidTkrC/76MnJH D6PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717571916; x=1718176716; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QJkV49/e3kmyn+mnJ4dZBH7P5g4cBR8xr3PBj28hycs=; b=gSmGumXqyNfrIE0M4VuKFYcDl4tRtZDU5+VhIuZt6fIYvIjcESf4fT88hUaAVPXMNt X/QHNsSPmu8CS363DRxjV+7J9oyHqgUoTImwjXbSEbUHEssRJ/aseIPha5b5E2U7+bgx bnu3mzxGb+AbZx8i4eaktBLqGNtjPgs08JMDp5wI+CDckJFURGTufgaCPDICknxkKFaB PZR7m9jrwP/Lc3Wcw+Bl0b3+zHulzf0N0D2y8r82U3bR41XOJ4SaDR1o7FditnV9ePAy jE+0L4ImE2X15JnMYg2TO85iCMlR10hbeRQ9gY+V+XuOWGkGk9ewZyDq0fw1fTlSB+mP ypyw== X-Forwarded-Encrypted: i=1; AJvYcCXK59qH6/Yrdqv8zrUPChB+xeBtcQCpZsnq6HxmzBvvOrfhVD/eReU0c5m5XpfN7E/lmj4KbtIA+dsRAkG6AyHTqYtUhz5bfqOotJbMGejUpFsyP8+LeSpZs1DrdFE4e2N24EpkrkQWXAMkNTalHg== X-Gm-Message-State: AOJu0YzEKswws4Hz2LEY0NzRrQpX9qWoD1luQU8dsp9ZlVBZVdv32tVP puN1Exi60NGDX4KFEbN35axO//hF4wsIWGd2A8sxU3ALKThois7J X-Received: by 2002:a50:99c9:0:b0:579:cd1c:8d69 with SMTP id 4fb4d7f45d1cf-57a8b676eb6mr1422889a12.2.1717571916153; Wed, 05 Jun 2024 00:18:36 -0700 (PDT) Received: from gmail.com (1F2EF2F4.nat.pool.telekom.hu. [31.46.242.244]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31bb8230sm8802547a12.26.2024.06.05.00.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:18:35 -0700 (PDT) Sender: Ingo Molnar Date: Wed, 5 Jun 2024 09:18:33 +0200 From: Ingo Molnar To: Namhyung Kim Cc: Ian Rogers , Arnaldo Carvalho de Melo , Adrian Hunter , Jiri Olsa , Kan Liang , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Subject: Re: Makefile.perf:1149: *** Missing bpftool input for generating vmlinux.h. Stop. Message-ID: References: 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: * Ingo Molnar wrote: > > * Namhyung Kim wrote: > > > Hi Ian and Ingo, > > > > The failure happens when you don't have vmlinux.h or vmlinux with BTF. > > > > ifeq ($(VMLINUX_H),) > > ifeq ($(VMLINUX_BTF),) > > $(error Missing bpftool input for generating vmlinux.h) > > endif > > endif > > > > VMLINUX_BTF can be empty if you didn't build a kernel or > > it doesn't have a BTF section and the current kernel also > > has no BTF. This is totally ok. > > > > But VMLINUX_H should be set to the minimal version in > > the source tree (unless you overwrite it manually) when you > > don't pass GEN_VMLINUX_H=1 (which requires VMLINUX_BTF > > should not be empty). The problem is that it's defined in > > Makefile.config which is not included for `make clean`. > > > > Can you please verify if the below patch fixes it? > > > > Thanks, > > Namhyung > > > > ---8<--- > > > > diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf > > index 5c35c0d89306..e6d56b555369 100644 > > --- a/tools/perf/Makefile.perf > > +++ b/tools/perf/Makefile.perf > > @@ -214,6 +214,7 @@ NON_CONFIG_TARGETS := clean python-clean TAGS tags > > cscope help > > > > ifdef MAKECMDGOALS > > ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),) > > + VMLINUX_H=$(src-perf)/util/bpf_skel/vmlinux/vmlinux.h > > config := 0 > > endif > > endif > > Yeah, this appears to be doing the trick here - judging by a couple of > tries of interrupted builds: > > Tested-by: Ingo Molnar Specifically I also tested it on a failed tree, by merging in your fix the build now progresses as expected. So this is fixed for good. Thanks, Ingo