Chapter 25 (proc Provider) of the SDTG has tables that describe the contents of psinfo_t and lwpsinfo_t, as returned by the proc provider. However, I see no corresponding table for siginfo_t. Is one available? -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development
As an example, take a look at "Using DTrace to Demystify Watchpoints in the Sun Studio dbx Debugger": http://developers.sun.com/solaris/articles/demistify_watch_points.html You should be able to get the contents of siginfo_t from /usr/include/sys/siginfo.h on Solaris, I believe OSX has the corresponding header file. Rayson On Nov 25, 2007 12:38 AM, Rich Morin <rdm at cfcl.com> wrote:> Chapter 25 (proc Provider) of the SDTG has tables that describe > the contents of psinfo_t and lwpsinfo_t, as returned by the proc > provider. However, I see no corresponding table for siginfo_t. > Is one available? > > -r > -- > http://www.cfcl.com/rdm Rich Morin > http://www.cfcl.com/rdm/resume rdm at cfcl.com > http://www.cfcl.com/rdm/weblog +1 650-873-7841 > > Technical editing and writing, programming, and web development > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
At 11:39 -0500 11/25/07, Rayson Ho wrote:> You should be able to get the contents of siginfo_t from > /usr/include/sys/siginfo.h on Solaris, I believe OSX has > the corresponding header file.Not as far as I can tell. Both % du -a /usr | grep siginfo and % grep -qr siginfo /usr come up dry on Mac OS X 10.5. -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development
On Nov 25, 2007, at 5:01 PM, Rich Morin wrote:> At 11:39 -0500 11/25/07, Rayson Ho wrote: >> You should be able to get the contents of siginfo_t from >> /usr/include/sys/siginfo.h on Solaris, I believe OSX has >> the corresponding header file.Beginning at line 200 of "/usr/include/sys/signal.h": typedef struct __siginfo { int si_signo; /* signal number */ int si_errno; /* errno association */ int si_code; /* signal code */ pid_t si_pid; /* sending process */ uid_t si_uid; /* sender''s ruid */ int si_status; /* exit value */ void *si_addr; /* faulting instruction */ union sigval si_value; /* signal value */ long si_band; /* band event for SIGPOLL */ unsigned long __pad[7]; /* Reserved for Future Use */ } siginfo_t;>> > > Not as far as I can tell. Both > > % du -a /usr | grep siginfo > > and > > % grep -qr siginfo /usr > > come up dry on Mac OS X 10.5.But % grep -r siginfo /usr nails it: /usr/include/sys/signal.h:typedef struct __siginfo { /usr/include/sys/signal.h:} siginfo_t; SCP -- Steve Peters scp at mac.com