This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Posix compliant process clock patch for the linux arch in glibc
- From: Christoph Lameter <clameter at sgi dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: johnstul at us dot ibm dot com, Ulrich dot Windl at rz dot uni-regensburg dot de, george at mvista dot com, libc-alpha at sources dot redhat dot com
- Date: Fri, 22 Oct 2004 08:27:12 -0700 (PDT)
- Subject: Re: Posix compliant process clock patch for the linux arch in glibc
- References: <B6E8046E1E28D34EB815A11AC8CA312902CD3264@mtv-atc-605e--n.corp.sgi.com><Pine.LNX.4.58.0409240508560.5706@schroedinger.engr.sgi.com><4154F349.1090408@redhat.com> <Pine.LNX.4.58.0409242253080.13099@schroedinger.engr.sgi.com><41550B77.1070604@redhat.com> <B6E8046E1E28D34EB815A11AC8CA312902CD327E@mtv-atc-605e--n.corp.sgi.com><Pine.LNX.4.58.0409271344220.32308@schroedinger.engr.sgi.com><4159B920.3040802@redhat.com> <Pine.LNX.4.58.0410211141020.27338@schroedinger.engr.sgi.com><m3oeiux22z.fsf@gromit.moeb> <Pine.LNX.4.58.0410220758340.7868@schroedinger.engr.sgi.com><m3sm86u6pu.fsf@gromit.moeb>
On Fri, 22 Oct 2004, Andreas Jaeger wrote:
> > Glibc will run on any kernel even with this patch. It just will stop
> > returning results from CLOCK_*_CPUTIME_ID that are not posix compliant.
> > This is intended behavior as explained in the post.
>
> Please explain this a bit more: On a 2.6.8 kernel, you will not get
> CLOCK_*_CPUTIME_ID results at all with your patch applied. But
> currently glibc will return results?
Yes currently glibc will most of the time return the time since the start
of the proces or thread instead of cputime. Sometimes (on some SMP systems
and when the clock frequency changes) bogus results will be returned.