blob: 96fdf77cf2b690ca2b0623acc711ca10bf22062c (
plain)
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
32
33
34
35
36
37
38
39
40
|
/*
* SPDX-License-Identifier: GPL-2.0-only
*
* Copyright (C) 2019-2020 Oplus. All rights reserved.
*/
#ifndef __MIDAS_PROC_H__
#define __MIDAS_PROC_H__
#include <linux/sched.h>
#define STATE_MAX 60
#define CNT_MAX 1024
enum {
TYPE_UID = 0,
TYPE_RPID,
TYPE_SPID,
TYPE_TOTAL,
};
enum {
ID_PID = 0,
ID_TGID,
ID_UID,
ID_TOTAL,
};
struct state_inst {
unsigned int id[ID_TOTAL];
char name[TASK_COMM_LEN];
unsigned long long time_in_state[STATE_MAX];
};
struct midas_id_state {
unsigned int cnt;
struct state_inst insts[CNT_MAX];
};
#endif
|