[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 09/10] qapi: add missing trace_visit_type_enum() call
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 09/10] qapi: add missing trace_visit_type_enum() call |
Date: |
Wed, 1 Feb 2017 13:44:52 +0000 |
A trace event exists for enums but it's never called. This patch fixes
this oversight so that enums are traced just like the other QAPI types.
Suggested-by: Daniel P. Berrange <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
qapi/qapi-visit-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/qapi/qapi-visit-core.c b/qapi/qapi-visit-core.c
index 63bd97b..e6e93f0 100644
--- a/qapi/qapi-visit-core.c
+++ b/qapi/qapi-visit-core.c
@@ -374,6 +374,7 @@ void visit_type_enum(Visitor *v, const char *name, int *obj,
const char *const strings[], Error **errp)
{
assert(obj && strings);
+ trace_visit_type_enum(v, name, obj);
switch (v->type) {
case VISITOR_INPUT:
input_type_enum(v, name, obj, strings, errp);
--
2.9.3
- [Qemu-devel] [PULL 00/10] Tracing patches, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 01/10] make: move top level dir to end of include search path, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 02/10] trace: move hw/block/dataplane events to correct subdir, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 03/10] trace: move hw/xen events to correct subdir, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 04/10] trace: move hw/i386/xen events to correct subdir, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 05/10] trace: move setting of group name into Makefiles, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 07/10] trace: update docs to reflect new code generation approach, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 08/10] trace: improve error reporting when parsing simpletrace header, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 06/10] trace: switch to modular code generation for sub-directories, Stefan Hajnoczi, 2017/02/01
- [Qemu-devel] [PULL 09/10] qapi: add missing trace_visit_type_enum() call,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 10/10] trace: clean up trace-events files, Stefan Hajnoczi, 2017/02/01
- Re: [Qemu-devel] [PULL 00/10] Tracing patches, Peter Maydell, 2017/02/02