Re: Filter out dtrace(1) probes

2018-08-17 Thread Ash Gokhale
>
>
> > On 17 Aug 2018, at 00:49, Farhan Khan  wrote:
> >
> > Hi all,
> >
> > Is it possible to filter out probes?
> > For example, if I did:
> >
> > dtrace -n 'fbt:kernel::entry { something_here }'
>

Sure,  try extending this:

dtrace -n 'fbt:kernel:read*:entry /probefunc != "read_cpu_time"  &&
probefunc != "readdep"/ {@[probefunc]=count();}'

Altough fbt::kernel::entry is going to mach a _lot_ of probes. Unless you
are looking for a simple kernel function use count  this is probably going
to overload the data collection plumbing. You should probably narrow your
probe list based on what you are hunting.  Also fbt:kernel::entry is only
going to get core freebsd calls, excluding all loadable modules  (zfs.ko
..) . if you really want all kernel functions,  use fbt:::entry, as blank
entries are wildcards.
___
freebsd-dtrace@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
To unsubscribe, send any mail to "freebsd-dtrace-unsubscr...@freebsd.org"


Re: Filter out dtrace(1) probes

2018-08-16 Thread Domagoj Stolfa
Hi Farhan:

I'm not sure what the question is, but by what I understood it sounds like a 
predicate with probefunc should do?

i.e.:

prov:mod:func:name
/probefunc != "something_i_dont_care_about"/
{
  something_here
}

—
Domagoj

> On 17 Aug 2018, at 00:49, Farhan Khan  wrote:
> 
> Hi all,
> 
> Is it possible to filter out probes?
> For example, if I did:
> 
> dtrace -n 'fbt:kernel::entry { something_here }'
> 
> but I specifically do not want fbt:entry:SOMETHING:entry, is that
> possible? I know that I can run grep -v, but it still shows the output
> from "something_here".
> 
> Thank you,
> --
> Farhan Khan
> PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE
> ___
> freebsd-dtrace@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
> To unsubscribe, send any mail to "freebsd-dtrace-unsubscr...@freebsd.org"



signature.asc
Description: Message signed with OpenPGP


Filter out dtrace(1) probes

2018-08-16 Thread Farhan Khan
Hi all,

Is it possible to filter out probes?
For example, if I did:

dtrace -n 'fbt:kernel::entry { something_here }'

but I specifically do not want fbt:entry:SOMETHING:entry, is that
possible? I know that I can run grep -v, but it still shows the output
from "something_here".

Thank you,
--
Farhan Khan
PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE
___
freebsd-dtrace@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
To unsubscribe, send any mail to "freebsd-dtrace-unsubscr...@freebsd.org"