mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
tests: sprinkle igt logging
All the cases that simply dump some debug information and couldn't be converted to some of the fancier macros. Some information output removed when it's redundant with the subtest status. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+8
-8
@@ -123,10 +123,10 @@ int main(int argc, char **argv)
|
||||
gettimeofday(&start, NULL);
|
||||
do_gem_write(fd, dst, src, object_size, count);
|
||||
gettimeofday(&end, NULL);
|
||||
printf("Time to pwrite %d bytes x %6d: %7.3fµs, %s\n",
|
||||
object_size, count,
|
||||
elapsed(&start, &end, count),
|
||||
bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
|
||||
igt_info("Time to pwrite %d bytes x %6d: %7.3fµs, %s\n",
|
||||
object_size, count,
|
||||
elapsed(&start, &end, count),
|
||||
bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
|
||||
fflush(stdout);
|
||||
}
|
||||
}
|
||||
@@ -141,10 +141,10 @@ int main(int argc, char **argv)
|
||||
gettimeofday(&start, NULL);
|
||||
do_gem_write(fd, dst, src, object_size, count);
|
||||
gettimeofday(&end, NULL);
|
||||
printf("Time to %s pwrite %d bytes x %6d: %7.3fµs, %s\n",
|
||||
c->name, object_size, count,
|
||||
elapsed(&start, &end, count),
|
||||
bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
|
||||
igt_info("Time to %s pwrite %d bytes x %6d: %7.3fµs, %s\n",
|
||||
c->name, object_size, count,
|
||||
elapsed(&start, &end, count),
|
||||
bytes_per_sec((char *)buf, object_size/elapsed(&start, &end, count)*1e6));
|
||||
fflush(stdout);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user