Subject: tracing shared lib calls
To: None <current-users@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: current-users
Date: 09/07/1998 09:54:47
Hi,

i just discovered that Solaris 2.6 has a command to trace shared lib calls
(sotruss):

rfhs8036% sotruss date
date            ->       libc.so.1:*atexit(0xef7d8398, 0x21800, 0x0)
date            ->       libc.so.1:*atexit(0x1156c, 0xef7d8398,
0xef6246d0)
date            ->       libc.so.1:*setlocale(0x6, 0x115ac, 0xef6246c8)
date            ->       libc.so.1:*textdomain(0x115b0, 0x115ac,
0xef6246c8)
date            ->       libc.so.1:*getopt(0x1, 0xeffff7d4, 0x115c0)
date            ->       libc.so.1:*time(0x219a4, 0xeffff7d4, 0x115c0)
date            ->       libc.so.1:*nl_langinfo(0x3a, 0xeffff7d4, 0x219a4)
date            ->       libc.so.1:*localtime(0x219a4, 0x3a, 0xef62227c)
date            ->   libc_psr.so.1:*memcpy(0xeffff744, 0xef628898, 0x24)
date            ->       libc.so.1:*strftime(0x219a8, 0x400, 0xef627368)
date            ->       libc.so.1:*puts(0x219a8, 0x400, 0x0)
Mon Sep  7 09:53:01 MET DST 1998
date            ->       libc.so.1:*exit(0x0, 0xeffff7d4, 0x219a4)

Would be nice if we had such a thing, too. :)

BTW, what came out of ktruss - last time i checked this didn't compile (I
dndn't investigate further).


 - Hubert

-- 
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>