From 63e9752cb5df26bc1a195feff92ad09f6d07482a Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 27 Jun 2005 23:28:48 +0000 Subject: 2005-06-27 Martin Hunt * stpd.c (main): Add new command line arg, "-m" to disable the per-cpu merging. * librelay.c (merge_output): Replacement for sort_output(). Efficiently merges per-cpu streams. --- runtime/stpd/stpd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'runtime/stpd/stpd.c') diff --git a/runtime/stpd/stpd.c b/runtime/stpd/stpd.c index c31019d7..8fb1700e 100644 --- a/runtime/stpd/stpd.c +++ b/runtime/stpd/stpd.c @@ -31,7 +31,7 @@ extern int optind; int print_only = 0; int quiet = 0; -int transport_mode = 0; +int merge = 1; /* relayfs base file name */ static char stpd_filebase[1024]; @@ -39,6 +39,7 @@ static char stpd_filebase[1024]; static void usage(char *prog) { fprintf(stderr, "%s [-p] [-q] kmod-name\n", prog); + fprintf(stderr, "-m Don't merge per-cpu files.\n"); fprintf(stderr, "-p Print only. Don't log to files.\n"); fprintf(stderr, "-q Quiet. Don't display trace to stdout.\n"); exit(1); @@ -49,9 +50,12 @@ int main(int argc, char **argv) int c; char *modname = NULL; - while ((c = getopt(argc, argv, "pq")) != EOF) + while ((c = getopt(argc, argv, "mpq")) != EOF) { switch (c) { + case 'm': + merge = 0; + break; case 'p': print_only = 1; break; -- cgit