delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/06/12:42:57

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=NGq/n/l1SEQH7WkfO0zOXqR3cksh37kw23QC+ZPm6e2t5XQj04tdC
FmcJsK509iFnTfi12grje6M7xPKFBJvF0nEaOuKs0gNWObe5cg92sraOnv+kNC37
MObNSy6+Q30L22bjan1nyvw0HklZ92wKejN06Q4I7au6JFjtbC5Fzk=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=8VI+pkHWWa8nFAaNRjk8d9LEINM=; b=C9o8XsHZ0EmWHr3G18U9t1ff5zuF
LKwr+dcHBumdssh1tbyIksSw/tw3jJWvsp1RQ73O9ZM+qp5vryOKwDsY9PQtgEqn
2gSxn/AsvvXMObS8/QoU8TftA+I0CtOg4ho3XbHVjHC/w4ML1Ha0CTkVjhZC2bIh
K3WnVnH/o0/EIiM=
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=-94.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=H*R:U*cygwin, H*i:sk:400ed6a, H*f:sk:400ed6a, H*MI:sk:400ed6a
X-HELO: calimero.vinschen.de
Date: Wed, 6 Jul 2016 18:42:36 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: strace red herring ?
Message-ID: <20160706164236.GK13445@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <400ed6a7-cd4a-c136-7f65-a5244c7b96fa AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <400ed6a7-cd4a-c136-7f65-a5244c7b96fa@gmail.com>
User-Agent: Mutt/1.6.1 (2016-04-27)

--76DTJ5CE0DCVQemd
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jul  6 17:40, Marco Atzeri wrote:
> strace extract from a simple session
>   strace -o mc.strace /usr/bin/mc.exe
>=20
> some of the "child_copy: dll bss" report huge time steps,
> but I am almost sure the program was not waiting 15 seconds
>=20
>=20
> 18 526 [main] bash 5824 pinfo::thisproc: myself dwProcessId 5824
> 47 573 [main] bash 5824 child_copy: dll data - hp 0x238 low 0x180202000,
> high 0x18020E320, res 1
>=20
> 15707110 15707683 [main] bash 5824 child_copy: dll bss - hp 0x238 low
> 0x1802D6000, high 0x18031FB30, res 1
>=20
> 224 15707907 [main] bash 5824 child_copy: user heap - hp 0x238 low
> 0x600000000, high 0x600080000, res 1
> 24 15707931 [main] bash 5824 child_copy: done
>=20
> Could be the counter wrong ?

Yes.  It seems this is the value copied from the parent :)

A fix requires to move `static hires_ns now' out of the
strace::microseconds method and to save/restore it in child_copy.

I'll look into it the next couple of days if nobody beats me to it.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--76DTJ5CE0DCVQemd
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXfTT8AAoJEPU2Bp2uRE+ggiEP/3UnKFWaAly3EBmeyWZhLe8e
VWbrAvIBLEIiB/fMeFpZv4f8UqYbrG6XpAbt7XtoK6PNstDC4zTd5YPRNNAMFL8R
Gz0LZ4xLef/KnZUQem2MVweGP6q4OGbB5xNf/Ww7lGG51jmJEygyrx6gNXfjhnBi
IN5uyvQiBWpJ2yxBlNLvSIT8TLhj/FBcg5bbZY4mDvzMteItPy7/WZOjgMDtxV/q
6/rs0A06NQle/r74YP/+ZGX2Bh3vpyH7c8emNOkZxllWTeMayJ5lvqB86nLhyGtu
2qlZ2SMtHP9V3IG9icAwk1CTYCeQNvy2Al5Eg9x9aFfOtDD4nMfA19Th0j09RS6I
7EqLmsZrR9yvQ6MSDUfJcgIAzjRLuLgIwVRuBtdIdGML52CCUTE5TJ4kqS2NPU2z
aRPaP+F2Ev9j8cNJeMobcy/PUwYjtDZRzBWRpHiM3qlwU1POOowGKszFcPkFUGMP
vWg39UbsbomGJdhfeHxicnRSLEx3WEBbRWfuOl95neXxAeGtQ0eqT8vYQJ11bhUa
Gvdtjf+3cJBS9547XsZybFJuyqdpgL2KofxOlumC8DRXTiqieFKw7llgMpLC2emH
cqfYYRNsyrAcYBY4hOCHSYNda5Bb9n1t2TfzHf22sivnNs0E+HoaY2ISJbnMiuSe
K4/TovDkWAaOwykREoAC
=xZTG
-----END PGP SIGNATURE-----

--76DTJ5CE0DCVQemd--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019