1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct task_cputime</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch01s03.html" title="Delaying, scheduling, and timer routines"><link rel="prev" href="API-struct-cputime.html" title="struct cputime"><link rel="next" href="API-struct-thread-group-cputimer.html" title="struct thread_group_cputimer"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct task_cputime</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-cputime.html">Prev</a>&#160;</td><th width="60%" align="center">Delaying, scheduling, and timer routines</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-thread-group-cputimer.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-task-cputime"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct task_cputime &#8212; 
2     collected CPU time counts
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct task_cputime {
5  cputime_t utime;
6  cputime_t stime;
7  unsigned long long sum_exec_runtime;
8};  </pre></div><div class="refsect1"><a name="idp1106683756"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">utime</span></dt><dd><p>
9   time spent in user mode, in <span class="structname">cputime_t</span> units
10      </p></dd><dt><span class="term">stime</span></dt><dd><p>
11   time spent in kernel mode, in <span class="structname">cputime_t</span> units
12      </p></dd><dt><span class="term">sum_exec_runtime</span></dt><dd><p>
13   total time spent on the CPU, in nanoseconds
14      </p></dd></dl></div></div><div class="refsect1"><a name="idp1106686868"></a><h2>Description</h2><p>
15   This is an extension of struct cputime that includes the total runtime
16   spent by the task from the scheduler point of view.
17   </p><p>
18
19   As a result, this structure groups together three kinds of CPU time
20   that are tracked for threads and thread groups.  Most things considering
21   CPU time want to group these counts together and treat all three
22   of them in parallel.
23</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-cputime.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch01s03.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-thread-group-cputimer.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct cputime</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct thread_group_cputimer</span></td></tr></table></div></body></html>
24