qemu-cr16/scripts/tracetool/format
Tanish Desai e2e182bef7 tracetool: Add Rust format support
Generating .rs files makes it possible to support tracing in rust.
This support comprises a new format, and common code that converts
the C expressions in trace-events to Rust.  In particular, types
need to be converted, and PRI macros expanded.

As of this commit no backend generates Rust code, but it is already
possible to use tracetool to generate Rust sources; they are not
functional but they compile and contain tracepoint functions.

[Move Rust argument conversion from Event to Arguments; string
 support. - Paolo]

Signed-off-by: Tanish Desai <tanishdesai37@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20250929154938.594389-9-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2025-10-01 11:22:07 -04:00
..
__init__.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
c.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
d.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
h.py tracetool: add CHECK_TRACE_EVENT_GET_STATE 2025-10-01 11:22:07 -04:00
log_stap.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
rs.py tracetool: Add Rust format support 2025-10-01 11:22:07 -04:00
simpletrace_stap.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
stap.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
ust_events_c.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00
ust_events_h.py tracetool: add SPDX headers 2025-10-01 11:22:07 -04:00