NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/50485: dtrace doesn't work (fails on loading a script, psinfo.d)



The following reply was made to PR lib/50485; it has been noted by GNATS.

From: Richard PALO <richard%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/50485: dtrace doesn't work (fails on loading a script, psinfo.d)
Date: Thu, 04 Aug 2016 07:55:57 +0200

 Le 03/08/16 08:00, Richard PALO a écrit :
 >  > nb32$ sudo dtrace -l|wc  -l
 >  >    45299
 >  > nb32$ sudo dtrace -n BEGIN
 >  > dtrace: invalid probe specifier BEGIN: "/usr/lib/dtrace/psinfo.d", line 46: syntax error near "u_int"
 >  
 
 Applied christos@ patch to dt_module.c things look much better:
 > nb32$ sudo dtrace -n BEGIN
 > dtrace: description 'BEGIN' matched 1 probe
 > CPU     ID                    FUNCTION:NAME
 >   1      1                           :BEGIN 
 > ^C
 > 
 > nb32$ sudo dtrace -s hello.d 
 > dtrace: script 'hello.d' matched 1 probe
 > CPU     ID                    FUNCTION:NAME
 >   1      1                           :BEGIN   Hello world                      
 > 
 
 unfortunately there still seems to be some issues, noticed rebuilding modular-xorg-server
 with dtrace:
 > gmake[2]: Entering directory '/tmp/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.18.4/dix'
 > /usr/sbin/dtrace -G -C -o dtrace-dix.o -s ../dix/Xserver.d .libs/atom.o .libs/colormap.o .libs/cursor.o .libs/devices.o .libs/dispatch.o .libs/dixfonts.o .libs/main.o .libs/dixutils.o .libs/enterleave.o .libs/events.o .libs/eventconvert.o .libs/extension.o .libs/ffs.o .libs/gc.o .libs/getevents.o .libs/globals.o .libs/glyphcurs.o .libs/grabs.o .libs/initatoms.o .libs/inpututils.o .libs/pixmap.o .libs/privates.o .libs/property.o .libs/ptrveloc.o .libs/region.o .libs/registry.o .libs/resource.o .libs/selection.o .libs/swaprep.o .libs/swapreq.o .libs/tables.o .libs/touch.o .libs/window.o
 > dtrace: failed to compile script ../dix/Xserver.d: line 1: syntax error near "long"
 
 I believe 'long' is pulled in via a typedef in sys/types.h
 and is not directly used in Xserver.d
 
 thanks,
 
 -- 
 Richard PALO
 


Home | Main Index | Thread Index | Old Index