summaryrefslogtreecommitdiff
path: root/benchmarks/gem_wsim.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-06-05 08:00:52 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-06-08 09:03:05 +0100
commitdd5a378f683e23680939f5ea71697be67be58595 (patch)
tree02958fd2c33c4bb1145f1c09be3e8e7fbe951f8b /benchmarks/gem_wsim.c
parentd8c6cf9fc05eef415c79529f50b6e6a1487ade88 (diff)
gem_wsim: Added missing -H help text
Also check that the usage makes sense. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'benchmarks/gem_wsim.c')
-rw-r--r--benchmarks/gem_wsim.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index 298e788c..f9c4b526 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -1789,6 +1789,8 @@ static void print_help(void)
" number as listed above.\n"
" -2 Remap VCS2 to BCS.\n"
" -R Round-robin initial VCS assignment per client.\n"
+" -H Send heartbeat on synchronisation points with seqno based\n"
+" balancers. Gives better engine busyness view in some cases.\n"
" -S Synchronize the sequence of random batch durations between\n"
" clients.\n"
" -G Global load balancing - a single load balancer will be shared\n"
@@ -2021,6 +2023,12 @@ int main(int argc, char **argv)
}
}
+ if ((flags & HEARTBEAT) && !(flags & SEQNO)) {
+ if (verbose)
+ fprintf(stderr, "Heartbeat needs a seqno based balancer!\n");
+ return 1;
+ }
+
if (!nop_calibration) {
if (verbose > 1)
printf("Calibrating nop delay with %u%% tolerance...\n",