Skip site navigation (1)Skip section navigation (2)
Date:      30 Jan 98 05:04:24 +0530
From:      "Atish" <ACHOWDHU.IN.ORACLE.COM.ofcmail@in.oracle.com>
To:        hackers@FreeBSD.ORG
Subject:   Auto-reply: Re: TRUSS
Message-ID:  <199801300049.TAA12696@insun023>

next in thread | raw e-mail | index | archive | help

--=_ORCL_2307531_0_0
Content-Transfer-Encoding:quoted-printable
Content-Type:text/plain; charset="iso-8859-1"

 
Hi, 
	I am on leave till mid Feb'98. Will try to get back to you as soon as 
possible. 
 
-regards 
Atish 
 
#..........................................................................#=
 
 
>From : Atish  Datta  Chowdhury 
       Oracle  Software  Development  Centre 
       India  Development  Centre 
       150  Embassy  Point 
       Bangalore  560001 
 
Telephone: (088) 2256099  Extn:496/atish 
e-mail: achowdhu@in.oracle.com 
 
#..........................................................................#=
 
 
          
 
 


--=_ORCL_2307531_0_0
Content-Type:message/rfc822

Date: 30 Jan 98 04:42:09
From:Sean Eric Fagan <sef@kithrup.com>
To:dcs@gns.com.br
Subject:Re: TRUSS
Cc:hackers@FreeBSD.ORG
Reply-to:INUNIX2.IN.ORACLE.COM:hackers@FreeBSD.ORG 
Received:from inet16.us.oracle.com by insun023 with ESMTP (SMI-8.6/37.8) id SAA12356; Thu, 29 Jan 1998 18:06:40 -0500
Received:from sarip.sol.net (mail@sarip.sol.net [169.207.30.120]) by inet16.us.oracle.com (8.8.5/8.8.5) with ESMTP id PAA06013; Thu, 29 Jan 1998 15:13:47 -0800 (PST)
Received:from hub.freebsd.org (hub.FreeBSD.ORG [204.216.27.18]) by sarip.sol.net (8.8.8/8.8.8/SNNS-1.02) with ESMTP id RAA04835; Thu, 29 Jan 1998 17:13:32 -0600 (CST)
Received:from localhost (daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA13978; Thu, 29 Jan 1998 15:13:29 -0800 (PST) (envelope-from owner-freebsd-hackers)
Received:by hub.freebsd.org (bulk_mailer v1.6); Thu, 29 Jan 1998 15:12:51 -0800
Received:(from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA13625 for hackers-outgoing; Thu, 29 Jan 1998 15:12:49 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG)
Received:from kithrup.com (kithrup.com [205.179.156.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA13546 for <hackers@freebsd.org>; Thu, 29 Jan 1998 15:12:35 -0800 (PST) (envelope-from sef@kithrup.com)
Received:(from sef@localhost) by kithrup.com (8.8.8/8.8.7) id PAA11062; Thu, 29 Jan 1998 15:12:09 -0800 (PST) (envelope-from sef)
Message-Id:<199801292312.PAA11062@kithrup.com>
In-Reply-To:<199801292256.UAA01019.kithrup.freebsd.hackers@daniel.sobral>
Organization:Kithrup Enterprises, Ltd.
Sender:owner-freebsd-hackers@FreeBSD.ORG
X-Loop:FreeBSD.ORG
X-To-Unsubscribe:mail to majordomo@FreeBSD.org "unsubscribe hackers"
MIME-Version: 1.0
Content-Transfer-Encoding:quoted-printable
Content-Type:text/plain; charset="iso-8859-1"

In article <199801292256.UAA01019.kithrup.freebsd.hackers@daniel.sobral> you
write:
>I was playing with truss today, and used it against the program that
>tests my device driver. Surprisingly, it didn't work. Is it possible
>that truss interferes with the normal operation of the driver, or
>should I assume there is, indeed, a bug that does not appear under
>any other conditions (so far tested)?

truss *may* cause problems, timing wise -- the target process is stopped
until
it is restarted, and that may be a problem in your case.

Without more information, I can't quite say, I'm afraid.

But, by itself... no, I can't see truss causing any real problem.  It causes
the process being traced to stop on system call entry, and system call exit.

What do you mean by, "it didn't work"?  (That is, how didn't it work?)

>BTW, I noticed truss gives me hex numbers for all read() parameters,
>but decimal numbers for the first and the third parameters of
>write().

Mainly because I haven't done anything about read().  If you take a look at
/usr/src/usr.bin/truss/syscalls.c (I think it is), there's an entry in the
array for write(), but not read().  By default, truss will print out
arguments
in hex, if it doesn't know any better -- and it can't know any better unless
someone tells it ;).

It's easy enough to change; read() would look something like:

	{ "read", 1, 3, { { Int, 0}, { Ptr|OUT, 1}, { Int, 2}}},

(which breaks down to:

	syscall "read", returns a single value, takes three
	arguments; they are an int at offset 0, a ptr that is
	modified by the syscall at offset 1, and an int at offset
	2.

"Int" is printed out in decimal, and Ptr's are printed out as hex).



--=_ORCL_2307531_0_0--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801300049.TAA12696>