Patchwork [1/3] memory: Print region priority

login
register
mail settings
Submitter Jan Kiszka
Date Sept. 27, 2011, 1 p.m.
Message ID <4E81C8EF.3020900@siemens.com>
Download mbox | patch
Permalink /patch/116600/
State New
Headers show

Comments

Jan Kiszka - Sept. 27, 2011, 1 p.m.
Useful to discover eclipses.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

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(-)
Avi Kivity - Oct. 2, 2011, 2:08 p.m.
On 09/27/2011 04:00 PM, Jan Kiszka wrote:
> Useful to discover eclipses.
>
> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
> ---
>
> 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.
>

No, doesn't happen here.

Patch

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) {