]> 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)
committerKris Van Hees <kris.van.hees@oracle.com>
Fri, 20 Dec 2013 12:01:36 +0000 (07:01 -0500)
commit406d4c28ee994660cc2f19a463fdfcda978c59b8
treed4e3a092e727205a8b179bb5dec15d894e4b46eb
parent259d115c48d715bdf54ecbdbfc9ed31fa12467ee
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>
dtrace/dtrace_dif.c
dtrace/dtrace_probe.c
dtrace/dtrace_util.c
dtrace/include/dtrace/dtrace_impl.h
dtrace/include/dtrace/dtrace_impl_defines.h
dtrace/include/dtrace/types.h