summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-05-16 17:08:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-05-24 10:49:49 +0100
commitc4f61ff9e18594b720f983d1a9e9f85a4bcc4f7e (patch)
tree60c330b11aa9e62d9230b1bd3ab29b8230801c00 /benchmarks
parent941b32ebbcae1bd910b9874e3f6eda867f050589 (diff)
benchmarks/gem_syslatency: Allow limiting to just 1 CPU hog
Normally we use a hog per CPU to ensure that the system is fully loaded to see how much latency we cause. For simple sanitychecking, allow ourselves to limit it to just one CPU hog. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/gem_syslatency.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index 62704264..6d520bfe 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -316,8 +316,11 @@ int main(int argc, char **argv)
bool interrupts = false;
int n, c;
- while ((c = getopt(argc, argv, "t:f:bmni")) != -1) {
+ while ((c = getopt(argc, argv, "t:f:bmni1")) != -1) {
switch (c) {
+ case '1':
+ ncpus = 1;
+ break;
case 'n': /* dry run, measure baseline system latency */
enable_gem_sysbusy = 0;
break;