trace(1) for HP-UX is now available!

trace(1) for HP-UX is now available!

Post by Kartik Subbar » Sun, 30 Oct 1994 05:02:38



Announcing...[drum roll here] trace for HP-UX! Yes, it is now possible to
trace system calls and print them symbolically, to some degree. If you've
used this program at all before, I'm sure you'll be able to put it to
immediate use.

I've ftp'ed trace-1.1.tar.Z to the Interworks drop box
(iworks.ecn.uiowa.edu/pub/drop_box) and mailed the librarian about it.
Hopefully, it'll make its way to the official place soon thereafter.

Here's the README -- happy tracing!

    -Kartik

trace prints out system call (and optionally kernel) traces of programs. It
should compile and run fine on 700s running HP-UX 9.X.

To run the header file generation scripts, you'll need Perl 4.0pl36 or better,
installed as /usr/local/bin/perl.

If you have problems with "too much defining", uncomment HFLAGS in the
Makefile. Older 9.X C compilers had broken a cpp utility.

Also, make sure you aren't running an ANSI cpp, or you will get a bunch of
undefined symbols.

If you encounter undefined ioctls, just comment them out and send me mail
about them and what version of HP-UX you're running. fixheader will make
sure that nonexistent header files aren't included.

trace needs to be installed setuid root so that users can run it.

I would appreciate any feedback, comments, suggestions, etc.

--
Kartik Subbarao, Workstation Systems Division, Hewlett-Packard

 
 
 

trace(1) for HP-UX is now available!

Post by Christian Fing » Mon, 31 Oct 1994 06:01:12



> Announcing...[drum roll here] trace for HP-UX! Yes, it is now possible to
> trace system calls and print them symbolically, to some degree. If you've
> used this program at all before, I'm sure you'll be able to put it to
> immediate use.
> I've ftp'ed trace-1.1.tar.Z to the Interworks drop box
> (iworks.ecn.uiowa.edu/pub/drop_box) and mailed the librarian about it.
> Hopefully, it'll make its way to the official place soon thereafter.

Since I couldn't wait, I got it from /pub/drop_box.

Quote:> [...]
> I would appreciate any feedback, comments, suggestions, etc.

I'm amazed.  It works without any problems (beside the one mentioned in
the man page).  I hope, the PTRACE_SYSCALL function of ptrace() will be
implemented in HP-UX soon (*), so that the limitiations of using the KI
interface (e.g.  the string used as argument to write(2) can't be
decoded, midaemon must not run at the same time) could be overcome.

Thanx for this tool !

Ciao,
   Christian

(*) HP expects HP-UX 10.x to be released "late next year" :-(
--
  .     Christian Finger                     Computer Center (G20.21 R318)

\|||    Tel   : (+49) 721/608-6114  -4038    Postfach 6980
    /   Fax   : (+49) 721/32550              D-76128 Karlsruhe, Germany

 
 
 

trace(1) for HP-UX is now available!

Post by Kartik Subbar » Wed, 02 Nov 1994 00:48:32




>To run the header file generation scripts, you'll need Perl 4.0pl36 or better,
>installed as /usr/local/bin/perl.

I thought I caught this before I released it, but apparently not. If you're
using Perl5, you'll need to make this small change to a line in printsyms:

print "\nchar *$name[] = { ";

should be

print "\nchar *$name\[] = { ";

I'll wait a bit to see if there are any other issues, and I'll ftp it again
with this change.

    -Kartik

 
 
 

trace(1) for HP-UX is now available!

Post by Danny R. Faug » Fri, 04 Nov 1994 00:14:57




>trace needs to be installed setuid root so that users can run it.

This line from the Makefile appears to be a suggestion:

        # ./chown root trace; ./chmod 4777 trace

But chmod 4777 is always a bad suggestion.  I'm not sure what ./ is
for either.

As suggested, I tried perl 4.36 and perl 5.0 to run the perl scripts,
but neither worked:

Quote:> make

        fixinclude ioctls.default.h > ioctls.h
fixinclude: syntax error at line 4: `(' unexpected

But I changed back to 4.34 which was already installed on my system
anyway, and it worked fine.

But other than these few picky things, it looks great so far!

(please note followups)
--
Danny Faught -- Convex -- SPPUX Test Development
"Everything is deeply intertwingled."  (Ted Nelson, _Computer Lib_)

 
 
 

1. trace 1.6 available for HP-UX 10.20

I've uploaded trace 1.6, which runs on HP-UX 10.20, on all s700s and
*SOME* s800s, to the drop box at interworks. You can get it right now at:

ftp://ftp.interworks.org/pub/drop_box/trace-1.6.tar.Z

When the librarian gets a chance to move it over, it will be in the canonical
pub/comp.hp/ location, and will soon be mirrored by the other HP-UX archives.

Let me cover a couple frequently asked questions that I get in email.

Q: Does trace run on HP-UX 10.01?

A: No. Having limited time to do the 10.X port, I chose the most current
version at the time, which was 10.10. trace-1.6 now runs on 10.20. It will
run on 10.10 when linked with ki.1010.o, and will run on 9.X (s700 only), when
linked with ki.9.o.

Q: Does trace run on s800 systems?

A: Not on 9.04, and only some running 10.X. Where it doesn't work, you might
get error messages like KI_TRACE_GET: Not enough space, or other similar ones.
I am aware of this, but have not found a way to fix the problem reliably.

Here's the README:

trace prints out system call (and optionally kernel) traces of programs. It
compiles and installs fairly easily. trace has been updated to run on HPUX
10.20. It runs on 700s and some 800s. If you need to run it under 9.X on a
700, you'll need to link with the old ki.o, shipped as ki.9.o. For 10.10,
link with ki.1010.o.

To run the header file generation scripts, you'll need Perl 4.0pl36 or better,
installed as /usr/local/bin/perl.

If you encounter undefined ioctls, just comment them out and send me mail
about them and what version of HP-UX you're running. fixheader will make
sure that nonexistent header files aren't included.

trace needs to be installed setuid root so that users can run it.

The KI code, provided in object format, is copyright Hewlett-Packard. The
software is provided as is, subject to change without notice, and totally
unsupported.

I would appreciate any feedback, comments, suggestions, etc.

    -Kartik

--
Kartik Subbarao, Internet Solution Center, Hewlett-Packard

2. automate mail to someone

3. trace 1.5 for HP-UX 10.10 available!

4. How to permanently set sound card level?

5. trace 1.3 for HP-UX available!

6. 4.3.1 -> 4.3.2

7. Difference between HP-UX 10.10 and HP-UX 10.20

8. Setting up development environment

9. trace(1) on hp-ux?

10. tracing system calls on hp-ux

11. Stack trace program needed for Solaris 2.4 / HP-UX 9.0

12. tcpmux available on HP-UX?

13. The Coroner's Toolkit available for HP-UX 10.20