Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 2020 11:13:50 -0500
From:      Mark Johnston <markj@freebsd.org>
To:        kamalp@acm.org
Cc:        freebsd-dtrace@freebsd.org
Subject:   Re: set argument
Message-ID:  <20200302161350.GB26104@spy>
In-Reply-To: <CAK=yUGL8Ls5V4E=ucPJ9Unvf_UhDDngU7ue%2BkeRL3Zx2khJw5Q@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On Mon, Mar 02, 2020 at 03:33:57PM +0530, Kamal R. Prasad wrote:
> hello,
> 
>  How does dtrace access the argument type declarations when we define a new
> SDT? eg:- I define an SDT that has arg0 as (struct mystrust*)
> 
> I have defined in my proprietary header file
> ---------------
> typedef struct abc {
> int a;
> int b;
> int c;
> };
> typedef struct def {
> int d;
> int e;
> int f;
> };
> 
> typedef struct mystrust {
> struct abc* myarg1;
> struct def* myarg2
> };
> ---------------
> 
> I want my probe to be able to access the typedeffor struct abc and struct
> def.

Is this in the kernel or userspace?  We automatically build the kernel
with CTF info included, so dtrace should be able to see the structure
definitions automatically.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200302161350.GB26104>