From nobody Wed Nov 27 21:47:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1697378806; cv=none; d=zohomail.com; s=zohoarc; b=VW4uBde0R9aOhi9WTL+ZVcC35Dzgu4UAkJqmRcSvIA74T9uxt0xyxM1RpKT9l2eMdSlxst7Y8+f1bj04uCcQiSaM6KISNXTaNw97PWnn2vbFwQiTqh5/rfUfsqVbZkr31h3uJqMfW6jSuLuLc0ejSquQ527H1fB9AY/2UwErpSU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697378806; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:Message-Id:Reply-To:To; bh=GFYf/Wglj+2qNXu6Gu4r3dFUMAoEmBhswUuuZHDNbls=; b=DKsn07FK365zHHwV8maXJ90nQrbv+jzxd8vXG8T5nfv3opYB8+Az7kTCh69+ykeTCBD1AzEvfyfG22k1G75wI3uOxPdJGjYs1OX92RiGuwAbz6ot9GzUX+GDrgTjuvWH8jcc1s74QgMp1TyTYV5x0RLFfiIxF0+kud+UIDq8FKg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697378806094538.0901792392835; Sun, 15 Oct 2023 07:06:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qs1jZ-0004YN-4h; Sun, 15 Oct 2023 10:04:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qs1jG-0003YC-9x for qemu-devel@nongnu.org; Sun, 15 Oct 2023 10:04:26 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qs1jD-0007za-QM for qemu-devel@nongnu.org; Sun, 15 Oct 2023 10:04:25 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c9c5a1b87bso25076545ad.3 for ; Sun, 15 Oct 2023 07:04:23 -0700 (PDT) Received: from localhost ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with UTF8SMTPSA id jf10-20020a170903268a00b001c724732058sm6847450plb.235.2023.10.15.07.04.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Oct 2023 07:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1697378662; x=1697983462; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GFYf/Wglj+2qNXu6Gu4r3dFUMAoEmBhswUuuZHDNbls=; b=zWipbHMQMV3m9U7rich1TjEfsH4nlQuYqnkrdaI9i3P+13MED46l2ogP1mDZveQYqu Ln8PM5jT5ddxb6eQhvzF1v8DGz9+sK7bvoqzsU1SrMdufEdYoL0ULMyTplaNorvJzDac c4RowzWR0fazLEeuyM3Q8uSEXblSuF8xDJ0sDJYLXQzDXs3XDPpFEgUpKUHKI6phx5D0 4d0/RD1m12RUBPnkjFKCmf6j431nsCAhlEqlvPQb+uZ2Jdaa6PlqGTYYJbey/vdPyn9C Huvlg1nTdaeBjzjB2bjED//+dCmcl5iIvVMgTn4RNNb7f/xxWctqiUUUrQh8X67Niwhx LGbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697378662; x=1697983462; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GFYf/Wglj+2qNXu6Gu4r3dFUMAoEmBhswUuuZHDNbls=; b=JrYEUf81m9BmMlClzuFuANhBnKjrJvEJ5FWSAdBXqvChegB3xPMoBrR1cSHjt/Sb8Y DaHpdsRj0DAcv2mu/ecphJrnBpkuPKsG4SHJhaj5Z6jl6jbxVJzjJfpKJ+CliE02AZfz KkRqhZnr21xAv/lCe6XlgLfd4k7ClJ+b6u9gqWVmlTLqJNNKConh9ug1DqhnR96PArWF d3Rn5KpvyalUDIFe13B9NkBiHmXOzz8nJMFqxP2G9ZaVZiumNxRVR3P80hDno1LKgkNx SjkezK7f5wihYDR8LqId4MtWFql6M38u9TVFG5KmS2ecqB4B6S3ViqRQJa2mOvnOiFhS NrSQ== X-Gm-Message-State: AOJu0Yx0WdPcomNjfG0gcgqZGlWJzoQNv5Js5MQgTSpBQQ1b2B9eg9iJ RPQEBM8i/URJeSQz/3/YeLIBbdHuElMDKbmNulmi7w== X-Google-Smtp-Source: AGHT+IGDenPDjAJReXzmm7qJdOu0gS1mODXUmaJLHLa9tL+BOPROmFsimq2vIP+bDyYxgciAXQsEIg== X-Received: by 2002:a17:903:234e:b0:1bc:5924:2da2 with SMTP id c14-20020a170903234e00b001bc59242da2mr30768063plh.56.1697378661716; Sun, 15 Oct 2023 07:04:21 -0700 (PDT) From: Akihiko Odaki To: Cc: qemu-devel@nongnu.org, Yuri Benditovich , Andrew Melnychenko , "Michael S . Tsirkin" , Jason Wang , Akihiko Odaki Subject: [PATCH v4 20/20] ebpf: Add a separate target for skeleton Date: Sun, 15 Oct 2023 23:02:52 +0900 Message-ID: <20231015140259.259434-21-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231015140259.259434-1-akihiko.odaki@daynix.com> References: <20231015140259.259434-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::62f; envelope-from=akihiko.odaki@daynix.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1697378806583100001 Content-Type: text/plain; charset="utf-8" This generalizes the rule to generate the skeleton and allows to add another. Signed-off-by: Akihiko Odaki --- tools/ebpf/Makefile.ebpf | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tools/ebpf/Makefile.ebpf b/tools/ebpf/Makefile.ebpf index 3391e7ce08..572ca5987a 100755 --- a/tools/ebpf/Makefile.ebpf +++ b/tools/ebpf/Makefile.ebpf @@ -1,23 +1,24 @@ -OBJS =3D rss.bpf.o +SKELETONS =3D rss.bpf.skeleton.h =20 LLVM_STRIP ?=3D llvm-strip CLANG ?=3D clang INC_FLAGS =3D `$(CLANG) -print-file-name=3Dinclude` EXTRA_CFLAGS ?=3D -O2 -g -target bpf =20 -all: $(OBJS) +all: $(SKELETONS) =20 .PHONY: clean =20 clean: - rm -f $(OBJS) - rm -f rss.bpf.skeleton.h + rm -f $(SKELETONS) $(SKELETONS:%.skeleton.h=3D%.o) =20 -$(OBJS): %.o:%.c +%.o: %.c $(CLANG) $(INC_FLAGS) \ -D__KERNEL__ -D__ASM_SYSREG_H \ -I../include $(LINUXINCLUDE) \ $(EXTRA_CFLAGS) -c $< -o $@ $(LLVM_STRIP) -g $@ - bpftool gen skeleton rss.bpf.o > rss.bpf.skeleton.h - cp rss.bpf.skeleton.h ../../ebpf/ + +%.skeleton.h: %.o + bpftool gen skeleton $< > $@ + cp $@ ../../ebpf/ --=20 2.42.0