qemu/scripts/tracetool/format
Stefan Hajnoczi d6b76d6805 trace: use static event ID mapping in simpletrace.stp
This is a partial revert of commit
7f1b588f20 ("trace: emit name <-> ID
mapping in simpletrace header"), which broke the SystemTap flight
recorder because event mapping records may not be present in the ring
buffer when the trace is analyzed.  This means simpletrace.py
--no-header does not know the event ID mapping needed to pretty-print
the trace.

Instead of numbering events dynamically, use a static event ID mapping
as dictated by the event order in the trace-events-all file.

The simpletrace.py script also uses trace-events-all so the next patch
will fix the simpletrace.py --no-header option to take advantage of this
knowledge.

Cc: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170815084430.7128-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2017-08-15 12:50:29 +01:00
..
__init__.py trace: introduce a formal group name for trace events 2016-10-12 09:54:53 +02:00
c.py trace: switch to modular code generation for sub-directories 2017-01-31 17:11:18 +00:00
d.py trace: introduce a formal group name for trace events 2016-10-12 09:54:53 +02:00
h.py trace: add TRACE_<event>_BACKEND_DSTATE() 2017-08-01 12:07:48 +01:00
simpletrace_stap.py trace: use static event ID mapping in simpletrace.stp 2017-08-15 12:50:29 +01:00
stap.py trace: introduce a formal group name for trace events 2016-10-12 09:54:53 +02:00
tcg_h.py trace: [tcg] Do not generate TCG code to trace dynamically-disabled events 2017-07-17 13:11:12 +01:00
tcg_helper_c.py trace: [tcg] Do not generate TCG code to trace dynamically-disabled events 2017-07-17 13:11:12 +01:00
tcg_helper_h.py trace: introduce a formal group name for trace events 2016-10-12 09:54:53 +02:00
tcg_helper_wrapper_h.py trace: introduce a formal group name for trace events 2016-10-12 09:54:53 +02:00
ust_events_c.py trace: switch to modular code generation for sub-directories 2017-01-31 17:11:18 +00:00
ust_events_h.py trace: switch to modular code generation for sub-directories 2017-01-31 17:11:18 +00:00