This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/23461] Add __tsc_to_ns and __ns_to_tsc
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 27 Jul 2018 18:48:45 +0000
- Subject: [Bug libc/23461] Add __tsc_to_ns and __ns_to_tsc
- Auto-submitted: auto-generated
- References: <bug-23461-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23461
--- Comment #4 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Carlos O'Donell from comment #3)
> (In reply to H.J. Lu from comment #2)
> > (In reply to Florian Weimer from comment #1)
> > > Does this belong in glibc? We don't have any Intel TSC support yet, and our
> > > internal use of rdtsc *is* incorrect.
> >
> > I am not sure where they belong. But glibc has the infrastructure to
> > collect CPUID info. Adding CPUID 15H is quite simple:
> >
> > https://github.com/hjl-tools/glibc/tree/hjl/cpu-features/master
>
> We have sys/platform/* headers which would let you expose special functions
> like this to user programs. We have one for ppc.h right now only.
https://sourceware.org/glibc/wiki/PlatformHeaders
--
You are receiving this mail because:
You are on the CC list for the bug.