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>
18 #include <afs/afsutil.h>
21 #include "rx_globals.h"
24 extern char *rxi_tracename;
33 afs_uint32 servicetime;
38 main(int argc, char **argv)
46 while (argc && **argv == '-') {
47 if (strcmp(*argv, "-trace") == 0) {
48 strcpy(rxi_tracename, *(++argv));
56 if (err || argc != 0) {
57 printf("usage: dumptrace [-trace pathname]");
61 rxi_logfd = open(rxi_tracename, O_RDONLY);
67 while (read(rxi_logfd, &ip, sizeof(struct rx_trace))) {
68 printf("%9u ", ip.now);
86 printf(" %3u %7u %7u %x.%x\n", ip.qlen, ip.servicetime,
87 ip.waittime, ip.cid, ip.call);