From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28461 invoked by alias); 5 Jul 2005 00:07:03 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28402 invoked by uid 22791); 5 Jul 2005 00:06:59 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.199) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 05 Jul 2005 00:06:59 +0000 Received: by wproxy.gmail.com with SMTP id i18so1216535wra for ; Mon, 04 Jul 2005 17:06:58 -0700 (PDT) Received: by 10.54.53.25 with SMTP id b25mr3909209wra; Mon, 04 Jul 2005 17:06:58 -0700 (PDT) Received: by 10.54.65.17 with HTTP; Mon, 4 Jul 2005 17:06:58 -0700 (PDT) Message-ID: <700d600f05070417065bd213a1@mail.gmail.com> Date: Tue, 05 Jul 2005 00:07:00 -0000 From: Janne Hellsten Reply-To: Janne Hellsten To: Janne Hellsten , gdb@sources.redhat.com Subject: number of executed instructions from simulator (was Re: two bugs in the arm simulator) In-Reply-To: <20050704152806.GA22129@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <700d600f050703200612732a64@mail.gmail.com> <20050704035620.GA7075@nevyn.them.org> <700d600f05070323206be5cb7e@mail.gmail.com> <20050704152806.GA22129@nevyn.them.org> X-SW-Source: 2005-07/txt/msg00021.txt.bz2 Hi, > > so that I can get it to report the number of cycles spent in some > > program. This could be used for simple benchmarking (to detect > > regression over time). > > > > I wonder if such an extension would be a big task? I'm not familiar > > with GDB's code at all. >=20 > The GDB simulators aren't even a little bit cycle accurate, > unfortunately. Yes, I am aware of this. However, just getting the number of executed instructions would be sufficient for my purposes. I could use this in our company's performance regression tester to check relative performance figures (e.g., is last week's version faster than today's version, etc.). Best regards, Janne