修訂 | 378dfa482d6569b0034d21931570a4f31d940301 (tree) |
---|---|
時間 | 2022-01-27 23:17:35 |
作者 | Vladimir Sementsov-Ogievskiy <vsementsov@virt...> |
Commiter | Markus Armbruster |
meson: document why we don't generate trace events for tests/ and qga/
Making trace generation work for tests/ and qga/ would involve some
Meson hackery to ensure we generate the trace-events files before
trace-tool uses them. Since we don't actually support tracing there
anyway, we bypass that problem.
Let's add corresponding comments.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20220126161130.3240892-7-vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Pasto fixed, commit message punctuation tidied up]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
@@ -15,6 +15,13 @@ qga_qapi_outputs = [ | ||
15 | 15 | 'qga-qapi-visit.h', |
16 | 16 | ] |
17 | 17 | |
18 | +# Problem: to generate trace events, we'd have to add the .trace-events | |
19 | +# file to qapi_trace_events like we do in qapi/meson.build. Since | |
20 | +# qapi_trace_events is used by trace/meson.build, we'd have to move | |
21 | +# subdir('qga') above subdir('trace') in the top-level meson.build. | |
22 | +# Can't, because it would break the dependency of qga on qemuutil (which | |
23 | +# depends on trace_ss). Not worth solving now; simply suppress trace | |
24 | +# event generation instead. | |
18 | 25 | qga_qapi_files = custom_target('QGA QAPI files', |
19 | 26 | output: qga_qapi_outputs, |
20 | 27 | input: 'qapi-schema.json', |
@@ -31,6 +31,13 @@ test_qapi_outputs = [ | ||
31 | 31 | 'test-qapi-visit.h', |
32 | 32 | ] |
33 | 33 | |
34 | +# Problem: to generate trace events, we'd have to add the .trace-events | |
35 | +# file to qapi_trace_events like we do in qapi/meson.build. Since | |
36 | +# qapi_trace_events is used by trace/meson.build, we'd have to move | |
37 | +# subdir('tests') above subdir('trace') in the top-level meson.build. | |
38 | +# Can't, because it would break the dependency of qga on qemuutil (which | |
39 | +# depends on trace_ss). Not worth solving now; simply suppress trace | |
40 | +# event generation instead. | |
34 | 41 | test_qapi_files = custom_target('Test QAPI files', |
35 | 42 | output: test_qapi_outputs, |
36 | 43 | input: files('qapi-schema/qapi-schema-test.json', |