From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17105 invoked by alias); 16 Oct 2013 07:10:40 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 17092 invoked by uid 89); 16 Oct 2013 07:10:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 Oct 2013 07:10:38 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1VWLFa-0002ml-VR from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 16 Oct 2013 00:10:34 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 16 Oct 2013 00:10:34 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.2.247.3; Wed, 16 Oct 2013 00:10:34 -0700 From: Yao Qi To: Subject: [PATCH 0/4 V3] GDB Performance testing Date: Wed, 16 Oct 2013 07:10:00 -0000 Message-ID: <1381907353-30013-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00470.txt.bz2 Hi, Here is the V3 of GDB performance testing. The changes in V3 can be found in each patch, and they address all review comments. The basic usages of performance testing are unchanged, $ make check-perf $ make check-perf RUNTESTFLAGS="--target_board=native-gdbserver solib.exp" $ make check-perf RUNTESTFLAGS="solib.exp SOLIB_COUNT=512" We can skip compilation step like, $ make check-perf RUNTESTFLAGS='solib.exp GDB_PERFORMANCE=run' or only compile test cases, $ make check-perf RUNTESTFLAGS='solib.exp GDB_PERFORMANCE=compile' in default, GDB_PERFORMANCE=both. If the perf test case takes much time, we can specify timeout by GDB_PERFORMANCE_TIMEOUT=1000. $ make check-perf RUNTESTFLAGS="--target_board=native-gdbserver GDB_PERFORMANCE_TIMEOUT=4000 solib.exp" Looks the perf test framework is in shape, so I add the patch to testsuite/README to describe perf test. The output in testsuite/perftest.log is like this: solib_load cpu_time 32 0.05 solib_load cpu_time 64 0.13 solib_load cpu_time 128 0.36 solib_load cpu_time 256 1.16 solib_load cpu_time 512 4.93 solib_load wall_time 32 0.0982959270477 solib_load wall_time 64 0.261036157608 solib_load wall_time 128 0.848724126816 solib_load wall_time 256 3.21620082855 solib_load wall_time 512 15.2153270245 solib_load vmsize 32 94632 solib_load vmsize 64 94652 solib_load vmsize 128 94696 solib_load vmsize 256 94780 solib_load vmsize 512 110664 solib_unload cpu_time 32 0.03 solib_unload cpu_time 64 0.08 solib_unload cpu_time 128 0.22 solib_unload cpu_time 256 0.74 solib_unload cpu_time 512 2.64 solib_unload wall_time 32 0.0625808238983 solib_unload wall_time 64 0.183571815491 solib_unload wall_time 128 0.655772924423 solib_unload wall_time 256 2.67978000641 solib_unload wall_time 512 12.8180861473 solib_unload vmsize 32 109648 solib_unload vmsize 64 109648 solib_unload vmsize 128 109648 solib_unload vmsize 256 109648 solib_unload vmsize 512 110440 *** BLURB HERE *** Yao Qi (4): New make target 'check-perf' and new dir gdb.perf Perf test framework Mention perf test in testsuite/README Test on solib load and unload gdb/Makefile.in | 8 + gdb/testsuite/Makefile.in | 4 + gdb/testsuite/README | 27 ++++ gdb/testsuite/configure | 3 +- gdb/testsuite/configure.ac | 2 +- gdb/testsuite/gdb.perf/Makefile.in | 15 ++ gdb/testsuite/gdb.perf/lib/perftest/__init__.py | 17 +++ gdb/testsuite/gdb.perf/lib/perftest/measure.py | 146 ++++++++++++++++++++ gdb/testsuite/gdb.perf/lib/perftest/perftest.py | 72 ++++++++++ gdb/testsuite/gdb.perf/lib/perftest/reporter.py | 64 +++++++++ gdb/testsuite/gdb.perf/lib/perftest/testresult.py | 57 ++++++++ gdb/testsuite/gdb.perf/solib.c | 78 +++++++++++ gdb/testsuite/gdb.perf/solib.exp | 78 +++++++++++ gdb/testsuite/gdb.perf/solib.py | 73 ++++++++++ gdb/testsuite/lib/gdb.exp | 16 +++ gdb/testsuite/lib/perftest.exp | 148 +++++++++++++++++++++ 16 files changed, 806 insertions(+), 2 deletions(-) create mode 100644 gdb/testsuite/gdb.perf/Makefile.in create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/__init__.py create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/measure.py create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/perftest.py create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/reporter.py create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/testresult.py create mode 100644 gdb/testsuite/gdb.perf/solib.c create mode 100644 gdb/testsuite/gdb.perf/solib.exp create mode 100644 gdb/testsuite/gdb.perf/solib.py create mode 100644 gdb/testsuite/lib/perftest.exp -- 1.7.7.6