Date: Wed, 4 Dec 2013 18:29:39 +0800 (SGT) From: Prashanth Kumar <pra_udupi@yahoo.co.in> To: freebsd-dtrace@freebsd.org Subject: dtrace usdt Message-ID: <1386152979.40087.YahooMailBasic@web192605.mail.sg3.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi Tried running the dtrace usdt example code from freebsd dtrace userland wik= i page. (https://wiki.freebsd.org/DTrace/userland). If run standalone the program segfaults. # ./db=20 Bus error (core dumped)=20 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=3D1 make to build the program. Is there any other steps that i have missed to make t= he program work?. This was tested on FreeBSD 10BETA1 - i386. regards Prashanth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1386152979.40087.YahooMailBasic>