From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16885 invoked by alias); 14 May 2003 15:06:33 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 16745 invoked from network); 14 May 2003 15:06:26 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 14 May 2003 15:06:26 -0000 Received: from redhat.com (topaz.toronto.redhat.com [172.16.14.227]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 18E6A800021 for ; Wed, 14 May 2003 11:06:26 -0400 (EDT) Message-ID: <3EC25B71.6050907@redhat.com> Date: Wed, 14 May 2003 15:06:00 -0000 From: Dave Brolley Organization: Red Hat Canada, Ltd User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021216 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cgen@sources.redhat.com Subject: [patch] gprof bucket overflows Content-Type: multipart/mixed; boundary="------------090503000903040807060901" X-SW-Source: 2003-q2/txt/msg00043.txt.bz2 This is a multi-part message in MIME format. --------------090503000903040807060901 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 357 I have committed the following patch. When a bucket of the gprof histogram overflowed (exceeded the 64k limit) the other buckets which did not overflow were being counted again in the subsequent histogram(s). 2003-05-13 Dave Brolley * gprof.cxx (profiling_components): Set bucket count to zero when it is empty. --------------090503000903040807060901 Content-Type: text/plain; name="gprof-bucket.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gprof-bucket.patch.txt" Content-length: 542 Index: gprof.cxx =================================================================== RCS file: /cvs/src/src/sid/component/profiling/gprof.cxx,v retrieving revision 1.10 retrieving revision 1.11 diff -c -p -r1.10 -r1.11 *** gprof.cxx 8 Jan 2003 06:46:49 -0000 1.10 --- gprof.cxx 14 May 2003 14:59:52 -0000 1.11 *************** namespace profiling_components *** 327,332 **** --- 327,333 ---- else { put_bytes (of, host_int_2(count), 2); + b->second = 0; // in case we iterate due to overflow } } --------------090503000903040807060901--