Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3223554lqo; Tue, 21 May 2024 10:08:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAOZaWIAt3iAKTF3xRiX0BSa03NQNBO2F5bTX6KRr47pxrZ9iTL6arOsWF3na1bVfDRTq6KlQaqr4HkZdQB0tbuE6WW+uBpKW6xFVw7g== X-Google-Smtp-Source: AGHT+IElNixUC3axJLVs6uQfP/11dNv5mhmJpk+TbPDSvXb/S1nrf6hHkCoGPaIbscaxBlO+gRCf X-Received: by 2002:a17:903:11ce:b0:1f0:8bb5:2ab with SMTP id d9443c01a7336-1f08bb5046cmr238317175ad.41.1716311286640; Tue, 21 May 2024 10:08:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716311286; cv=pass; d=google.com; s=arc-20160816; b=rL6EVH0IbuouhUVZonumCss8jv68tO1L9W1NMhUCYYd7FiwvrpC/gkXEeiTKhmNyiV O9FMg2AEFBIy9cZhFqayxLBlIywlxJovI15J//f9AeyJRusi/ZEAc6GVpHGLfMbOIJQM IJ96Ce5fiI2yS9x/tsUEjdDFm8ZTAHpPIBvVdGEv7vWqmVeNYa+7xP7QqiKjBtWpbFDJ Lcv/wvWZHV7Zl05CylzkUS+fNqjo1Hkr5bJVnU5j08uD3nPJ9tfWbSkMFc1HeJNFqzMA habIRm99VjeOSDHQbwCGpXzgqc2ur5VdvvT800ElhY+8MaiUK/3qDIUBkAu4fZSzl47W fK0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence; bh=xg+oV7v8UxI/sVUAL8gF5mbiN42OB/uM83jie5ZyfWc=; fh=gEZBraKZCN7pA/bdHGKEMlZZLzcY98njpb76/ZQxZ/8=; b=bR5MDn/+USr8nVXA247Y5lXrBKtNEl+Zm+tXE4G35aidx/tVAkW8QF+TJni18W/juA M2/7YbFk5MwF3BPDMUh/KtY8qtGqaZyLsPvfVR3bpDGnTrRcJHoe7aR1Qgp4eYFry+82 d5hzj7QVegqjdbjWz09g1Q5S5HJCoiwri/DcaziJYNxFrgB8viZ0cq9hJ2WiGGR+jkYg qNqX76Xk3lMRd0ofTbXp34PaewbLo80IepYU8T6qLEjH8S0PDamUGHCyug5akYtwm1X3 WvNA3yfsfM2QBPjXISzhq7WNZoglKCrtPeiooPsQTTfMIskAxYxXuTEfx19KPrgSo2Qy 2E3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185244-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f2f56b0310si9767435ad.272.2024.05.21.10.08.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 10:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185244-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1B620B21F1F for ; Tue, 21 May 2024 17:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6303E147C95; Tue, 21 May 2024 17:07:55 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 9BB9722F11; Tue, 21 May 2024 17:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716311274; cv=none; b=bglJvZ5laAuiVXs7hys5rJFtb7zOQqRVXWUslAAjS60WKzaqWBSrZx3dcKZyL2ibdXwfWismC3UkyvXbU9L7NnoDw15GLIPOQcWCXFt0s+K6csu5QrLl3k9tMQWK6HyCrNu/cFBmjnuSni/3xnb1FiFU9nsiIjQ9nQspq5OGooc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716311274; c=relaxed/simple; bh=4f/C9c7ipxOsSvQmsAVBs2332WEtJ7P3HVXcExUQcgE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kogstMHotsCLJDEzZc4J0Onik1zjK7LHO/DPa0JHBJFabK/bytkezLVhwpdbGE6GhcsDEUkAg0Lsk9LIC2OKsVhxTjvWl+lDZcfbqHo1YabHygCMsLsESUYj/u4CJXz5zcwKc/CLqCK3XsASHgcrx8kkkG5oWVS5z4dwfLEM0HU= 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; arc=none smtp.client-ip=209.85.215.172 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-pg1-f172.google.com with SMTP id 41be03b00d2f7-5c229dabbb6so487657a12.0; Tue, 21 May 2024 10:07:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716311273; x=1716916073; h=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=xg+oV7v8UxI/sVUAL8gF5mbiN42OB/uM83jie5ZyfWc=; b=Kakh+U5AjjFLVXOtRQLyCWyhyWahO5jVL7KTszYs8tgCvqrmEYq/Th9xDIjTQT4dIf uCbfp6knpQARvE/SpyBnv/Ud3+oBc0xNh67fyZHIoiG7MBD5G8TSC7wX/swZJexxTnd7 ThlUsgOcv5KqQYdcuLFsyVn6Om/3Xx5TiGqqwqMM3jwz/3J0V4vpfqdqOOJebubFkeRC gW3/WyPFIniLjog2hezn/TStVvcPB4Cs8tO5h9F3y0pf15QWVWDuRBoSsxTir23S2XE6 j8/+o3c6Lcq1sB9NCvTQaLX+9gx5Oml/goT8a7hLrS2JZ9Xs47ebV/vuXZt50jWobDXy WflA== X-Forwarded-Encrypted: i=1; AJvYcCUA74g2RowsL/lytv9c4aBzDm66Q5Bn0syY785zplX1WgTidOf07/DkRceW6QdtQp3h8xA1mWL4FQYechuqjt4MsOKSUrY8DbjJYuvmQg7Gz3wZ5k7Jcae/QvbECUMR1X33hBYCNCf3jtyIfov6KA== X-Gm-Message-State: AOJu0YxmKC338jGtDgyjFrx1Jpm67l4Npo3nKnFbP14nLIG14F3Tn5Z7 JLx7or1AMwrJHodt4C5udKC/Acfd3iXjepifTyPDNrhW9mwNhpg1J40yyrNYiGakR4BbrNiqckd J9KyI5ZjAidQkPzCiQU/UWj8zvcA= X-Received: by 2002:a17:90b:683:b0:2bd:768b:6df8 with SMTP id 98e67ed59e1d1-2bd768b6f5emr5439960a91.19.1716311272794; Tue, 21 May 2024 10:07:52 -0700 (PDT) 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: Namhyung Kim Date: Tue, 21 May 2024 10:07:40 -0700 Message-ID: Subject: Re: Makefile.perf:1149: *** Missing bpftool input for generating vmlinux.h. Stop. To: Ian Rogers Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Adrian Hunter , Jiri Olsa , Kan Liang , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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