mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
hsbench: fix flag handling
This commit is contained in:
parent
86e7acd4dd
commit
47ec449f85
@ -205,7 +205,7 @@ static
|
||||
void processArgs(int argc, char *argv[], vector<BenchmarkSigs> &sigSets,
|
||||
UNUSED unique_ptr<Grey> &grey) {
|
||||
const char options[] = "-b:c:Cd:e:E:G:hi:n:No:p:sVw:z:"
|
||||
#if HAVE_DECL_PTHREAD_SETAFFINITY_N
|
||||
#ifdef HAVE_DECL_PTHREAD_SETAFFINITY_NP
|
||||
"T:" // add the thread flag
|
||||
#endif
|
||||
;
|
||||
@ -287,6 +287,7 @@ void processArgs(int argc, char *argv[], vector<BenchmarkSigs> &sigSets,
|
||||
case 'V':
|
||||
scan_mode = ScanMode::VECTORED;
|
||||
break;
|
||||
#ifdef HAVE_DECL_PTHREAD_SETAFFINITY_NP
|
||||
case 'T':
|
||||
if (!strToList(optarg, threadCores)) {
|
||||
usage("Couldn't parse argument to -T flag, should be"
|
||||
@ -294,6 +295,7 @@ void processArgs(int argc, char *argv[], vector<BenchmarkSigs> &sigSets,
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
case 'z': {
|
||||
unsigned int sinumber;
|
||||
if (!fromString(optarg, sinumber)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user