]> git.ipfire.org Git - thirdparty/qemu.git/commit
tracetool/syslog: add Rust support
authorTanish Desai <tanishdesai37@gmail.com>
Mon, 29 Sep 2025 15:49:38 +0000 (17:49 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 1 Oct 2025 15:22:07 +0000 (11:22 -0400)
commit1461752f0fa4bcd7e60d51fe47e3430f8a81cdd8
treea85fab18d5442b196d1bd7796e1f83f88438b3d7
parent7dbee1274266b802456c7f07dc10184af2dc1ec0
tracetool/syslog: add Rust support

The syslog backend needs the syslog function from libc and the LOG_INFO enum
value; they are re-exported as "::trace::syslog" and "::trace::LOG_INFO"
so that device crates do not all have to add the libc dependency, but
otherwise there is nothing special.

Signed-off-by: Tanish Desai <tanishdesai37@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20250929154938.594389-17-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
rust/Cargo.lock
rust/trace/Cargo.toml
rust/trace/src/lib.rs
scripts/tracetool/backend/syslog.py
tests/tracetool/syslog.rs [new file with mode: 0644]
tests/tracetool/tracetool-test.py