public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org
Subject: Re: V2 [PATCH] benchtests: Restore the clock_gettime option
Date: Wed, 20 May 2020 15:18:26 -0300	[thread overview]
Message-ID: <7b358b63-aad9-d5fd-6470-e76a28e65bdc@linaro.org> (raw)
In-Reply-To: <CAMe9rOp7EdV2NPzq0Tz-GKNtf=WpTyvaL9anA8-dTufa-CS-tQ@mail.gmail.com>



On 20/05/2020 15:14, H.J. Lu via Libc-alpha wrote:
> On Wed, May 20, 2020 at 11:05 AM Florian Weimer <fweimer@redhat.com> wrote:
>>
>> * Alexander Monakov via Libc-alpha:
>>
>>> I am well aware. Again: rdtsc does not count CPU cycles on recent
>>> Intel CPUs.
>>
>> H.J. probably has a different view on what those “recent Intel CPUs”
>> are. 8-) I have not reviewed the mechanics of the patch, but if we need
>> this for some CPUs, we should make the change.
>>
> 
> Here the patch with updated commit message:
> 
> commit 7621e38bf3c58b2d0359545f1f2898017fd89d05
> Author: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
> Date:   Tue Jan 29 17:43:45 2019 +0000
> 
>     Add generic hp-timing support
> 
> removed the clock_gettime option.  Restore the clock_gettime option for
> some x86 CPUs on which value from RDTSC may not be incremented at a fixed
> rate.
> 
> OK for master?

What kind of result discrepancies are you seeing using hp-timing.h on x86?
The clock_gettime help in what exactly here (it was not clear from
discussion, neither from patch submission)?  

I am asking because we rely on hp-timing.h to get the loader profiling,
so if this does provide accurate information in some cases it might be
the case to disable on ld.so/libc.so as well.

  parent reply	other threads:[~2020-05-20 18:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 20:30 H.J. Lu
2020-05-19 21:18 ` Alexander Monakov
2020-05-19 21:45   ` H.J. Lu
2020-05-19 22:16     ` Alexander Monakov
2020-05-20 17:51       ` H.J. Lu
2020-05-20 18:01         ` Alexander Monakov
2020-05-20 18:05       ` Florian Weimer
2020-05-20 18:14         ` V2 " H.J. Lu
2020-05-20 18:17           ` Florian Weimer
2020-05-20 18:18           ` Adhemerval Zanella [this message]
2020-05-20 18:52             ` H.J. Lu
2020-06-04 21:24           ` Carlos O'Donell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7b358b63-aad9-d5fd-6470-e76a28e65bdc@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).