]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: vtimestamp implementation
authorKris Van Hees <kris.van.hees@oracle.com>
Tue, 17 Dec 2013 23:08:17 +0000 (18:08 -0500)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:29:26 +0000 (15:29 +0100)
commitafc27cb58e90875f574f5910a77420cbde9be16b
tree18dec5fd657cf9cfe4d684ba89658fb69246b1c0
parent1587572cac3ccab5ce1403004d531d9de4a7cd0f
dtrace: vtimestamp implementation

This commit adds DTrace vtimestamp support.  It keeps track of how much
time a task has spent actually processing on a CPU.  The time is set to
zero at task creation, and is updated whenever the task leaves a CPU
(gets scheduled off), and when the dtrace_probe() function is entered,
to enusre that the most recent value of consumed time is reported.

Some code got moved around for consistency of the implementation.

Orabug: 17741477

Reviewed-by: Dan Duval <dan.duval@oracle.com>
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Conflicts:
include/linux/ktime.h
kernel/sched/core.c
fs/exec.c
include/linux/dtrace_os.h
include/linux/ktime.h
kernel/dtrace/dtrace_os.c
kernel/sched/core.c