Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/cvt Temporarily add a -S ...
details: https://anonhg.NetBSD.org/src/rev/09dd093327b5
branches: trunk
changeset: 327508:09dd093327b5
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 09 19:14:15 2014 +0000
description:
Temporarily add a -S flag to limit the number of threads.
diffstat:
external/cddl/osnet/dist/tools/ctf/cvt/ctfmerge.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 548b7622757d -r 09dd093327b5 external/cddl/osnet/dist/tools/ctf/cvt/ctfmerge.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/ctfmerge.c Sun Mar 09 19:10:01 2014 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/ctfmerge.c Sun Mar 09 19:14:15 2014 +0000
@@ -217,6 +217,7 @@
static int dynsym;
int debug_level = DEBUG_LEVEL;
static size_t maxpgsize = 0x400000;
+static int maxslots = MERGE_PHASE1_MAX_SLOTS;
void
@@ -641,7 +642,7 @@
if (getenv("CTFMERGE_MAX_SLOTS"))
nslots = atoi(getenv("CTFMERGE_MAX_SLOTS"));
else
- nslots = MERGE_PHASE1_MAX_SLOTS;
+ nslots = maxslots;
if (getenv("CTFMERGE_PHASE1_BATCH_SIZE"))
wq->wq_maxbatchsz = atoi(getenv("CTFMERGE_PHASE1_BATCH_SIZE"));
@@ -776,7 +777,7 @@
debug_level = atoi(getenv("CTFMERGE_DEBUG_LEVEL"));
err = 0;
- while ((c = getopt(argc, argv, ":cd:D:fgl:L:o:tvw:s")) != EOF) {
+ while ((c = getopt(argc, argv, ":cd:D:fgl:L:o:tvw:sS:")) != EOF) {
switch (c) {
case 'c':
docopy = 1;
@@ -824,6 +825,9 @@
/* use the dynsym rather than the symtab */
dynsym = CTF_USE_DYNSYM;
break;
+ case 'S':
+ maxslots = atoi(optarg);
+ break;
default:
usage();
exit(2);
Home |
Main Index |
Thread Index |
Old Index