From patchwork Tue Sep 27 13:00:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 116600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 224A6B6F70 for ; Tue, 27 Sep 2011 23:00:56 +1000 (EST) Received: from localhost ([::1]:36810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8XHJ-0004tR-Rf for incoming@patchwork.ozlabs.org; Tue, 27 Sep 2011 09:00:53 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8XH8-0004sl-Q1 for qemu-devel@nongnu.org; Tue, 27 Sep 2011 09:00:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8XH2-0000nd-BL for qemu-devel@nongnu.org; Tue, 27 Sep 2011 09:00:42 -0400 Received: from goliath.siemens.de ([192.35.17.28]:19479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8XH1-0000mr-W8 for qemu-devel@nongnu.org; Tue, 27 Sep 2011 09:00:36 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.13.6/8.13.6) with ESMTP id p8RD0V3U012798; Tue, 27 Sep 2011 15:00:32 +0200 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id p8RD0Vho015965; Tue, 27 Sep 2011 15:00:31 +0200 Message-ID: <4E81C8EF.3020900@siemens.com> Date: Tue, 27 Sep 2011 15:00:31 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Avi Kivity X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 192.35.17.28 Cc: Blue Swirl , qemu-devel Subject: [Qemu-devel] [PATCH 1/3] memory: Print region priority X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Useful to discover eclipses. Signed-off-by: Jan Kiszka --- PS: Current memory/master requires an obvious build fix (central definition of some types), but I assume you already have a patch in your tree. memory.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/memory.c b/memory.c index b1724fe..4c190e5 100644 --- a/memory.c +++ b/memory.c @@ -1370,18 +1370,20 @@ static void mtree_print_mr(fprintf_function mon_printf, void *f, ml->printed = false; QTAILQ_INSERT_TAIL(print_queue, ml, queue); } - mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " : alias %s @%s " + mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d): alias %s @%s " TARGET_FMT_plx "-" TARGET_FMT_plx "\n", base + mr->addr, base + mr->addr + (target_phys_addr_t)mr->size - 1, + mr->priority, mr->name, mr->alias->name, mr->alias_offset, mr->alias_offset + (target_phys_addr_t)mr->size - 1); } else { - mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " : %s\n", + mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d): %s\n", base + mr->addr, base + mr->addr + (target_phys_addr_t)mr->size - 1, + mr->priority, mr->name); } QTAILQ_FOREACH(submr, &mr->subregions, subregions_link) {