This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Tracepoint speed test
- From: Stan Shebs <stanshebs at earthlink dot net>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 08 Sep 2011 15:35:56 -0700
- Subject: [PATCH] Tracepoint speed test
This patch adds a test of tracepoint speed to the testsuite. It's a
little complicated, because it exercises both slow and fast tracepoints,
it attempts to adjust its looping time to accommodate different kinds of
hardware, and the test program is set up to be useful for interactive
experimentation as well. So I'm going to leave it up for review for a
week or so, in case anybody has any questions or comments.
There are a couple things to note: 1) it adjusts loop iterations by
simply doubling the number until the test loops run for at least a
second each, with a couple checks to keep it from getting out of hand,
and 2) it uses getrusage to compute CPU time. While it seems
appropriate to conditionalize this from configure, I note that our test
cases never seem to use configury, instead just letting the compilation
fail and the test return early.
Stan
stan@codesourcery.com
2011-09-08 Stan Shebs <stan@codesourcery.com>
* gdb.trace/tspeed.exp: New file.
* gdb.trace/tspeed.c: New file.
Attachment:
tspeed-patch-1
Description: Text document