]> Git Repo - qemu.git/commit
trace: use static event ID mapping in simpletrace.stp
authorStefan Hajnoczi <[email protected]>
Tue, 15 Aug 2017 08:44:29 +0000 (09:44 +0100)
committerStefan Hajnoczi <[email protected]>
Tue, 15 Aug 2017 11:50:29 +0000 (12:50 +0100)
commitd6b76d68054b81943648ab0af2f9634ae946854b
treeb39dcc2534fafd55c8c9c3fa77f0ef5563285081
parent5681da292242550f37ba4c03f46a8a6f8ee9278a
trace: use static event ID mapping in simpletrace.stp

This is a partial revert of commit
7f1b588f20d027730676e627713ae3bbf6baab04 ("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 <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Daniel P. Berrange <[email protected]>
Message-id: 20170815084430[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
scripts/tracetool/format/simpletrace_stap.py
This page took 0.02553 seconds and 4 git commands to generate.