From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWzqM-0001Uz-16 for qemu-devel@nongnu.org; Wed, 05 Mar 2008 15:04:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWzqJ-0001UN-Ux for qemu-devel@nongnu.org; Wed, 05 Mar 2008 15:04:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWzqJ-0001UG-PU for qemu-devel@nongnu.org; Wed, 05 Mar 2008 15:03:59 -0500 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWzqJ-000714-7g for qemu-devel@nongnu.org; Wed, 05 Mar 2008 15:03:59 -0500 From: Glauber Costa Date: Wed, 5 Mar 2008 17:01:10 -0300 Message-Id: <12047472823266-git-send-email-gcosta@redhat.com> In-Reply-To: <12047472772114-git-send-email-gcosta@redhat.com> References: <12047472711034-git-send-email-gcosta@redhat.com> <12047472772114-git-send-email-gcosta@redhat.com> Subject: [Qemu-devel] [PATCH] augment info cpus Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm-devel@lists.sourceforge.net Cc: glommer@gmail.com, qemu-devel@nongnu.org, Glauber Costa , chrisw@sous-sol.org This patch exposes the thread id associated with each cpu through the already well known info cpus interface. Signed-off-by: Glauber Costa --- qemu/monitor.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu/monitor.c b/qemu/monitor.c index 0874671..4ee0b19 100644 --- a/qemu/monitor.c +++ b/qemu/monitor.c @@ -335,6 +335,7 @@ static void do_info_cpus(void) if (env->halted) term_printf(" (halted)"); #endif + term_printf(" thread_id=%d", env->thread_id); term_printf("\n"); } } -- 1.5.0.6