Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 16781 invoked by uid 6000); 20 Aug 1998 03:36:37 -0000 Received: (qmail 16763 invoked from network); 20 Aug 1998 03:36:36 -0000 Received: from redfish.go2net.com (207.178.55.5) by taz.hyperreal.org with SMTP; 20 Aug 1998 03:36:36 -0000 Received: from marcs by redfish.go2net.com with smtp (Exim 1.82 #2) id 0z9LVX-0003E8-00; Wed, 19 Aug 1998 20:35:27 -0700 Date: Wed, 19 Aug 1998 20:35:27 -0700 (PDT) From: Marc Slemko X-Sender: marcs@redfish To: new-httpd@apache.org Subject: cool: sotruss on solaris (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org For anyone that isn't aware of the below... I like that functionality. ---------- Forwarded message ---------- Date: Wed, 19 Aug 1998 19:38:10 -0700 (PDT) From: Marc Slemko To: someoneorother@go2net.com, Subject: cool: sotruss on solaris it can trace the shared library calls. eg. a.out -> libc.so.1:*atexit(0xef7c8f64, 0x0, 0x0) a.out -> libc.so.1:*atexit(0x11650, 0xef7c8f64, 0xef6250c8) a.out -> libm.so.1:*sqrt(0x40100000, 0x0, 0x11400) a.out -> libc.so.1:*exit(0x0, 0xeffffbf4, 0xeffffbfc) and there is whocalls: marcs@glurk:/tmp$ whocalls time date time(0x219a4, 0xeffffc44, 0x115c0) date:main+0xf0 date:_start+0xdc Wed Aug 19 19:37:13 PDT 1998 And on solaris 2.7, there is a -u option to truss that lets you see normal system calls, eg.: close(3) = 0 close(4) = 0 munmap(0xFF390000, 8192) = 0-> _init(0x0, 0x1334c, 0xff333dd0, 0xff3318a8) <- _init() = 0-> main(0x1, 0xffbefc74, 0xffbefc7c, 0x23800) -> gf(0x0, 0x0, 0x0, 0x0) -> sqrt(0x40000000, 0x0, 0x0, 0x0) <- sqrt() = 0x40000000 -> sqrt(0x40350000, 0x0, 0x40000000, 0x0) <- sqrt() = 0x40350000 <- gf() = 0 ioctl(1, TCGETA, 0xFFBEECE4) = 0 1.300000e+00 write(1, " 1 . 3 0 0 0 0 0 e + 0 0".., 13) = 13 <- main() = 1 -> _fini(0x1, 0xff3dd9a8, 0xff3dd720, 0xff3dc8ec) <- _fini() = 1 llseek(0, 0, SEEK_CUR) = 24630 _exit(1)