Re: dtrace noob: How is it used?

2017-05-20 Thread Domagoj Stolfa
ps per event) output from the probes? The DTrace Toolkit is largely written with Solaris (now illumos) in mind, so there is a chance that some scripts in there might not work. -- Best regards, Domagoj Stolfa signature.asc Description: PGP signature

Re: fbt:kernel:breadn_flags:entry): invalid address (0x0) in action #7

2017-05-22 Thread Domagoj Stolfa
Hello, > Thats exactly what I did. Could you please supply the full script please? It might give some clue as to where the problem is. -- Best regards, Domagoj Stolfa signature.asc Description: PGP signature

Re: fbt:kernel:breadn_flags:entry): invalid address (0x0) in action #7

2017-05-21 Thread Domagoj Stolfa
Hello, > My problem is: The probe fbt:kernel:breadn_flags:entry should fire in > the case args[6] == 0, the case args[6] != 0 works but is not important > to me. What you want is: fbt:kernel:breadn_flags:entry /args[6] == 0/ { ... } Hope it helps! -- Best regards, Domag

Re: Versions

2018-06-12 Thread Domagoj Stolfa
Hi Michael: Thanks for making the SCTP probes! The 1.6.3 bit probably comes from the version of the API that D exposes, as seen here: https://github.com/freebsd/freebsd/blob/master/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c#L137. Adding new things should probably be done in the

Re: Include header files in dtrace scripts

2018-08-05 Thread Domagoj Stolfa
Hi Farhan: You should call DTrace with -C, which is the C preprocessor: --- #!/usr/sbin/dtrace -Cs #include #include #include #include --- — Domagoj > On 5 Aug 2018, at 06:43, Farhan Khan wrote: > > Hi all, > > I am trying to run dtrace on some net80211

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, > >

Re: DTrace bi-weekly discussion today

2018-09-27 Thread Domagoj Stolfa
Depending on my ability to cycle home quickly enough -- I may or may not be late. — Domagoj > On 27 Sep 2018, at 14:57, George Neville-Neil wrote: > > Howdy, > > We'll be having our bi-weekly DTrace conference call today, 27 Sep 2018 at > 12:00 EST. We'll be using Google Hangouts: > >

Structured/machine-readable output for DTrace

2023-09-06 Thread Domagoj Stolfa
Hi: I've implemented machine-readable output in the form of JSON, XML and HTML into libdtrace, and by extension dtrace(1) using libxo. The goal is not to replace linking to libdtrace in any way when one wishes to build a custom application around it, but rather to supplement it (as it would

Re: Converting int to a string in DTrace

2022-08-30 Thread Domagoj Stolfa
Hi Mateusz: I believe that lltostr might be what you're looking for?         this->unit_number = args[1]->unit_number >= 0 ? lltostr(args[1]->unit_number) : ""; -- Domagoj On 8/30/2022 4:49 PM, Mateusz Piotrowski wrote: Hello everyone, Is it possible to convert an int to a string in

Re: Converting int to a string in DTrace

2022-08-30 Thread Domagoj Stolfa
I'm not sure if it's documented anywhere in FreeBSD itself, but it is documented here: https://illumos.org/books/dtrace/chp-actsub.html. -- Domagoj On 8/30/2022 5:01 PM, Mateusz Piotrowski wrote: Hey Domagoj! On 30. Aug 2022, at 17:58, Domagoj Stolfa wrote:         this->unit_num

Query about work with/on DTrace

2022-11-17 Thread Domagoj Stolfa
Hi: I'm in the process of writing an article for the FreeBSD Journal regarding DTrace and was hoping to get some submissions of what people are working on in what would be called the "exciting new work" part of the article. If you'd like to share your work with a quick summary and link to

Re: USDT support (in build framework)?

2023-03-23 Thread Domagoj Stolfa
Hi: I've done this for bhyve, specifically for virtio-net. I believe this is the whole patch I needed: +OBJS:=bhyve_provider.o ${OBJS} +DTRACE_OBJS=${SRCS:C/\.c/.o/} + +beforelinking: +   dtrace -G -s ${BHYVE_SRCDIR}/bhyve_provider.d ${DTRACE_OBJS} + however, it has been a while and I