Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp750000lqo; Wed, 8 May 2024 13:46:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVq0tGctYEEnZ1ulAEcIIOweboA48PVqSeDJEgXONcy2tveDeIrlW2gJsoXsF3YZlZU94NRR/zWi6Bh6U8q7IU7XSzFaYz2PvZHoLhyA== X-Google-Smtp-Source: AGHT+IHEVWPzOhIIxsf8Gq9YIs3WD5Y/J6z/srapWCgHXNtBXqtE1r8t4QxMARJF9I71nrHTZOnm X-Received: by 2002:a17:902:708a:b0:1e5:5be8:15af with SMTP id d9443c01a7336-1eeb029e6d2mr33767445ad.17.1715201163978; Wed, 08 May 2024 13:46:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715201163; cv=pass; d=google.com; s=arc-20160816; b=TdqfyWwmekrW03lPwFoy84SlbiQDgkeHaJMgrQeiFAbHc/ROlw5BUu6bfY4QTBolXi JSKTo6tSRI+HZStDWtUXfFHtTUUL0X+nSOZTUCMuAJB3SqwOSVMgLvhQS7J7c7mPH22v WPVkUklEsLA9XA1jWpuqTwASVg6TDecU3R4RIDEoMN/Cm3wFA+WQsp/ZieaDs03avXla WLx0k2+jwkX+RqyRG6t7wNW9quBX+he9/RWLLHgNk7TjZqSdtJ3CBYW8UgNXIxJaSqnu MlgXgLUmqtpS3YneVW39aemW1/1umXEyjohqewrIXL1FU7yFkYKkW1mkO4KBOhQaRKCf jlow== 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=zrS4ra5r0MYUhXUqUrqqa9EFMt0orErlafYzq0uBTrk=; fh=6i/8cWKry+bPMfTJyl5seLiyEz6CNIUwjzm9DYgEMpg=; b=Cc6gJM4PYu3NhmU5gYXQaigrJBofuxy4n5CHc6YqrgDNkqr7jDk+OcJNlJTc2raoOX lWhsiYHHf3la/l0la1GoeUdD5dg+fa+hEPXhnSUyTjj1cccxq7hyCp9O6o6huljDE3z6 OGV2RUt0+FKoLx0h0Ib0ZMiyxaf4vqKUv+J8l85f/lYwC9SjMIox2Ymr/3ZgL7KUsP29 seLKNLW6m8BM7CDBDp9x7WkT8ye2B9xRXn2zhDpN53iO4LJYbCLJmrbD1BWNhO1X6nBe h8cXRQIfewq6ilvV9NgD3nlzUGBf4rLOWVY2SI8JnYQEJqduHh5/VGc/cWD4DepxLlGr kJqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ue3R8+yk; 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-173810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l9-20020a170903120900b001ec04925643si13539743plh.344.2024.05.08.13.46.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 13:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173810-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=ue3R8+yk; 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-173810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173810-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 C281A284715 for ; Wed, 8 May 2024 20:45:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 097C4131749; Wed, 8 May 2024 20:45:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ue3R8+yk" Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 B15B51E89A for ; Wed, 8 May 2024 20:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715201110; cv=none; b=MxEXJMlt3FU2dvZ5sAYmLgf6qMezXVQjykR7Nj/vEUjSCrMmBL06dK2X8C8pDpqlEpeAGSOWUpb+KKfIVgSXeUfjKvF5RVty16FkkQdfZ2tDOT1LppUPDOe+pU8ZU/5yPBqOocqRMjqyOHMs6uwDBsLzV7cjRXSoyPgdyRFf6Xk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715201110; c=relaxed/simple; bh=+TrNJxROO7MAmapZhWZcQZNsYA4TI5CqvlqU+QKwtRc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fPP9zrDxN4ngFaNrdwac68yujQn5BUuXAXlhtv5ES9o5mSh3t3zPA+IaUhHCDbcy1FLEFA9PwZkwGLwlWP0LusxJoAGIeBnlEX6Ee1eVP+grQYMbcqp/v1D3vEMLp2gJMd17JlCgMDEyM7Jf5v4TOPyYR6jQgZYJGaF9FHDh2KA= 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=ue3R8+yk; arc=none smtp.client-ip=209.85.160.175 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-qt1-f175.google.com with SMTP id d75a77b69052e-43d361a2124so103211cf.0 for ; Wed, 08 May 2024 13:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715201108; x=1715805908; 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=zrS4ra5r0MYUhXUqUrqqa9EFMt0orErlafYzq0uBTrk=; b=ue3R8+ykxQxwIVBBXHeVPWoH87ZNdT/hr+LTTSkUo/19PVxv9yd1TzXh8//pQDM2vJ /mJfLmuZw6jdZ95VbTYmD5Tz4SWyqxsXtKXQIEvRMiKm+EEu9y6OL6W3C5HBvO/eWFzj 77WNLXeFNduacSPmbMA9ekE8uFQIar0oZoZPx3DTR4PNABcaaQ+OtGJsefoQ+nnszFr9 UnIxc3mM93V5YcLXEVTfKVGNaavuRU4vDtPXS86oVUxAKydxSFnIIkgI22sVBqdMUuHZ GjqPkAXslFyvRj4ClCuk2KMBG3sEgeZkE7MlFOroOmFk8R3saAQBtk1RdufPWqpOTRcS np5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715201108; x=1715805908; 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=zrS4ra5r0MYUhXUqUrqqa9EFMt0orErlafYzq0uBTrk=; b=hCluuMPSm0NFLnRkm5JNetdQ1QPgcd5MoJLnERFex1a0608ijdKvquMSYgjOI9NbQ2 wXuzPojFsEOQXBWkcytnufP/5bZtdxUjNdAxeSu2uV+cBXswr36wNW7N6ETPnDZp7UXW 2W84sGVTavfELAijpyLmgL1sTPTvD18swrMgGNl8WdtxGlRkEIGJxMAc6ow1pgL4sohZ n0jPNxqDusoWKwSwleT6Zs5nYa3JbupXY9qeLl27CRVBdyyHWLSMQXh5gmilvKiaK2wD 1JxTuwbhXjx1LwoG3PgbJfdV0cBDuIL7QqO+U6JCdaPvuTO5+geq+Ba9xZHyjPf6PjNY sNrA== X-Forwarded-Encrypted: i=1; AJvYcCXhGJZlniuFI7U6afWgq60ERl/PZWnGoUXXAqxQSU1/usCN+0jb3tWswi09YtvS6/TQ+gnOkXW96HHzB6EyxrrEAWejWyNnMuWpZFng X-Gm-Message-State: AOJu0YwCn8TfGIeNDZEfvfl7ToDos6OZtIGrxRu7poZw0rocGN33KOv6 aHFJp1f6WoEC/eYgutt4gyMNh5P5Ux7V1Y0fRQhYkgNWUmZA3LJxPrVnIWEkfE0mcN8hGT+83Cs g0GBTFET4iTp0n5pVIPoigwu2cyOWqLB3hPDh X-Received: by 2002:a05:622a:5786:b0:43a:b51c:46ca with SMTP id d75a77b69052e-43df483fa74mr51311cf.29.1715201107528; Wed, 08 May 2024 13:45:07 -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: Ian Rogers Date: Wed, 8 May 2024 13:44:52 -0700 Message-ID: Subject: Re: Makefile.perf:1149: *** Missing bpftool input for generating vmlinux.h. Stop. To: Ingo Molnar Cc: Arnaldo Carvalho de Melo , Adrian Hunter , Jiri Olsa , Kan Liang , Namhyung Kim , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 8, 2024 at 12:39=E2=80=AFAM Ingo Molnar wrot= e: > > > So I've been getting this perf build failure for some time: > > kepler:~/tip/tools/perf> make clean > Makefile.perf:1149: *** Missing bpftool input for generating vmlinux.h.= Stop. > make: *** [Makefile:90: clean] Error 2 > > ... but if I clone a new repository, it works fine, until a point. > > 'make clean' doesn't work - and 'make mrproper' in the main kernel > directory doesn't clean up properly. > > Only if I do a brute-force: > > rm -rf tools/ > git checkout HEAD -f > > does it get resolved. > > The failure condition triggers if I Ctrl-C the following build a couple o= f > times, without it being finished: > > > cd tools/perf; make clean install > ... > > LD util/perf-in.o > LD perf-in.o > CC pmu-events/pmu-events.o > ^Cmake[3]: *** [pmu-events/Build:43: pmu-events/pmu-events.o] Interrupt > make[2]: *** [Makefile.perf:709: pmu-events/pmu-events-in.o] Interrupt > make[1]: *** [Makefile.perf:264: sub-make] Interrupt > make: *** [Makefile:113: install] Interrupt > kepler:~/tip> perfi > Makefile.perf:1149: *** Missing bpftool input for generating vmlinux.h. = Stop. > make: *** [Makefile:90: clean] Error 2 We have a checked-in vmlinux.h: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tr= ee/tools/perf/util/bpf_skel/vmlinux/vmlinux.h?h=3Dperf-tools-next so this shouldn't have been a problem for a while. bpftool is no longer on that line: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tr= ee/tools/perf/Makefile.perf?h=3Dperf-tools-next#n1149 so I suspect if you use a newer tree then things will work. Thanks, Ian > Thanks, > > Ingo