Re: [PATCH] Rust: Add tracing and logging support for Rust code

2025-04-04 Thread Saman Dehghan
...@nongnu.org, m...@ynddal.dk, manos.pitsidiana...@linaro.org, sa...@enumclass.cc Date: March 31, 2025, 7:26 PM Subject: [PATCH] Rust: Add tracing and logging support for Rust code This change introduces initial support for tracing and logging in Rust-based QEMU code. As an

Re: [PATCH] Rust: Add tracing and logging support for Rust code

2025-04-04 Thread Daniel P . Berrangé
On Mon, Mar 31, 2025 at 07:26:33PM -0500, saman wrote: > This change introduces initial support for tracing and logging in Rust-based > QEMU code. As an example, tracing and logging have been implemented in the > pl011 device, which is written in Rust. > > - Updated `rust/wrapper.h` to include the

[PATCH] Rust: Add tracing and logging support for Rust code

2025-04-04 Thread saman
This change introduces initial support for tracing and logging in Rust-based QEMU code. As an example, tracing and logging have been implemented in the pl011 device, which is written in Rust. - Updated `rust/wrapper.h` to include the `qemu/log.h` and `hw/char/trace.h` header. - Added log.rs to wr

Re: [PATCH] Rust: Add tracing and logging support for Rust code

2025-04-02 Thread Paolo Bonzini
Il mar 1 apr 2025, 10:27 Daniel P. Berrangé ha scritto: > This is a non-trivial degradation for the tracing code. The code is > generated in an inline function in the header so that when a probe > point is not active, it has as little overhead as possible - with > some backends it will just a 'no

Re: [PATCH] Rust: Add tracing and logging support for Rust code

2025-04-01 Thread Stefan Hajnoczi
On Mon, Mar 31, 2025 at 07:26:33PM -0500, saman wrote: > This change introduces initial support for tracing and logging in Rust-based > QEMU code. As an example, tracing and logging have been implemented in the > pl011 device, which is written in Rust. > > - Updated `rust/wrapper.h` to include the