From nobody Wed Nov 27 07:49:55 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=1700299775; cv=none; d=zohomail.com; s=zohoarc; b=bFvn19RMB/C+vouTtu8137Qsn8Kd4DKzRRaBk3ax+s+tIp2Fp8VHrTicayePsqYG+RJU0wUQr5GVcQJI+i4lBH6cJcSzHJDT1+2w+6y5Ox4P7CCrtCikZmkw63TPjcUdUmke0n4Nb1MLr/tRPDYcBUcrgNg9s7fpwWnnQlc8YG4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700299775; 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=g0IWpuVugnOHhHW4iRdjHhQop01tKq8JlW1RJdmELNI=; b=ZlAT4AwTc7ssFuQ1GdcP3eECFvSWKp2LPoqcVcvN1L46KDBYErG3mSynJhJuq8P0OUl2mTTGfnaL2Y4igl5PAp9NIZv7VmxL+ScqUAl6VbkaRQvgEAIRiwyhS+mOLNwpY2I4BSdvRoo+tdSImue2etfpsgwJ0/Pv+1Ws8PzddLQ= 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 1700299775598633.5744200410701; Sat, 18 Nov 2023 01:29:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4Hc2-0000Ic-Oh; Sat, 18 Nov 2023 04:27:38 -0500 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 1r4Hbt-0008Hi-DK for qemu-devel@nongnu.org; Sat, 18 Nov 2023 04:27:30 -0500 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4Hbr-0003uA-TG for qemu-devel@nongnu.org; Sat, 18 Nov 2023 04:27:29 -0500 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6bd32d1a040so2847794b3a.3 for ; Sat, 18 Nov 2023 01:27:27 -0800 (PST) Received: from localhost ([157.82.205.15]) by smtp.gmail.com with UTF8SMTPSA id x27-20020aa793bb000000b006c33c82da66sm2643437pff.75.2023.11.18.01.27.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Nov 2023 01:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1700299646; x=1700904446; 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=g0IWpuVugnOHhHW4iRdjHhQop01tKq8JlW1RJdmELNI=; b=y0kUqMNk2IIhRCE34sF6BT0RZn1oMFXmOz4QIK/ELB4rVlrVWeARP5qzsJ3p3Jjg0H MX7cP010pbabqtLFn6h1TCiQxPNJAIqeoaxfArOapKjemadNUYVdoRQIJEx2HfKOvuS1 1UGFrJOqOAVTLsrZq+3MGIDCFAi9cZK/iA1n5MYau84YM3t0dCNpnG+L+xTailmG0QJb +1kArvdg2NF13CgnT55KwEBVnPoV1FpK/v/xhOzj2Zna9szi3y25qUoL6Sz9LGsLlMtq nW9vwUfsKggtZJ6t+n4kIvTLSk2UQaCtHZDL2UiEN5ZdFyxIjd94oBfNwtsloSUdjUW+ 2YqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700299646; x=1700904446; 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=g0IWpuVugnOHhHW4iRdjHhQop01tKq8JlW1RJdmELNI=; b=bxGeWUA+285cVpQcVM3Ap2A1l2u9x4/onOwRED55ko1vElzOn9h7ohFJpw5KvWpI1l Vtj5lNbCkzhruQDeqnAbjaengvVNvamgBXwpVJgJOVHDjfQI+h3NJyPmMM8jTOUcSB9Q o3kABDD/Piops3b0wN64hzYpCKNJvj9umcyCuZLiMj6kP81gOPCdJXDnquinq1Nv0wRP qr+T3Sx7RKQENVH1dY+q1vcNzwEN7sWQoKe8LVl/Jn4yiCwobztkEpqKMTcGx8qju5Qf OXJbASZR9xvjPmFmOkgFkR4C7BLXDYl3AueJBbPzhG1PE+hCUqfJIzwtPser5u666vOA c35A== X-Gm-Message-State: AOJu0Yxa0Jbo9TlkU4PzvW3JEgOy2wKZ8lxBUqRJvc8yUnedj3+g8wun XpeTq/xi0fGIrCeL3W9SZ/aZQz+6GTxviSxj6Wo= X-Google-Smtp-Source: AGHT+IHxurB82PoPrYzYMGAHFKHRmZndjq8sGwA7ifSrECwz6uDvLo3Dsnfb844zJu6D9dowl9BS9w== X-Received: by 2002:a05:6a00:1ad3:b0:6b1:e876:168b with SMTP id f19-20020a056a001ad300b006b1e876168bmr2559731pfv.11.1700299646389; Sat, 18 Nov 2023 01:27:26 -0800 (PST) From: Akihiko Odaki To: Cc: qemu-devel@nongnu.org, Yuri Benditovich , Andrew Melnychenko , "Michael S . Tsirkin" , Jason Wang , "Zhang, Chen" , Akihiko Odaki Subject: [PATCH RESEND v7 19/19] ebpf: Add a separate target for skeleton Date: Sat, 18 Nov 2023 18:25:59 +0900 Message-ID: <20231118092601.7132-20-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118092601.7132-1-akihiko.odaki@daynix.com> References: <20231118092601.7132-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::434; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x434.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, T_SCC_BODY_TEXT_LINE=-0.01 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: 1700299776001100001 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.1