rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #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 | |
| 8 | struct mdmp_var_tbl_entry { |
| 9 | void* addr; |
| 10 | unsigned int size; |
| 11 | mdmp_mem_type mem_type; |
| 12 | mdmp_access_mode access_type; |
| 13 | }; |
| 14 | typedef struct mdmp_var_tbl_entry mdmp_var_tbl[]; |
| 15 | |
| 16 | struct mdmp_region_cfg_entry |
| 17 | { |
| 18 | mdmp_mem_type mem_type; |
| 19 | unsigned int selected_option[MAX_REGION_OPTION_NUM]; |
| 20 | }; |
| 21 | typedef struct mdmp_region_cfg_entry mdmp_region_cfg_tbl[]; |
| 22 | |
| 23 | struct mdmp_profile_entry { |
| 24 | mdmp_region_cfg_tbl* region_config; |
| 25 | mdmp_var_tbl* selected_variable; |
| 26 | unsigned int flag; |
| 27 | }; |
| 28 | typedef struct mdmp_profile_entry mdmp_profile_table[]; |
| 29 | |
| 30 | |
| 31 | #ifndef NULL |
| 32 | #define NULL (0) |
| 33 | #endif |
| 34 | |
| 35 | typedef struct MemDumpSymbol MemDumpSymbol; |
| 36 | |
| 37 | #endif |