Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-10]: src/usr.sbin/tprof Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/5d356f5688ec
branches: netbsd-10
changeset: 372789:5d356f5688ec
user: martin <martin%NetBSD.org@localhost>
date: Mon Dec 26 11:23:56 2022 +0000
description:
Pull up following revision(s) (requested by ryo in ticket #24):
usr.sbin/tprof/tprof.c: revision 1.19
usr.sbin/tprof/tprof.c: revision 1.20
Reflect recent new options for top operation, add a and c
fixed parsing of event options.
if event option was specivied, it was stuck in a busy loop.
diffstat:
usr.sbin/tprof/tprof.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 06c357dd0856 -r 5d356f5688ec usr.sbin/tprof/tprof.c
--- a/usr.sbin/tprof/tprof.c Mon Dec 26 11:20:59 2022 +0000
+++ b/usr.sbin/tprof/tprof.c Mon Dec 26 11:23:56 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tprof.c,v 1.18 2022/12/16 08:02:04 ryo Exp $ */
+/* $NetBSD: tprof.c,v 1.18.2.1 2022/12/26 11:23:56 martin Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: tprof.c,v 1.18 2022/12/16 08:02:04 ryo Exp $");
+__RCSID("$NetBSD: tprof.c,v 1.18.2.1 2022/12/26 11:23:56 martin Exp $");
#endif /* not lint */
#include <sys/atomic.h>
@@ -133,7 +133,7 @@
" only outputs a counter.\n");
fprintf(stderr, "\tanalyze [-CkLPs] [-p pid] file\n");
fprintf(stderr, "\t\tAnalyze the samples of the file 'file'.\n");
- fprintf(stderr, "\ttop [-e name [-e ...]] [-i interval] [-u]\n");
+ fprintf(stderr, "\ttop [-e name [-e ...]] [-i interval] [-acu]\n");
fprintf(stderr, "\t\tDisplay profiling results in real-time.\n");
exit(EXIT_FAILURE);
}
@@ -310,6 +310,7 @@
"invalid option: '%c'", *opt);
goto done;
}
+ opt++;
}
} else if (allow_option) {
param->p_flags |= TPROF_PARAM_USER;
Home |
Main Index |
Thread Index |
Old Index