From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: [PATCH] augment info cpus Date: Wed, 5 Mar 2008 17:01:10 -0300 Message-ID: <12047472823266-git-send-email-gcosta@redhat.com> References: <12047472711034-git-send-email-gcosta@redhat.com> <12047472772114-git-send-email-gcosta@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, avi@qumranet.com, Glauber Costa , chrisw@sous-sol.org To: kvm-devel@lists.sourceforge.net Return-path: In-Reply-To: <12047472772114-git-send-email-gcosta@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/