public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* aarch64 lacks HP_TIMING support in glibc
@ 2021-06-22 18:29 Rafael Eduardo Ruviaro Christ
  2021-06-22 18:38 ` Andrew Pinski
  0 siblings, 1 reply; 15+ messages in thread
From: Rafael Eduardo Ruviaro Christ @ 2021-06-22 18:29 UTC (permalink / raw)
  To: libc-alpha

Hello,

I noticed that aarch64 lacks HP_TIMING support in glibc. Although this architecture has generic timers, glibc is still using the generic hp-timing.h for aarch64.
I see HP_TIMING support for other architectures. I'd like to know why there is no HP_TIMING support for aarch64?
Also, if there's planning to support it for aarch64?


Thank you,
Kind regards,
Rafael
-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. Neither the sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* aarch64 lacks HP_TIMING support in glibc
@ 2021-06-23 11:43 Wilco Dijkstra
  2021-06-23 13:26 ` Adhemerval Zanella
  2021-06-28 15:49 ` Rafael Eduardo Ruviaro Christ
  0 siblings, 2 replies; 15+ messages in thread
From: Wilco Dijkstra @ 2021-06-23 11:43 UTC (permalink / raw)
  To: 'GNU C Library', rafaeleduardoruviaro.christ

Hi Rafael,

> I noticed that aarch64 lacks HP_TIMING support in glibc. Although this architecture has generic timers, glibc is still using the generic hp-timing.h for aarch64.
> I see HP_TIMING support for other architectures. I'd like to know why there is no HP_TIMING support for aarch64?
> Also, if there's planning to support it for aarch64?

I added HP_TIMING support for all targets a while back - this uses fast timers
via the vDSO mechanism. Some targets also have a header with an inline counter.

However it's not an external header and it is hardly used inside GLIBC, so it's
not clear whether it's worth the effort to ensure that cntvct_el0 is never trapped
on AArch64 or just declare the systems that do trap it obsolete.

Cheers,
Wilco

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-07-02 13:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 18:29 aarch64 lacks HP_TIMING support in glibc Rafael Eduardo Ruviaro Christ
2021-06-22 18:38 ` Andrew Pinski
2021-06-22 18:57   ` Adhemerval Zanella
2021-06-22 19:27     ` Andreas Schwab
2021-06-22 19:53       ` Adhemerval Zanella
2021-06-22 20:18         ` Andreas Schwab
2021-06-22 20:22           ` Adhemerval Zanella
2021-06-23 11:43 Wilco Dijkstra
2021-06-23 13:26 ` Adhemerval Zanella
2021-06-23 15:19   ` Wilco Dijkstra
2021-06-28 15:49 ` Rafael Eduardo Ruviaro Christ
2021-06-28 19:25   ` Wilco Dijkstra
2021-06-30 13:27     ` Rafael Eduardo Ruviaro Christ
2021-07-02 13:13       ` Wilco Dijkstra
2021-07-02 13:53         ` Adhemerval Zanella

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).