Il gio 5 giu 2025, 21:20 Daniel P. Berrangé <berra...@redhat.com> ha
scritto:

> > > How is this patch series related to Rust tracing? If generated code
> > > needs to be restructured so Rust can call it, then that's a strong
> > > justification.
> > Well, moving code to the .c file would make it possible to call it in
> Rust
> > without duplicating code generation for the various backends (other than
> the
> > "if" and function calls, of course, but those are easy). However, this is
> > only handy and not absolutely necessary for the Rust tracing project.
>
> This might work for some trace backends, but certainly for dtrace/systemtap
> I'd expect us to use a native rust impl to get the optimal low overhead.
>

Yes, dtrace and ust are special. But they also have very small code
generation, so there would also be no reason to do a patch like this one
for them.

Paolo


> With regards,
> Daniel
> --
> |: https://berrange.com      -o-
> https://www.flickr.com/photos/dberrange :|
> |: https://libvirt.org         -o-
> https://fstop138.berrange.com :|
> |: https://entangle-photo.org    -o-
> https://www.instagram.com/dberrange :|
>
>

Reply via email to