Re: [PATCH resend] Reading POSIX CPU timer from outside the process.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dario Faggioli
Date: Wednesday, December 29, 2010 - 7:10 am

On Wed, 2010-12-29 at 14:21 +0100, Oleg Nesterov wrote: 
Sure, I saw that... I was referring to all the clock_getres() and
clock_{get,set}time() I was able to call without using directly
MAKE_THREAD_CPUCLOCK.

Exactly. Actually, I didn't noticed this too when I first started with
this patch, and the fact that my first version worked -- which was by
chance, I can say it now :-P -- made me think it was worthwhile to bend
the semantic a bit, to enable this new capability... But making it work
is hackish, I see it now. Sorry. :-)

Yep. A very trivial one, I agree, but it's just to show the issue.

Fine, but, is that macro available for an application developer? Because
I can find it in kernel and glibc sources, but not in my /usr/include/*,
which is the motivation behind this attempt... But it might be my
fault! :-P

Agreed, sorry for wasting (hopefully not too much) people's time. :-(

Thanks and Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
----------------------------------------------------------------------
Dario Faggioli, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa  (Italy)

http://retis.sssup.it/people/faggioli -- dario.faggioli@jabber.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Read THREAD_CPUTIME clock from other processes., Dario Faggioli, (Thu Dec 23, 9:21 am)
Re: [PATCH] Read THREAD_CPUTIME clock from other processes., Dario Faggioli, (Thu Dec 23, 10:38 am)
Re: [PATCH] Read THREAD_CPUTIME clock from other processes., Dario Faggioli, (Thu Dec 23, 10:43 am)
Re: [PATCH resend] Reading POSIX CPU timer from outside th ..., Dario Faggioli, (Wed Dec 29, 7:10 am)