Discussion:
DTraceToolkit-0.99 headers
(too old to reply)
Kovalev, Ivan
2011-04-06 23:58:05 UTC
Permalink
Raw Message
I could not find header files for DTraceToolkit-0.99 . In particular, number of scripts under Net are referring to
#include <sys/file.h>
#include <inet/common.h>
#include <sys/types.h>
#include <sys/byteorder.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

It looks like they were meant to be part of the kit? I am running Solaris10 (if it makes any difference).

Thanks.

Ivan
Dan Mick
2011-04-07 01:59:01 UTC
Permalink
Raw Message
Post by Kovalev, Ivan
I could not find header files for DTraceToolkit-0.99 . In particular, number of scripts under Net are referring to
#include<sys/file.h>
#include<inet/common.h>
#include<sys/types.h>
#include<sys/byteorder.h>
#include<sys/socket.h>
#include<sys/socketvar.h>
It looks like they were meant to be part of the kit? I am running Solaris10 (if it makes any difference).
Thanks.
Ivan
_______________________________________________
dtrace-discuss mailing list
Those are standard system headers, and ought to come from /usr/include. Is
there any chance you don't have SUNWhea installed?
Kovalev, Ivan
2011-04-07 15:17:02 UTC
Permalink
Raw Message
Dan,

Thank you. SUNWhea is not installed on most of my servers (big company = big restrictions), none of the headers needed are there. On some servers where this package is present, dtrace itself is not found (SUNWdtrc, SUNWdtrp ). Anyway, these headers are used only in 3 scripts under Net. Connections script works for me (on properly built servers), but two others fail like this:

bash-3.00# ./Net/tcptop
dtrace: failed to compile script /dev/fd/11: line 166: failed to resolve `tcp_g_q: Unknown symbol name
bash-3.00# ./Net/tcpsnoop -p 22185
dtrace: failed to compile script /dev/fd/11: line 173: failed to resolve : Unknown variable name

Thanks.

Ivan

-----Original Message-----
From: Dan Mick [mailto:dan.mick-QHcLZuEGTsvQT0dZR+***@public.gmane.org]
Sent: Wednesday, April 06, 2011 8:59 PM
To: Kovalev, Ivan [CCC-OT_IT]
Cc: 'dtrace-discuss-***@public.gmane.org'
Subject: Re: [dtrace-discuss] DTraceToolkit-0.99 headers
Post by Kovalev, Ivan
I could not find header files for DTraceToolkit-0.99 . In particular, number of scripts under Net are referring to
#include<sys/file.h>
#include<inet/common.h>
#include<sys/types.h>
#include<sys/byteorder.h>
#include<sys/socket.h>
#include<sys/socketvar.h>
It looks like they were meant to be part of the kit? I am running Solaris10 (if it makes any difference).
Thanks.
Ivan
_______________________________________________
dtrace-discuss mailing list
Those are standard system headers, and ought to come from /usr/include. Is
there any chance you don't have SUNWhea installed?
Nico Williams
2011-04-07 15:53:14 UTC
Permalink
Raw Message
I can't think of a reason to not install the headers. And with DTrace
being a tool for root causing _production_ performance (and other)
problems, the headers are that much more valuable.

I once had to deal with systems that lacked manpages because the admin
felt that having manpages installed would be too useful for anyone who
managed to compromise the systems. I thought then that that was
paranoia taken to silly extremes; I still think so.

Nico
--
Andrew Gabriel
2011-04-07 16:05:11 UTC
Permalink
Raw Message
Post by Nico Williams
I can't think of a reason to not install the headers. And with DTrace
being a tool for root causing _production_ performance (and other)
problems, the headers are that much more valuable.
I once had to deal with systems that lacked manpages because the admin
felt that having manpages installed would be too useful for anyone who
managed to compromise the systems. I thought then that that was
paranoia taken to silly extremes; I still think so.
That's still quite common in stripped down Enterprise environments.
--
Andrew Gabriel
Nico Williams
2011-04-07 16:13:35 UTC
Permalink
Raw Message
On Thu, Apr 7, 2011 at 11:05 AM, Andrew Gabriel
Post by Andrew Gabriel
That's still quite common in stripped down Enterprise environments.
I'm aware. Hopefully DTrace can help change that.

Loading...