blob: b13c349dbd8eb5e91e2b73a2442eb7f5175b128c [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef _MDMP_PROFILE_H_
2#define _MDMP_PROFILE_H_
3
4#include "mdmp_typedef.h"
5
6#define SIZE_OF_REGION_CONFIG (((MAX_REGION_OPTION_NUM)+7)/8)
7
8struct mdmp_var_tbl_entry {
9 void* addr;
10 unsigned int size;
11 mdmp_mem_type mem_type;
12 mdmp_access_mode access_type;
13};
14typedef struct mdmp_var_tbl_entry mdmp_var_tbl[];
15
16struct mdmp_region_cfg_entry
17{
18 mdmp_mem_type mem_type;
19 unsigned int selected_option[MAX_REGION_OPTION_NUM];
20};
21typedef struct mdmp_region_cfg_entry mdmp_region_cfg_tbl[];
22
23struct mdmp_profile_entry {
24 mdmp_region_cfg_tbl* region_config;
25 mdmp_var_tbl* selected_variable;
26 unsigned int flag;
27};
28typedef struct mdmp_profile_entry mdmp_profile_table[];
29
30
31#ifndef NULL
32#define NULL (0)
33#endif
34
35typedef struct MemDumpSymbol MemDumpSymbol;
36
37#endif