cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

types.h (683B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _LINUX_SCHED_TYPES_H
      3#define _LINUX_SCHED_TYPES_H
      4
      5#include <linux/types.h>
      6
      7/**
      8 * struct task_cputime - collected CPU time counts
      9 * @stime:		time spent in kernel mode, in nanoseconds
     10 * @utime:		time spent in user mode, in nanoseconds
     11 * @sum_exec_runtime:	total time spent on the CPU, in nanoseconds
     12 *
     13 * This structure groups together three kinds of CPU time that are tracked for
     14 * threads and thread groups.  Most things considering CPU time want to group
     15 * these counts together and treat all three of them in parallel.
     16 */
     17struct task_cputime {
     18	u64				stime;
     19	u64				utime;
     20	unsigned long long		sum_exec_runtime;
     21};
     22
     23#endif