2 ****************************************************************************
3 * Copyright IBM Corporation 1988, 1989 - All Rights Reserved *
5 * Permission to use, copy, modify, and distribute this software and its *
6 * documentation for any purpose and without fee is hereby granted, *
7 * provided that the above copyright notice appear in all copies and *
8 * that both that copyright notice and this permission notice appear in *
9 * supporting documentation, and that the name of IBM not be used in *
10 * advertising or publicity pertaining to distribution of the software *
11 * without specific, written prior permission. *
13 * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL *
14 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL IBM *
15 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY *
16 * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER *
17 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING *
18 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
19 ****************************************************************************
22 #define RXDEBUG 1 /* XXX fix abi */
29 main(int argc
, char **argv
)
38 while (argc
&& **argv
== '-') {
39 if (strcmp(*argv
, "-trace") == 0) {
40 strlcpy(rxi_tracename
, *(++argv
), sizeof(rxi_tracename
));
48 if (error
|| argc
!= 0) {
49 printf("usage: dumptrace [-trace pathname]");
52 fd
= open(rxi_tracename
, O_RDONLY
);
57 while (read(fd
, &ip
, sizeof(struct rx_trace
))) {
58 printf("%9u ", (unsigned)ip
.now
);
76 printf(" %3u %7u %7u %lx.%x\n",
78 (unsigned)ip
.servicetime
,
79 (unsigned)ip
.waittime
,