Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp345310lqr; Wed, 5 Jun 2024 07:47:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUu/BKfhuVq7Rh2nIeCX+R29tH6I1BY7fGt7vQhJ0LUBs6DFrVeYu9hpOAh/nuWh1LkX6sM8YeH/klF6iCYlVcr9iM4u3HG3UnZ8dMIoA== X-Google-Smtp-Source: AGHT+IGhDxnREBkp0FV2ke0zIVXz/aRhkt7vx7mu58qtnfCeGIP6tRn9f/Lwp6lcB+CiMH31GZ82 X-Received: by 2002:aca:916:0:b0:3d2:3f2:358 with SMTP id 5614622812f47-3d20428d5f9mr2702856b6e.19.1717598870555; Wed, 05 Jun 2024 07:47:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717598870; cv=pass; d=google.com; s=arc-20160816; b=WzsKSx6UAKnAjP/Is/fvJ/uacmbfQsU7XH1UJzEvxiPbPRaSrwSD8ZURhvwfV44CT+ pbanCEMsy5XKXlhaJ1w7F3Q06ApTfm/KuH0d84VbSZt0jf5eYcUcGhU+ook8hWOCIUq3 B78NIHdVwnyKhd4kxzwsypz7eAcnRRFYt4D2m9Xy37av4pIg/bXsqxKXcJ9ohJxT5iZS VZBBisQWSyHj/S/XBULgaCi6CpUzLYTL2P2EtYMWQ32bRrifkvzeyYI2FPJDlPgQZoXj T4GwEfRRJuS8HoD5jXbOJFieb40tsbaoMAMm39K1waSwk/1lKYPCgOp32sYflDA1synh lSfQ== 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=n5IOB6iZ3x6UQlfS6s4QjWVvhSmnqMWK4doXfQzxHs4=; fh=B6xueqaSawGFjLClnWfMf1s8Jy3rel+XqBfIoqYTqgY=; b=JkLGkVCbQ99tipwcCv6uNMwsl9fYHoWFloqnuuKg0OkDo7t/YSM/8HEzNgbrVfAFmy UFAXQ7X1oPcfEcAxH1EBMT4kj6G/O/ZBjPbAIPLhOMT0l7/t4x/79p4PyB73DX3Y4YJi J/WwUjUGKuaLMyvno7+EcPb+x3WKnCL55sry4wkjItyfawzJPgDA832q63kbNU7sx+tz QEv3neca7Csj4ZSJtjDkL5PJbsHWVA2Zm3nsOt2+orfFCGSnoaZAaxNFY6AwXAm5X46x Cd53ewODqHO2NxpXgJmQUyL2LF+8Fhzdc/+JA8cS1zw3HTXveXqPMjpIncjTwXCJmvsn kMPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ecknh+zL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202789-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42c03fsi136075036d6.490.2024.06.05.07.47.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ecknh+zL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202789-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 2C77C1C22E25 for ; Wed, 5 Jun 2024 14:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 350A146B9A; Wed, 5 Jun 2024 14:47:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ecknh+zL" 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 5A4173D548; Wed, 5 Jun 2024 14:47:19 +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=1717598841; cv=none; b=SpoaQrH/MK6Qb4sZ1xDeaX70nwWTkFv4tTa3vvxao+jkteR23cIgSbve3aUtgR/6b4A+VITSLGpvnexTWpWlUcuAVxIZvP0ufxxRZpQsA/8j1T3Rc4/SJr9g2mu2VQ/sIkHpt10QgZ9N+zaSNdx0KzKbD6XZGAb5tDS1bJD3yEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717598841; c=relaxed/simple; bh=x3iiJL5LZiRgm4rUM3UVhOCzxFTRXajLnBCXgJZ+0nQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nr3vnnBgxxLs2+pv+gGJW/IK17f+YR73wBHdpN5bRMMWvqy8/r/s4xSpw58+Rzue4r+uplrXJNxBMduXJoq7e2XC1LzNX5W7LF30eVEQAgdNIcSOYbyKwptQfa/s1bgLZ+KrRnClPXV+Ea85j/vfffikYaNj/gCTWZKsIIoGDcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ecknh+zL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59DA1C32781; Wed, 5 Jun 2024 14:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717598839; bh=x3iiJL5LZiRgm4rUM3UVhOCzxFTRXajLnBCXgJZ+0nQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ecknh+zLlyLrTr/OqfXddwMQFkPWOMb8At0msdLtOGHDsRGXW3Fu+wy/hCKCdm68d Md/ulMyYUlGRmBe9Ti9XbvhAvf3MMasX/npbYGOY2uQ49qPim0USXJlMLprGSSuP1m 5C323yCBFmd9bBWgfZa6eqcEccBrgKM1gNByZvSFpJ0kLjuZxnnzDOqU3puSFNOThg t8jlqJmrJG6yGUox6+kQPiBbM+uQh31VFeMFv5YWKKrkhI+NcAFODGNIUkNggEF8rk jA0PusXYXBTlmIUj59xH7XHYm12VTCYyRITmPY1Xrg0kEv/gfHb0Z+iDu93q3QXx/Q 6sxRMA3XKR09Q== Date: Wed, 5 Jun 2024 11:47:17 -0300 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Namhyung Kim , Ian Rogers , 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: On Wed, Jun 05, 2024 at 09:18:33AM +0200, Ingo Molnar wrote: > > 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. Hi, I put this together, can I keep it so that I have it in my next perf-tools pull req for Linus for v6.10? Cheers, - Arnaldo From ca9680821dfec73c9100860bda4fab1f1309722e Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Tue, 21 May 2024 10:07:40 -0700 Subject: [PATCH 1/1] perf bpf: Fix handling of minimal vmlinux.h file when interrupting the build Ingo reported that he was seeing these when hitting Control+C during a perf tools build: Makefile.perf:1149: *** Missing bpftool input for generating vmlinux.h. Stop. 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`. Reported-by: Ingo Molnar Signed-off-by: Namhyung Kim Tested-by: Ingo Molnar Cc: Adrian Hunter Cc: Ian Rogers Cc: Jiri Olsa Cc: Kan Liang Link: http://lore.kernel.org/lkml/CAM9d7ch5HTr+k+_GpbMrX0HUo5BZ11byh1xq0Two7B7RQACuNw@mail.gmail.com Link: http://lore.kernel.org/lkml/ZjssGrj+abyC6mYP@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 5c35c0d89306964f..e6d56b555369581d 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 -- 2.45.1