[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH not-for-merge 4/5] qdev: Instrument to detect missed QOM parentin
From: |
Markus Armbruster |
Subject: |
[PATCH not-for-merge 4/5] qdev: Instrument to detect missed QOM parenting |
Date: |
Mon, 18 May 2020 07:19:44 +0200 |
Signed-off-by: Markus Armbruster <address@hidden>
---
qdev-monitor.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/qdev-monitor.c b/qdev-monitor.c
index 07f78e9f5d..ec4e134ff7 100644
--- a/qdev-monitor.c
+++ b/qdev-monitor.c
@@ -801,6 +801,10 @@ static void qbus_print(Monitor *mon, BusState *bus, int
indent)
struct qbus_child *qc = children->data;
DeviceState *dev = qc->dev;
GSList *next = children->next;
+ if (!qc->qom_path) {
+ printf("### no qom path: %s, id \"%s\"\n",
+ object_get_typename(OBJECT(dev)), dev->id ? dev->id : "");
+ }
qdev_print(mon, dev, indent);
g_free(qc->qom_path);
g_free(qc);
--
2.21.1
- [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization", Markus Armbruster, 2020/05/18
- [PATCH not-for-merge 1/5] qom: Instrument to detect missed realize, Markus Armbruster, 2020/05/18
- [PATCH not-for-merge 4/5] qdev: Instrument to detect missed QOM parenting,
Markus Armbruster <=
- [PATCH not-for-merge 3/5] qdev: Make "info qtree" show child devices sorted by QOM path, Markus Armbruster, 2020/05/18
- [PATCH not-for-merge 2/5] qom: Make "info qom-tree" show children sorted, Markus Armbruster, 2020/05/18
- [PATCH not-for-merge 5/5] qdev: Instrument to detect bus mismatch, Markus Armbruster, 2020/05/18
- Re: [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization", no-reply, 2020/05/18
- Re: [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization", no-reply, 2020/05/18
- Re: [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization", no-reply, 2020/05/18
- Re: [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization", Mark Cave-Ayland, 2020/05/18