Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4619566pxj; Wed, 12 May 2021 09:22:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp9OIghkzJDlkBPBZc8pJ3sSxtAkEGVkwY9nZ2UXzXnhTF7SxjOYGR17laOiklwSCGnOAN X-Received: by 2002:aa7:d90d:: with SMTP id a13mr43315593edr.76.1620836549203; Wed, 12 May 2021 09:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836549; cv=none; d=google.com; s=arc-20160816; b=V2oGuTVoB3HICTU2r/qhrQp0mQ0lsWiBJ9eiR3gEByV1wEVeUGSCCni3nJfKuMkhDu sGpTlmSEt2szhKrdSsgvJgT2YMikHlA+TNUtIhu4hockTWgXLx4PBK8u+fNvB/fAx4F9 nscNwqft3f1/kshFPvYoi4QnSRBu75nFJkrROV/vGz3uqA4QlYgrDHEyJ+eCVvoOwePY 2nm2Sc3kyhTD4L6xHkA98X8cO7lfQmQshXMyYO6siCrFJdZ0o2aodJ1c4IsbK/5hNlTe 8G4xqUtjIH3jFUrLG8s9TPOxlYsdPNioKhFWyIhWleoT2GPRCIHQCSTU9ZJkZ5ludv/T nx9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2v8qBvQxomFxah2rwP/ImASNGsRp+DWM+de6g63I1XU=; b=QstLz4fuHMOfY96iaSgn8+N8EmYRN15FAcs3z3CmYlbMgXbcnrND/F7GUiJWOuIOa+ JmkeKB+D/U0BLi4uDFhkQjundX7tVrZIK8OTZOSGO38e+2bImkGVD0Tq/KAKBDzB3zvs Ykb/ezOWNNlXlglOFqy9WJqmqse/Z8HaRyqakIM6Bew35uADbrESfntsmB1gJr/hpo52 i6qGfPEerFn5ShvSpyfMpZc88surDotirL5nxCzvKCbPwUi1zSH6WQJMRGxbKwaLxxZj 6GpTUvihe1z9plYRiwti+SJWC9ivRazJqakKxgNkvGsfiN6aNWrgJ2glqGGThRE6H436 Nfgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=p5rOzLB+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o25si292518ejh.443.2021.05.12.09.22.05; Wed, 12 May 2021 09:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=p5rOzLB+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240186AbhELQRa (ORCPT + 99 others); Wed, 12 May 2021 12:17:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:46830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233312AbhELPeA (ORCPT ); Wed, 12 May 2021 11:34:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F05D861955; Wed, 12 May 2021 15:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832639; bh=em8UzcY4DBOvChfY/2eQb2rBGwb778ZNkzCbjZO/Kss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p5rOzLB+Di2n4z/WvtqcC2GV2bm3a8QCWXK5N4/8DeeeL2/16TdWCDYnCGWbAQN65 XR5oEhsDH6jD1zEIXeUZPPFTbaCeWHAXsUEbLwUpuaF/VeJn2DGWlFSOs07TsJqEP1 MS4C2HOYxhy/+xho9lyabvQuatlZO7aYOOXY0SUw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrii Nakryiko , Alexei Starovoitov , Sasha Levin Subject: [PATCH 5.10 361/530] selftests/bpf: Re-generate vmlinux.h and BPF skeletons if bpftool changed Date: Wed, 12 May 2021 16:47:51 +0200 Message-Id: <20210512144831.646953148@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrii Nakryiko [ Upstream commit cab62c37be057379a2a17b1b2eacd9dcba1e14dc ] Trigger vmlinux.h and BPF skeletons re-generation if detected that bpftool was re-compiled. Otherwise full `make clean` is required to get updated skeletons, if bpftool is modified. Fixes: acbd06206bbb ("selftests/bpf: Add vmlinux.h selftest exercising tracing of syscalls") Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Link: https://lore.kernel.org/bpf/20210318194036.3521577-11-andrii@kernel.org Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 9359377aeb35..b5322d60068c 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -196,7 +196,7 @@ $(BUILD_DIR)/libbpf $(BUILD_DIR)/bpftool $(BUILD_DIR)/resolve_btfids $(INCLUDE_D $(call msg,MKDIR,,$@) $(Q)mkdir -p $@ -$(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) | $(BPFTOOL) $(INCLUDE_DIR) +$(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) | $(INCLUDE_DIR) ifeq ($(VMLINUX_H),) $(call msg,GEN,,$@) $(Q)$(BPFTOOL) btf dump file $(VMLINUX_BTF) format c > $@ @@ -333,7 +333,8 @@ $(TRUNNER_BPF_OBJS): $(TRUNNER_OUTPUT)/%.o: \ $(TRUNNER_BPF_SKELS): $(TRUNNER_OUTPUT)/%.skel.h: \ $(TRUNNER_OUTPUT)/%.o \ - | $(BPFTOOL) $(TRUNNER_OUTPUT) + $(BPFTOOL) \ + | $(TRUNNER_OUTPUT) $$(call msg,GEN-SKEL,$(TRUNNER_BINARY),$$@) $(Q)$$(BPFTOOL) gen skeleton $$< > $$@ endif -- 2.30.2