From owner-freebsd-threads@FreeBSD.ORG Tue Jul 15 01:52:41 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 508AB37B401 for ; Tue, 15 Jul 2003 01:52:41 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFB2943F3F for ; Tue, 15 Jul 2003 01:52:40 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc12t.dialup.mindspring.com ([209.86.4.93] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19cLY2-0000Rg-00; Tue, 15 Jul 2003 01:52:36 -0700 Message-ID: <3F13C04F.EF0D2649@mindspring.com> Date: Tue, 15 Jul 2003 01:50:23 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Daniel Eischen References: Content-Type: multipart/mixed; boundary="------------6C4224CCB339F4B7608C57C1" X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42243b7f433c7c6cb224d6fb4358c870a350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: Kai Mosebach cc: freebsd-threads@freebsd.org Subject: Re: truss says null() X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 08:52:41 -0000 This is a multi-part message in MIME format. --------------6C4224CCB339F4B7608C57C1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Daniel Eischen wrote: > On Tue, 15 Jul 2003, Kai Mosebach wrote: > > (null)() = 383 (0x17f) > > I don't know what the (null)'s are. What does > ktrace show? The normal cause of this is a system call has been added, and truss was not updated. It needs to be given the names of the system calls for it to be able to display them. It could probably be a little more graceful about it, and cons up a name, instead, when it gets stale relative to the system (I have attached the patch I use locally for this, if you want to commit something like it; it's probably more proper to increase the number of arguments by one and shift them all, and change the name of the system call to "syscall", rather than do it this way, but it's enough to pass you the information you need). Note that applying this patch and recompiling will make applying this patch unnecessary. 8-). But if you commit it (or the "right" one, described above), it will be there for the next person who has the same problem. If you don't care about that, then just go to /usr/src/usr.bin/truss and "make clean all install". -- Terry --------------6C4224CCB339F4B7608C57C1 Content-Type: text/plain; charset=us-ascii; name="truss.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="truss.diff" 225,231c225 < if (fsc.name == NULL) { < static char xbuf[20]; < snprintf(buf, sizeof(xbuf), "syscall(%d)", fsc.number); < print_syscall(outfile, xbuf, fsc.nargs, fsc.s_args); < } else { < print_syscall(outfile, fsc.name, fsc.nargs, fsc.s_args); < } --- > print_syscall(outfile, fsc.name, fsc.nargs, fsc.s_args); --------------6C4224CCB339F4B7608C57C1--