Skip to content

Add support for pointers to builtin primitives #55

Description

@jgallagher

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions