diff options
| author | Tanish Desai <tanishdesai37@gmail.com> | 2025-09-29 17:49:38 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2025-10-01 11:22:07 -0400 |
| commit | 1461752f0fa4bcd7e60d51fe47e3430f8a81cdd8 (patch) | |
| tree | a85fab18d5442b196d1bd7796e1f83f88438b3d7 /rust/trace/src/lib.rs | |
| parent | 7dbee1274266b802456c7f07dc10184af2dc1ec0 (diff) | |
| download | focaccia-qemu-1461752f0fa4bcd7e60d51fe47e3430f8a81cdd8.tar.gz focaccia-qemu-1461752f0fa4bcd7e60d51fe47e3430f8a81cdd8.zip | |
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>
Diffstat (limited to 'rust/trace/src/lib.rs')
| -rw-r--r-- | rust/trace/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/trace/src/lib.rs b/rust/trace/src/lib.rs index 0955461573..e03bce43c4 100644 --- a/rust/trace/src/lib.rs +++ b/rust/trace/src/lib.rs @@ -3,6 +3,10 @@ //! This crate provides macros that aid in using QEMU's tracepoint //! functionality. +#[doc(hidden)] +/// Re-exported item to avoid adding libc as a dependency everywhere. +pub use libc::{syslog, LOG_INFO}; + #[macro_export] /// Define the trace-points from the named directory (which should have slashes /// replaced by underscore characters) as functions in a module called `trace`. |