Re: [PATCH] stats: use CLOCK_THREAD_CPUTIME_ID for cpu statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 08, 2016 at 11:30:10AM +0000, Frediano Ziglio wrote:
> Avoid to call red_worker_get_clockid. This function returns uninitialized
> value at the timer DisplayChannel is build resulting in setting
> statistics to CLOCK_REALTIME (which is 0) instead to cpu time as expected.

Imo, we should either get rid of worker->clockid altogether and always
use CLOCK_THREAD_CPUTIME_ID, or initialize it to CLOCK_THREAD_CPUTIME_ID
and warn if the pthread_getcpuclockid() call in red_worker_main() sets
it to something different.

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]