2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afsconfig.h>
11 #include <afs/param.h>
24 #include "rx_globals.h"
27 extern char *rxi_tracename;
36 afs_uint32 servicetime;
42 #include <afs/afsutil.h>
46 main(int argc, char **argv)
54 while (argc && **argv == '-') {
55 if (strcmp(*argv, "-trace") == 0) {
56 strcpy(rxi_tracename, *(++argv));
64 if (err || argc != 0) {
65 printf("usage: dumptrace [-trace pathname]");
69 rxi_logfd = open(rxi_tracename, O_RDONLY);
75 while (read(rxi_logfd, &ip, sizeof(struct rx_trace))) {
76 printf("%9u ", ip.now);
94 printf(" %3u %7u %7u %x.%x\n", ip.qlen, ip.servicetime,
95 ip.waittime, ip.cid, ip.call);