Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pointers to builtin primitives #55

Closed
jgallagher opened this issue Apr 1, 2022 · 1 comment
Closed

Add support for pointers to builtin primitives #55

jgallagher opened this issue Apr 1, 2022 · 1 comment

Comments

@jgallagher
Copy link

This came up in omicron, where we wanted to add a probe for raw bytes. A workaround is to use integers; e.g.,

#[usdt::provider(provider = "blahblah")]
mod probes {
    fn raw_bytes(
        _data: u64, // TODO actually a `*const u8`, but that isn't currently allowed by usdt
        _len: u64, // length of data
    ) {}
}

which functions correctly from the dtrace side but is a little awkward on the Rust side.

@bnaecker
Copy link
Collaborator

Closed by #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants