From nobody Fri Oct 31 03:46:13 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=renesas.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 175689505612221.281799390658648; Wed, 3 Sep 2025 03:24:16 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1108061.1458218 (Exim 4.92) (envelope-from ) id 1utkep-0002Bx-SF; Wed, 03 Sep 2025 10:24:03 +0000 Received: by outflank-mailman (output) from mailman id 1108061.1458218; Wed, 03 Sep 2025 10:24:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1utkep-0002Bo-Nl; Wed, 03 Sep 2025 10:24:03 +0000 Received: by outflank-mailman (input) for mailman id 1108061; Wed, 03 Sep 2025 10:24:02 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1utken-0001Ah-Uo for xen-devel@lists.xenproject.org; Wed, 03 Sep 2025 10:24:01 +0000 Received: from rein-hpcbdc09 (unknown [1.6.89.6]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 1a6421f5-88b0-11f0-9809-7dc792cee155; Wed, 03 Sep 2025 12:23:59 +0200 (CEST) Received: by rein-hpcbdc09 (Postfix, from userid 1000) id 5F18480C094C; Wed, 3 Sep 2025 15:53:58 +0530 (IST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 1a6421f5-88b0-11f0-9809-7dc792cee155 From: Jahan Murudi To: xen-devel@lists.xenproject.org Cc: Jahan Murudi , Anthony PERARD Subject: [PATCH v4 3/4] xentop: update Makefile to link against libxenctrl Date: Wed, 3 Sep 2025 15:53:22 +0530 Message-Id: <20250903102323.2553142-4-jahan.murudi.zg@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250903102323.2553142-1-jahan.murudi.zg@renesas.com> References: <20250903102323.2553142-1-jahan.murudi.zg@renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1756895080487124100 Content-Type: text/plain; charset="utf-8" Update the build system so that xentop links against libxenctrl, which is required for retrieving per-CPU statistics via the hypervisor API. Also update the build rule to include the new pcpu.o object file. Signed-off-by: Jahan Murudi --- tools/xentop/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/xentop/Makefile b/tools/xentop/Makefile index 70cc2211c5..f514a6f7a8 100644 --- a/tools/xentop/Makefile +++ b/tools/xentop/Makefile @@ -15,6 +15,7 @@ include $(XEN_ROOT)/tools/Rules.mk =20 CFLAGS +=3D -DGCC_PRINTF $(CFLAGS_libxenstat) LDLIBS +=3D $(LDLIBS_libxenstat) $(CURSES_LIBS) $(TINFO_LIBS) $(SOCKET_LIB= S) -lm +LDLIBS +=3D $(LDLIBS_libxenctrl) CFLAGS +=3D -DHOST_$(XEN_OS) =20 # Include configure output (config.h) @@ -25,8 +26,8 @@ TARGETS :=3D xentop .PHONY: all all: $(TARGETS) =20 -xentop: xentop.o - $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS) +xentop: xentop.o pcpu.o + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS) =20 .PHONY: install install: all --=20 2.34.1