Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp119263lqr; Wed, 5 Jun 2024 00:15:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4+Y73r9QHuAe4p0QrxkMr6fkwOVqXCu6DHs1KYqFofnOuvFNzxtukfFEfhj1ttz77yxu9LGFDTcLnUU5u8Ch15NAnNeCCgDhgMiGnPQ== X-Google-Smtp-Source: AGHT+IFUCi51ypW79c6r2Rs1DDCL1Q1Th7axRwpSVd57iqtshy6IozVeGGSm5LH/erhR8K3TXkka X-Received: by 2002:a05:6a00:2e9b:b0:6ea:bf1c:9dfd with SMTP id d2e1a72fcca58-703e5a13297mr2146339b3a.27.1717571732247; Wed, 05 Jun 2024 00:15:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717571732; cv=pass; d=google.com; s=arc-20160816; b=rFdAlB/JQENe3xwDn4GChQov0pHV5TTcBgI1Yv/9T1M9nM5Zoi2QlfXruUAM+s9fYY /wqGI1XIlMHWRsNw3E1iUAcOo0DSpIRZaZLq6afCn6ti0V6yIwBtignww2mEhfOoie6K Wzjv/+pb1SC6wtJcjLmiKe60PV7PknOBZMNjzY8inBDQYEg1XrriwXjSTQHyUoxUyuh+ ABbSjpmC/Qkjg4hTJ+hx0+obrgfFUTy8h2BWLmwqWi301A1Hx5W3a5gAegoeE96lPZBx iUq75FX4OrIGLoUyb70YoLf1s6KPH1d7sJh48ohn2mVLmaYSH4h0tm5wyIbLvHJahGky Hwrg== 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=KzWuhHATgvXynxY1bc2YJTiUpWzS/lVHAC/1FvnI+g0=; fh=j0wCUFQT26l5oTNLT0nxLfeF5sX2tSOYaomlY8jrd1U=; b=y3GYFe0V759bQ6O/Y0auVBQraLVwt4k3rZvjK5SnfsBZN5UiM4RndPEIMteFB9q1G6 8b5KcFHMgd+6OiDRWteHi8WrV0Qe3nzFxhdd7uATTjeY/VQnzW2nUeEbP32amI/ZmL9T V4tdB8OjXcuIOJgzTH2yWTtz1zKhf7eiNYUyYkOOsl1nyD850Y1ytk6rt2LNyhsII4Wv zCEuwS5E4iGrfPZd0VM3PJneHeVdvE+MXbhlMbNpqQjZTK3SSqYQ+9XlS8rMeFqxUMzh 9+024Ixr9+BXJp0HJQG0xA4TUQLkPeakDWf6aUcVF3C34L6B+QfBMm3iwK4HDBk2XBxn SmFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iJs0sVJ0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201852-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242d58390si8088300b3a.327.2024.06.05.00.15.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201852-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=@gmail.com header.s=20230601 header.b=iJs0sVJ0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201852-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201852-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DEC942862D7 for ; Wed, 5 Jun 2024 07:15:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51E7618F2C1; Wed, 5 Jun 2024 07:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iJs0sVJ0" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 B9CAE190490; Wed, 5 Jun 2024 07:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571714; cv=none; b=ubf8pgyrvVbtJQ+OfQdSdJekIeEQs0QwRLR7qiR6mebQLSrGDty3/utU2psA9NpueT3LqC+xH5S9NdBz0kGSswpUrd2JzTqSlH5Cf84KEidWQZWN8wLwzkIl+OMNG+x6/amGLuVQ5b2y4KUBKAq0Gz0HbJU7bC9IZTJ57fEZIt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571714; c=relaxed/simple; bh=UwC2NvmMXo1nvJ7sYDl1XaOJLxwWFoTpX03WqyuJ8Lk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r0pWz7wzwb1J+v6b9gr5/E5CMhIrOdQRyusY94EDQYVU5OwS8AQWqZKFGZEgC6pH8bInSOrcOBiNOfV0wjp6qAQmjGdXTN9kD7intcOuMssxTnFal2gZ3HwzHxcLosPEup94IRuf4eSKiD1CnBJgwTfPPAFjur45ZmMx+KR+fSg= 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=iJs0sVJ0; arc=none smtp.client-ip=209.85.208.179 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-lj1-f179.google.com with SMTP id 38308e7fff4ca-2eaafda3b90so38589301fa.0; Wed, 05 Jun 2024 00:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717571711; x=1718176511; 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=KzWuhHATgvXynxY1bc2YJTiUpWzS/lVHAC/1FvnI+g0=; b=iJs0sVJ022lgN0fF8S0+2yHHKnQsxMrfji4fg618Je7W8amLnw7KmsYoHFY6OUNWbm 43PwwfuXmmtDzxyqSH2Q0+YwCpMf3AfqjLGyk/z3yumr56styI4x925Mjn0RsYzID4C0 BbITJYkRmvTkzKiNkfJ+/VhE5VtrHpjGd6kgjeQZzAXw65fyEptW5XMDubxXeiDUU1ui 5ZqtxigZhHDiyWoFeYY0yHIxR/oCfJ0KGL3yx8VAq8ljxbUg37TJHIcF7U/cUai1JLLc GGd4GqebTKK7PRmu922+3+chQfD1PTSVSFbjSGmrHxmJLLjcFIecmRZFxpLohW4vK/Fz 2fhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717571711; x=1718176511; 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=KzWuhHATgvXynxY1bc2YJTiUpWzS/lVHAC/1FvnI+g0=; b=slIIYXucTOa3FWKaJIX1lnPPRwAyFDrq1KIqHkgakrhHCDODYEmZeW/OcCmXHJyc6n Q5Lf2ydRKkpVAqHwB5WY2YcosQSP2ZT/56RqgmwBKWPg5EfDz4VWUPN0IfMeQtI37HRP ssLhq9t44CggXAW0GCorbsyIEOXBskTZZ8/vyuvYja1d1W7Mp597vp/yuTBMC6q8I605 OigG7Lgims08WNYnArOrasuKW5bJ/zlU6jyHnoxKxTZfx/8sNW2n2tTd7VPBHSAFVVaJ qf+d1Uy0559ztnegA8t7gJ7FVNen1QnqqX6+tLjFoF9JrXBQYp0MfOmdXsP1BLEHt+hW STZw== X-Forwarded-Encrypted: i=1; AJvYcCV2HyzAJUhDU8z/qHjIyzjD2ztjwkZC7EElIhhfzIG19o0Il8LSqXmwPMxRQpWGCK4qRYydsW/UX5j8NaHtkMjhUO8c8S6AgTKMa9Gwpg0ir5Z3LEr+TF33nzMX6pgNZGxgc6eazX6LpiAZ45qu8Q== X-Gm-Message-State: AOJu0YywAHWM+1eqb3EQMj647ESCtldnY+097Ix6nDfpS2hRnYbU66Zf NBtdR4971MNDHTWobcuArBkpgR4KoVfAlS5BenWOz+e3dbuefhfp X-Received: by 2002:ac2:4d9a:0:b0:52b:81de:1126 with SMTP id 2adb3069b0e04-52bab4f5e5bmr1031680e87.49.1717571710383; Wed, 05 Jun 2024 00:15:10 -0700 (PDT) Received: from gmail.com (1F2EF2F4.nat.pool.telekom.hu. [31.46.242.244]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a5b1f9855sm6085125a12.70.2024.06.05.00.15.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:15:09 -0700 (PDT) Sender: Ingo Molnar Date: Wed, 5 Jun 2024 09:15:08 +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: * 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 There's a new issue btw: see the 'invalid escape sequence' warnings below. This is on a pretty stock Unbuntu 24.04 desktop. Thanks, Ingo :1: SyntaxWarning: invalid escape sequence '\S' ASCIIDOC perf-config.xml :1: SyntaxWarning: invalid escape sequence '\S' :1: SyntaxWarning: invalid escape sequence '\S' :1: SyntaxWarning: invalid escape sequence '\S' :1: SyntaxWarning: invalid escape sequence '\S' ASCIIDOC perf-daemon.xml :1: SyntaxWarning: invalid escape sequence '\S' :1: SyntaxWarning: invalid escape sequence '\S' ASCIIDOC perf-data.xml ASCIIDOC perf-diff.xml