delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:subject:to | |
:mime-version:content-type; q=dns; s=default; b=GRxQx8wxViMfwZoy | |
96e4AJZJgRxc0GeUff1zmFGoGxMKHZtnihyiffbuY2o1pqMZHfkmLYAoLOlksXb5 | |
ydpM+I4Ce4pp0yvvR4jCHd8hgrKyqD7MwNRI3pqE1uxiH3DyZjKOI/nU37uCjpKx | |
0UtMg+G2aH1VkuMHl+jEBmkCxPY= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:subject:to | |
:mime-version:content-type; s=default; bh=tBMZD6dY1NA26K8mR7GXyU | |
MZyHM=; b=hyhrSRWH7meIsRGClkwalO535xH5y6rhuTX2UqByRu7SkJss0xxi/c | |
VPGyhTKMZ9p0/bkNUQCsfMwVjz5XUt+1+BBWZKtKXYnU3Pd1Jzrnsmpd8yOXhcFS | |
pOGVi9NL2Ay+FXXvP4WnrBd5H/1dBRAtTjpqi4x+sg5P66dOZWR8c= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=2.2 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | nm9.bullet.mail.ne1.yahoo.com |
Message-ID: | <1404892147.73620.YahooMailNeo@web122402.mail.ne1.yahoo.com> |
Date: | Wed, 9 Jul 2014 00:49:07 -0700 |
From: | Dragos Tarcatu <tarcatu_dragosh AT yahoo DOT com> |
Reply-To: | Dragos Tarcatu <tarcatu_dragosh AT yahoo DOT com> |
Subject: | Problem with gprof for code containing static functions |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
MIME-Version: | 1.0 |
--1494295045-441981906-1404892147=:73620 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I've been encountering some problems using gprof (GNU gprof (GNU Binutils) = 2.24.51.20140623) in the most recent cygwin (32 bits) . Basically gprof see= ms to be missing static functions calls in the flat profile report. For the= attached source file (compiled with -Wall -g -pedantic -std=3Dc99 -pg -O0)= if I disable the USE_STATIC macro the flat report seems ok.=20 Each sample counts as 0.01 seconds.=20 =A0 % cumulative self self total=20 =A0time seconds seconds calls s/call s/call name=20 =A089.24 1.99 1.99 100000000 0.00 0.00 f5=20 =A0 8.07 2.17 0.18 _mcount_private=20 =A0 1.79 2.21 0.04 1000000 0.00 0.00 f4=20 =A0 0.90 2.23 0.02 _fentry__=20 =A0 0.00 2.23 0.00 10000 0.00 0.00 f3=20 =A0 0.00 2.23 0.00 100 0.00 0.02 f2=20 =A0 0.00 2.23 0.00 1 0.00 2.03 f1=20 =A0=20 But if I enable it (making those functions static) I get pretty weird resul= ts:=20 Each sample counts as 0.01 seconds.=20 =A0 % cumulative self self total=20 =A0time seconds seconds calls Ts/call Ts/call name=20 =A087.78 1.94 1.94 f5=20 =A0 8.60 2.13 0.19 _mcount_private=20 =A0 1.81 2.17 0.04 _fentry__=20 =A0 1.81 2.21 0.04 f4=20 =A0 0.00 2.21 0.00 101010000 0.00 0.00 __gcc_deregister_f= rame=20 =A0 0.00 2.21 0.00 100 0.00 0.00 f2=20 =A0 0.00 2.21 0.00 1 0.00 0.00 f1=20 Is this a known issue?=20 --1494295045-441981906-1404892147=:73620 Content-Type: text/plain; name="test.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.c" I2luY2x1ZGU8c3RkaW8uaD4NCiNpbmNsdWRlPHN0ZGxpYi5oPg0KDQoNCiNk ZWZpbmUgTjEgMTAwDQojZGVmaW5lIE4yIDEwMA0KI2RlZmluZSBOMyAxMDAN CiNkZWZpbmUgTjQgMTAwDQoNCiNkZWZpbmUgVVNFX1NUQVRJQw0KDQojaWZk ZWYgVVNFX1NUQVRJQw0Kc3RhdGljDQojZW5kaWYNCnZvaWQgZjUoKSB7DQog ICAgaW50IGk7DQogICAgZm9yIChpID0gMDsgaSA8IDEwOyBpKyspIHsNCiAg ICB9DQp9DQoNCiNpZmRlZiBVU0VfU1RBVElDDQpzdGF0aWMNCiNlbmRpZg0K dm9pZCBmNCgpICB7DQogICAgaW50IGk7DQogICAgZm9yIChpID0gMDsgaSA8 IE40OyBpKyspIHsNCiAgICAgICAgZjUoKTsNCiAgICB9DQp9DQoNCiNpZmRl ZiBVU0VfU1RBVElDDQpzdGF0aWMNCiNlbmRpZg0Kdm9pZCBmMygpIHsNCiAg ICBpbnQgaTsNCiAgICBmb3IgKGkgPSAwOyBpIDwgTjM7IGkrKykgew0KICAg ICAgICBmNCgpOw0KICAgIH0NCn0NCg0KDQp2b2lkIGYyKCkgew0KICAgIGlu dCBpOw0KICAgIGZvciAoaSA9IDA7IGkgPCBOMjsgaSsrKSB7DQogICAgICAg IGYzKCk7DQogICAgfQ0KfQ0KDQp2b2lkIGYxKCkgew0KICAgIGludCBpOw0K ICAgIGZvciAoaSA9IDA7IGkgPCBOMTsgaSsrKSB7DQogICAgICAgIGYyKCk7 DQogICAgfQ0KfQ0KDQoNCmludCBtYWluKCkgew0KICAgIGYxKCk7DQogICAg cmV0dXJuIDA7DQp9DQoNCg== --1494295045-441981906-1404892147=:73620 Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --1494295045-441981906-1404892147=:73620--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |