Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: <gdb-patches@sourceware.org>
Subject: Re: [PATCH 0/3 V2] GDB Performance testing
Date: Sun, 06 Oct 2013 01:44:00 -0000	[thread overview]
Message-ID: <5250C00A.20005@codesourcery.com> (raw)
In-Reply-To: <1380119209-25975-1-git-send-email-yao@codesourcery.com>

On 09/25/2013 10:26 PM, Yao Qi wrote:
> Here are some points V2 doesn't address, and I'd like revisit them
> and consider them in the next iteration.
>
>   - Utilities to generate source files.  We need them to generate source
>     files to compose a reasonably sized program for perf testing.  However,
>     current test case doesn't require these utilities.
>   - Generated files, including source files, object files and executables
>     are not removed when the test is done, because the next run may skip
>     compilation step.
>
> The basic usages of performance testing are unchanged, like
>
> $ make check-perf
> $ make check-perf RUNTESTFLAGS="--target_board=native-gdbserver solib.exp"
> $ make check-perf RUNTESTFLAGS="solib.exp SOLIB_COUNT=1024"
>
> We can skip compilation step like this,
>
> $ make check-perf RUNTESTFLAGS='solib.exp GDB_PERFORMANCE_SKIP_COMPILE=yes'
>
> in default, compilation is not skipped.
>
> The skeleton of .exp is like this:
>
> load_lib perftest.exp
>
> if [skip_perf_tests] {
>      return 0
> }
>
> PerfTest::assemble {
>      compile {
>
>        PerfTest::compiled
>      }
>      setup_gdb {
>      }
> } {
>      run {
>      }
> }
>
> PerfTest::assemble is inspired by Dwarf::assemble.  It has three
> procedures, compile, setup_gdb and run.  Each test should fill in
> the body of these three procedures for its purpose.  If variable
> GDB_PERFORMANCE_SKIP_COMPILE exists, the procedure compile is not
> invoked.  If the test case uses pre-compiled program, it can be
> written like this:
>
> PerfTest::assemble {
>      setup_gdb {
>      }
> } {
>      run {
>      }
> }

Ping.  https://sourceware.org/ml/gdb-patches/2013-09/msg00894.html

-- 
Yao (齐尧)


      parent reply	other threads:[~2013-10-06  1:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-25 14:27 Yao Qi
2013-09-25 14:27 ` [PATCH 3/3] Test on solib load and unload Yao Qi
2013-09-27 14:09   ` Gary Benson
2013-09-27 15:16     ` Yao Qi
2013-09-27 15:50       ` Gary Benson
2013-09-25 14:27 ` [PATCH 1/3] New make target 'check-perf' and new dir gdb.perf Yao Qi
2013-10-09  5:13   ` Doug Evans
2013-10-10  0:29     ` Yao Qi
2013-10-15 17:14       ` Doug Evans
2013-09-25 14:27 ` [PATCH 2/3] Perf test framework Yao Qi
2013-10-09  6:37   ` Doug Evans
2013-10-10  3:04     ` Yao Qi
2013-10-15 20:14       ` Doug Evans
2013-10-06  1:44 ` Yao Qi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5250C00A.20005@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox