Supported parameter types for probe providers

View: New views
2 Messages — Rating Filter:   Alert me  

Supported parameter types for probe providers

by Oleksiy Stashok :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

is it possible to use custom types parameters, when emitting probe  
provider event?
Like:

     @Probe(name="myProbe")
     public void myProveEvent(
         @ProbeParam("customType") CustomType parameter) {}


public class CustomType {
        int a;
         int b;
         AnotherCustomType c;
}

......


Thanks.

WBR,
Alexey.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Supported parameter types for probe providers

by Prashanth Abbagani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Probe parameters should be either primitive or String types, see link.
Composite types are not handled by DTrace that well (does a toString()). We will try to fix this in next release.

-Prashanth

Oleksiy Stashok wrote:
Hi,

is it possible to use custom types parameters, when emitting probe provider event?
Like:

    @Probe(name="myProbe")
    public void myProveEvent(
        @ProbeParam("customType") CustomType parameter) {}


public class CustomType {
    int a;
        int b;
        AnotherCustomType c;
}

......


Thanks.

WBR,
Alexey.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...