trace: give each trace event a named TraceEvent struct
Currently we only expose a TraceEvent array, which must be indexed via the TraceEventID enum constants. This changes the generator to expose a named TraceEvent instance for each event, with an _EVENT suffix. Reviewed-by:Lluís Vilanova <vilanova@ac.upc.edu> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Daniel P. Berrange <berrange@redhat.com> Message-id: 1475588159-30598-10-git-send-email-berrange@redhat.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
Showing
- scripts/tracetool/__init__.py 1 addition, 0 deletionsscripts/tracetool/__init__.py
- scripts/tracetool/format/events_c.py 13 additions, 6 deletionsscripts/tracetool/format/events_c.py
- scripts/tracetool/format/events_h.py 8 additions, 3 deletionsscripts/tracetool/format/events_h.py
- trace/control-internal.h 1 addition, 1 deletiontrace/control-internal.h
- trace/control.c 1 addition, 1 deletiontrace/control.c
Loading
Please register or sign in to comment