From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19057 invoked by alias); 19 Aug 2009 05:25:15 -0000 Received: (qmail 19046 invoked by uid 22791); 19 Aug 2009 05:25:14 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=BAYES_20,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Aug 2009 05:25:08 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MddfT-0003fy-DT for binutils@sources.redhat.com; Wed, 19 Aug 2009 07:25:03 +0200 Received: from pool-74-105-85-251.nwrknj.fios.verizon.net ([74.105.85.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Aug 2009 07:25:03 +0200 Received: from lhyatt by pool-74-105-85-251.nwrknj.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Aug 2009 07:25:03 +0200 To: binutils@sources.redhat.com From: Lewis Hyatt Subject: gprof and int overflow Date: Wed, 19 Aug 2009 06:51:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00364.txt.bz2 Hi Everyone- I can't get accurate results for functions called more than 2^32-1 times in gprof; it looks like somewhere the function call counts are limited to 32-bit integers, even though I am compiling on a 64-bit architecture. Does anyone know if this is a limitation of gprof or of the gcc implementation of the -pg option? Is there a workaround? I am using binutils 2.17 and gcc 4.1.2 on Debian. Thanks very much. -Lewis