From nobody Sun May 5 03:18:12 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eikelenboom.it ARC-Seal: i=1; a=rsa-sha256; t=1582144403; cv=none; d=zohomail.com; s=zohoarc; b=DYSLEP9+6H5GtU2DJj4grk5jRNHzPnX4w6kNBRm+yzWHimvcvrO9nJH04MxKQm3YtbGWd+jgp30A5m5UzwpxqRgV1cGTYxiIHp9K5/FmQ1bZn8MQZOo/KzgaqM/nI7XAnFWmF6ZeEIeuYKyLrRnXZWnsepmQVJ0l8/hHuLNnXHk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582144403; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Ex1JrUwIevtUIp70/yDorSNZr+1i33g5Zrkndips4B8=; b=BAw6kl8dU8iqf2TPqS7Sp8O78adDkKZPhukOqF3fH54HDTnOc2ER2vGboaj9AtR9lllg4IyPoOvpidTCzvbgtLyZFpdj5lK6ROBeJAc/jVUlyEo4ipR1i4t+ixKW8f2norWdHN6U8ifVTq46V834b2i/Iiiebzpz/fn4CldXk2s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1582144403401806.0102263402417; Wed, 19 Feb 2020 12:33:23 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4W1K-0001oy-7j; Wed, 19 Feb 2020 20:32:34 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4W1I-0001om-7W for xen-devel@lists.xenproject.org; Wed, 19 Feb 2020 20:32:32 +0000 Received: from server.eikelenboom.it (unknown [91.121.65.215]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f26bed3c-5356-11ea-8452-12813bfff9fa; Wed, 19 Feb 2020 20:32:29 +0000 (UTC) Received: from ip4da85049.direct-adsl.nl ([77.168.80.73]:60560 helo=localhost.localdomain) by server.eikelenboom.it with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j4W2k-0005p1-5d; Wed, 19 Feb 2020 21:34:02 +0100 X-Inumbo-ID: f26bed3c-5356-11ea-8452-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eikelenboom.it; s=20180706; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ghxYQxMUHANtAVscJ5818pADD/qrOSUvx8dogWcVNIA=; b=Obx0lpnCadaFeIm4IIoNKKpsq6 7fNMei+zVQ6SrR2Pa83m8HKm7WA+c8C3AcYi2LEOsz18WERKBPKU4QPkqyH84NDGhAQ2RLlaQbZcX XS0BOTIiIbO4fMb16kko7/27Lxhv1dSfGonabv2hy8x287e6dFPfrSSImA/tTVVZEbk0=; From: Sander Eikelenboom To: xen-devel@lists.xenproject.org Date: Wed, 19 Feb 2020 21:31:30 +0100 Message-Id: <416169fe34ec346a5edde2c66c4b017871c2a891.1582143896.git.linux@eikelenboom.it> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 1/3] tools/xentop: Fix calculation of used memory. X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Sander Eikelenboom , Ian Jackson , Wei Liu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Sander Eikelenboom Acked-by: Wei Liu --- tools/xenstat/xentop/xentop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index af11ebfbf7..13b612f26d 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -969,7 +969,7 @@ void do_summary(void) "%u crashed, %u dying, %u shutdown \n", num_domains, run, block, pause, crash, dying, shutdown); =20 - used =3D xenstat_node_tot_mem(cur_node); + used =3D xenstat_node_tot_mem(cur_node)-xenstat_node_free_mem(cur_node); freeable_mb =3D 0; =20 /* Dump node memory and cpu information */ --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sun May 5 03:18:12 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eikelenboom.it ARC-Seal: i=1; a=rsa-sha256; t=1582144402; cv=none; d=zohomail.com; s=zohoarc; b=mQSa27AsLcYiqw+JI+cbupzB54HMNw3WM/SzQL5cQIPgHm3ZqjGmSy37tUJbEU7SS7TuwO2wo0lc4215UOUYn931xkavGKLueVXGa54lxBWVppw3yzWiIa9MP74sJGTmJeyt5X8djX6ZUH4rb/GD/9S3Ok6qf6bFS/O241JYfN8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582144402; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DhhutNa3+mDAPgOqCuGfXUaHWP85XXFMtOBG0eJfFGI=; b=oDD17RHD6LSyK/zBUe2JITYVINSqCUGodX/ja8G5iY37VjuFPdPxIajP/+gbCyz0ENosJBEJ/MPCobYrGMjbY9UBjppRhLuyZx/8viW0W5T7hf8b3g1JObpB9OvLlR6GCNmS8Qr1GIjSQ62DBopUj80JYmyPRdGtnQFiMdg3zg4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1582144402297531.0811324666349; Wed, 19 Feb 2020 12:33:22 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4W1P-0001pZ-1A; Wed, 19 Feb 2020 20:32:39 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4W1N-0001pJ-Pk for xen-devel@lists.xenproject.org; Wed, 19 Feb 2020 20:32:37 +0000 Received: from server.eikelenboom.it (unknown [91.121.65.215]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id f3c5876a-5356-11ea-ade5-bc764e2007e4; Wed, 19 Feb 2020 20:32:31 +0000 (UTC) Received: from ip4da85049.direct-adsl.nl ([77.168.80.73]:60560 helo=localhost.localdomain) by server.eikelenboom.it with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j4W2k-0005p1-AC; Wed, 19 Feb 2020 21:34:02 +0100 X-Inumbo-ID: f3c5876a-5356-11ea-ade5-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eikelenboom.it; s=20180706; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IwM5xDVexTtFbifpzcvRacL+iCjmBdmezBNuwX9Wrb0=; b=ZZuofW68kpx+4sW8OdtDPa/85Z SSgzQLjxBfPG7cy1LSkpSfPD9XGIiRK7PazMHd1pyLtPeLA3f1zL0syJxeJc7uNi/s6Nu0/97yhIP tmFiuWKz8K3RST5emu0za8a2qv0RdiZI7V5vP425+XwLQgLzzPoaJ7stvwFyDUsv8ZWE=; From: Sander Eikelenboom To: xen-devel@lists.xenproject.org Date: Wed, 19 Feb 2020 21:31:31 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 2/3] tools/xentop: Remove dead code X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Sander Eikelenboom , Ian Jackson , Wei Liu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Sander Eikelenboom Acked-by: Wei Liu --- tools/xenstat/xentop/xentop.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index 13b612f26d..bbb5d47b76 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -943,7 +943,6 @@ void do_summary(void) crash =3D 0, dying =3D 0, shutdown =3D 0; unsigned i, num_domains =3D 0; unsigned long long used =3D 0; - long freeable_mb =3D 0; xenstat_domain *domain; time_t curt; =20 @@ -970,17 +969,12 @@ void do_summary(void) num_domains, run, block, pause, crash, dying, shutdown); =20 used =3D xenstat_node_tot_mem(cur_node)-xenstat_node_free_mem(cur_node); - freeable_mb =3D 0; =20 /* Dump node memory and cpu information */ - if ( freeable_mb <=3D 0 ) - print("Mem: %lluk total, %lluk used, %lluk free ", + print("Mem: %lluk total, %lluk used, %lluk free ", xenstat_node_tot_mem(cur_node)/1024, used/1024, xenstat_node_free_mem(cur_node)/1024); - else - print("Mem: %lluk total, %lluk used, %lluk free, %ldk freeable, ", - xenstat_node_tot_mem(cur_node)/1024, used/1024, - xenstat_node_free_mem(cur_node)/1024, freeable_mb*1024); + print("CPUs: %u @ %lluMHz\n", xenstat_node_num_cpus(cur_node), xenstat_node_cpu_hz(cur_node)/1000000); --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sun May 5 03:18:12 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eikelenboom.it ARC-Seal: i=1; a=rsa-sha256; t=1582144402; cv=none; d=zohomail.com; s=zohoarc; b=HGo5lXinR1pjyD8/0lZkmQgdpqRIfqj5wtQ9KBEhPHrC4zfZHotzDu43Oj6qkzcxc7lY7ME91pZFarQZGTE9K9YI4lQvF3X5lQ5J0gLU2XC9JBioFBcc1DZ9RZaRnWalV2cLCSpakbWAiknY08FJ8ReD4iCihlIz1nhOjoK4QWk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582144402; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zAjuzX8sxIS3LeoLQ5ygIh9VNukpW/90G13AK+33SOc=; b=VLtv4t73xMyyQwfa58h+ADtqsjoVawaa1Bp4MHZPN8C4NBVl1AZwSuSo+D7gRn+Ilog0POOgCWNEUMqNGLBGAdg36IwJmej6P1qFXIIjr6aJocv6PqITkKEPbudllKRZvBDSAOxDFsqtp6yKmyt2SEz+mPNis8wVyt61IvM2k7U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1582144402300270.50973769201414; Wed, 19 Feb 2020 12:33:22 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4W1N-0001pK-OM; Wed, 19 Feb 2020 20:32:37 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4W1N-0001pA-5W for xen-devel@lists.xenproject.org; Wed, 19 Feb 2020 20:32:37 +0000 Received: from server.eikelenboom.it (unknown [91.121.65.215]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f4c1bcf6-5356-11ea-8452-12813bfff9fa; Wed, 19 Feb 2020 20:32:33 +0000 (UTC) Received: from ip4da85049.direct-adsl.nl ([77.168.80.73]:60560 helo=localhost.localdomain) by server.eikelenboom.it with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j4W2k-0005p1-Eq; Wed, 19 Feb 2020 21:34:02 +0100 X-Inumbo-ID: f4c1bcf6-5356-11ea-8452-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eikelenboom.it; s=20180706; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=th3924BFsFSTZk5IjWOH9K2MKjJRP9fWvV+SRMISZxU=; b=VoOIsjYwPzXB6T67ToY4l0OZ4j CWAROLvKx2O1n59MGIdSoJOdg66uT3KsZdGIL9lDHM8cmvpt7aJN1JzZYrxlF5MO+DUKT808Xocu1 2MsPOA/mFxhtfzhr3A7dz3l0Z22MNOoGumioHMZX4oEGpgPsfnoKb3o47RmL1BoW7mww=; From: Sander Eikelenboom To: xen-devel@lists.xenproject.org Date: Wed, 19 Feb 2020 21:31:32 +0100 Message-Id: <4fd751d1a45632f9ed0a32b7fc7988343ad03f83.1582143896.git.linux@eikelenboom.it> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 3/3] tools/xentop: Cleanup some trailing whitespace X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Sander Eikelenboom , Ian Jackson , Wei Liu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Sander Eikelenboom Acked-by: Wei Liu --- tools/xenstat/xentop/xentop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index bbb5d47b76..fdcfb3b396 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -1015,7 +1015,7 @@ void do_bottom_line(void) addch(A_REVERSE | 'N'); attr_addstr(show_networks ? COLOR_PAIR(1) : 0, "etworks"); addstr(" "); - =09 + /* VBDs */ attr_addstr(show_vbds ? COLOR_PAIR(1) : 0, "v"); addch(A_REVERSE | 'B'); @@ -1123,7 +1123,7 @@ void do_vbd(xenstat_domain *domain) "BlkBack", /* number 1 */ "BlkTap", /* number 2 */ }; -=09 + num_vbds =3D xenstat_domain_num_vbds(domain); =20 for (i=3D0 ; i< num_vbds; i++) { --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel