aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/mediatek/mtprof/prof_main.h
blob: 4712129861990ef049f2b7204a8013d33eb91091 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#include <linux/sched.h>

struct mt_proc_struct {
	int pid;
	int tgid;
	int index;
	u64 cputime;
	u64 cputime_init;
	u64 prof_start;
	u64 prof_end;
	u64 cost_cputime;
	u32 cputime_percen_6;
	u64 isr_time;
	int isr_count;
	struct mtk_isr_info *mtk_isr;

	cputime_t utime_init;
	cputime_t utime;
	cputime_t stime_init;
	cputime_t stime;
	char comm[TASK_COMM_LEN];
	struct mt_proc_struct *next;
};

struct mt_cpu_info {
	unsigned long long cpu_idletime_start;
	unsigned long long cpu_idletime_end;
	unsigned long long cpu_iowait_start;
	unsigned long long cpu_iowait_end;
};