Re: [PATCH 1/7] posix-cpu-timers: don't account cpu timer afterstopped thread runtime accounting

From: KOSAKI Motohiro
Date: Mon May 06 2013 - 22:58:09 EST


>> + /*
>> + * After turning over se.sum_exec_runtime to sig->sum_sched_runtime
>> + * in __exit_signal(), we must not account exec_runtime for consistency.
>> + */
>> + if (unlikely(!tsk->sighand))
>> + return;
>
> Ok, if we want the clock and timer to be consistent, do we also want the same check in
> account_group_user_time() and account_group_system_time()? The task can still account
> a tick after autoreaping itself between release_task() and the final schedule().

You are right.

That said, current the man pages don't describe this linux specific
extensions. So, nobody
(glibc, ltp, and me) tested them. Please give me a couple of days.
I'll test and fix this features
too.

timer_create(2): http://man7.org/linux/man-pages/man2/timer_create.2.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/