Skip to content

Add support for pointers to builtin primitives #55

@jgallagher

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions