blob: d716075221f9f8b39d2a09ac9b0cd9317faeb4db [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * Copyright (C) 2018 MediaTek Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#ifndef __MEM_STAT_H__
15#define __MEM_STAT_H__
16
17#define MAX_EVENT_NAME_LEN 32
18
19enum phy_mem_event_id {
20 FREE_MEM = 0
21};
22
23enum vir_mem_event_id {
24 FILE_PAGES = 0,
25 FILE_DIRTY,
26 NUM_DIRTIED,
27 WRITE_BACK,
28 NUM_WRITTEN,
29 PG_FAULT_CNT
30};
31
32struct mem_event {
33 int id;
34 char name[32];
35 char header_name[32];
36};
37
38#endif