dtrace usdt
Michael Harsch
michaelharsch at hotmail.com
Wed Dec 4 17:43:13 UTC 2013
Hi Prashanth,
I've reproduced this on 10.0BETA4. It appears to be specific to i386;
the same test works fine on amd64.
On Wed, Dec 4, 2013 at 3:29 AM, Prashanth Kumar <pra_udupi at yahoo.co.in> wrote:
> Hi
> Tried running the dtrace usdt example code from freebsd dtrace userland wiki page.
> (https://wiki.freebsd.org/DTrace/userland).
>
> If run standalone the program segfaults.
> # ./db
> Bus error (core dumped)
>
> If run with dtrace
>
> # dtrace -s db.d -c ./db
> dtrace: script 'db.d' matched 2 probes
> CPU ID FUNCTION:NAME
> 0 43245 main:query-start Query: SELECT * FROM apples
>
> the program hungs after printing the first probe.
>
> Had to use the following command
> # env WITH_DTRACE=1 make
>
> to build the program. Is there any other steps that i have missed to make the program work?.
> This was tested on FreeBSD 10BETA1 - i386.
>
> regards
> Prashanth
> _______________________________________________
> freebsd-dtrace at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
> To unsubscribe, send any mail to "freebsd-dtrace-unsubscribe at freebsd.org"
>
More information about the freebsd-dtrace
mailing list