Re: set argument

2020-03-02 Thread Kamal Prasad
Is it possible to include the header ind race so that I don’t replicate structure definition? > On Mar 2, 2020, at 9:28 PM, Ash Gokhale wrote: > >> >> >> How does dtrace access the argument type declarations when we define a new >> SDT? eg:- I define an SDT that has arg0 as (struct

Re: set argument

2020-03-02 Thread Ash Gokhale
On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad wrote: > Is it possible to include the header ind race so that I don’t replicate > structure definition? > > > On Mar 2, 2020, at 9:28 PM, Ash Gokhale wrote: > > Sort of. You can call the C preprocessor on a dtrace script to reduce some of the

Re: set argument

2020-03-02 Thread Ash Gokhale
> > > 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 > --- > ... > > I want my probe to be able to access the typedeffor struct abc and struct >

Fwd: set argument

2020-03-02 Thread Kamal Prasad
Is it not possible to reuse header files when using dtrace? That is when compiling dtrace, the header is searched for the structs automatically? > Begin forwarded message: > > From: Ash Gokhale > Subject: Re: set argument > Date: March 2, 2020 at 9:28:16 PM GMT+5:30 > To: kam...@acm.org > Cc:

Re: set argument

2020-03-02 Thread Mark Johnston
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

set argument

2020-03-02 Thread Kamal R. Prasad
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; };

Re: set argument

2020-03-02 Thread Mark Johnston
On Mon, Mar 02, 2020 at 10:32:31PM +0530, Kamal Prasad wrote: > In userspace. Where do you provide information so that dtrace can > automatically see sys/net/route.h structs like struct rtentry? > I want to add some more files so that their structs are also automatically > seen by dtrace.

Re: set argument

2020-03-02 Thread Kamal Prasad
If I want to typecast struct reentry from route.h dtrace allows me to access the definition. Can you tell me how without following what to do? thanks -kamal > On Mar 2, 2020, at 9:42 PM, Ash Gokhale wrote: > > > > On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad >

Re: set argument

2020-03-02 Thread Kamal Prasad
There are some headers which are not getting picked up e.g.:- if.h on arm. Even otherwise, if I set WITH_CTF=YES, will include a proprietary header file automatically? You might be having a list somewhere to specify on which files ctfconvert is run when building the kernel. > On Mar 2, 2020,

Re: set argument

2020-03-02 Thread Kamal Prasad
In userspace. Where do you provide information so that dtrace can automatically see sys/net/route.h structs like struct rtentry? I want to add some more files so that their structs are also automatically seen by dtrace. > On Mar 2, 2020, at 9:43 PM, Mark Johnston wrote: > > On Mon, Mar 02,

[Bug 244053] `dtrace -c` causes program dumps core after somewhere between (r357694, r357701]

2020-03-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244053 Kubilay Kocak changed: What|Removed |Added Keywords||crash, needs-qa, regression