public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux missing support for _POSIX_THREAD_CPUTIME?
@ 2009-05-27 16:46 Chris Friesen
  2009-05-27 16:56 ` Thomas Gleixner
  2009-05-27 17:00 ` linux missing support for _POSIX_THREAD_CPUTIME ? Chris Friesen
  0 siblings, 2 replies; 7+ messages in thread
From: Chris Friesen @ 2009-05-27 16:46 UTC (permalink / raw)
  To: linux-kernel, tglx

Hi all,

POSIX defines optional support for clock ID values obtained by invoking
pthread_getcpuclockid().  When passed to clock_gettime(), this allows
the caller to request the CPU-time clock of an arbitrary thread within
the same process as the caller.

It appears that linux doesn't support this functionality--is that
correct?  Is there any plan to enable this?

Is there any current way to obtain the runtime of a particular thread
without knowing its tid (since the thread_id to tid mapping is known
only to glibc)?

Thanks,

Chris

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

end of thread, other threads:[~2009-05-27 20:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-27 16:46 linux missing support for _POSIX_THREAD_CPUTIME? Chris Friesen
2009-05-27 16:56 ` Thomas Gleixner
2009-05-27 17:14   ` Chris Friesen
2009-05-27 17:36     ` Thomas Gleixner
2009-05-27 20:00       ` Chris Friesen
2009-05-27 17:49   ` Roland McGrath
2009-05-27 17:00 ` linux missing support for _POSIX_THREAD_CPUTIME ? Chris Friesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox