diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-03-30 11:09:44 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-03-30 11:11:20 +0100 |
commit | 9c6e6db03d41d3e075b0e231302810e522854817 (patch) | |
tree | 7fe6c00816fdc736d1b0a8f9d43bed2f79def2ed /tests | |
parent | 068f9ceb628b3d721bf3d74c7932afc01a70905c (diff) |
Revert "tests/gem_exec_lut_handle"
This reverts commit a5934091b84e3f8804fb3fed35374c5a976dd07e.
Unnerf igt/gem_exec_lut_handle. Sadly completely breaking the
measurement is not a good excuse to hide regressions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_exec_lut_handle.c | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/tests/gem_exec_lut_handle.c b/tests/gem_exec_lut_handle.c index e2e31f23..c2d490f9 100644 --- a/tests/gem_exec_lut_handle.c +++ b/tests/gem_exec_lut_handle.c @@ -113,32 +113,9 @@ static int exec(int fd, int num_exec, int num_relocs, unsigned flags) &execbuf); } -int repeats = 10; - -static int opt_handler(int opt, int opt_index) -{ - switch (opt) { - case 'r': - igt_warn("meh\n"); - repeats = atoi(optarg); - igt_warn("meh\n"); - break; - default: - igt_assert(0); - } - - return 0; -} - #define ELAPSED(a,b) (1e6*((b)->tv_sec - (a)->tv_sec) + ((b)->tv_usec - (a)->tv_usec)) -int main(int argc, char **argv) +igt_simple_main { - const char *help_str = - " --repeats\t\tNumber of repeats to run the microbenchmarks for."; - static struct option long_options[] = { - {"repeats", 1, 0, 'r'}, - { 0, 0, 0, 0 } - }; uint32_t batch[2] = {MI_BATCH_BUFFER_END}; int fd, n, m, count; const struct { @@ -151,9 +128,6 @@ int main(int argc, char **argv) { .name = NULL }, }, *p; - igt_simple_init_parse_opts(&argc, argv, "", long_options, - help_str, opt_handler); - igt_skip_on_simulation(); fd = drm_open_any(); @@ -186,7 +160,7 @@ int main(int argc, char **argv) do_or_die(exec(fd, n, m, 0 | p->flags)); gettimeofday(&start, NULL); - for (count = 0; count < repeats; count++) + for (count = 0; count < 1000; count++) do_or_die(exec(fd, n, m, 0 | p->flags)); gettimeofday(&end, NULL); gem_sync(fd, gem_exec[MAX_NUM_EXEC].handle); @@ -194,7 +168,7 @@ int main(int argc, char **argv) do_or_die(exec(fd, n, m, USE_LUT | p->flags)); gettimeofday(&start, NULL); - for (count = 0; count < repeats; count++) + for (count = 0; count < 1000; count++) do_or_die(exec(fd, n, m, USE_LUT | p->flags)); gettimeofday(&end, NULL); gem_sync(fd, gem_exec[MAX_NUM_EXEC].handle); @@ -230,10 +204,4 @@ int main(int argc, char **argv) igt_info("\n"); } } - - igt_info("Used %i rounds for testing.\n" - "Increase for more accurate results when microbenchmarking with --repeats\n", - repeats); - - igt_exit(); } |