diff options
| author | Leslie Zhai <zhaixiang@loongson.cn> | 2024-12-26 21:43:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-26 14:43:19 +0100 |
| commit | 89713993cb86a51cfe8c65d581351ea57459445e (patch) | |
| tree | 8880a9dc01fb17fe5e1c094f6e2246084da6e022 /src/include | |
| parent | cf24eaf9d2bcb739aaec5b4c75d6bb09b4b902ae (diff) | |
| download | box64-89713993cb86a51cfe8c65d581351ea57459445e.tar.gz box64-89713993cb86a51cfe8c65d581351ea57459445e.zip | |
[DYNAREC] Implement perf map (#2212)
* [DYNAREC] Implement perf map * [DYNAREC] Use function name as the Symbol
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/debug.h | 2 | ||||
| -rw-r--r-- | src/include/dynarec_native.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/include/debug.h b/src/include/debug.h index 14e062d5..563011e0 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -43,6 +43,8 @@ extern int box64_dynarec_missing; extern int box64_dynarec_aligned_atomics; extern int box64_dynarec_nativeflags; extern int box64_dynarec_df; +extern int box64_dynarec_perf_map; +extern int box64_dynarec_perf_map_fd; #ifdef ARM64 extern int arm64_asimd; extern int arm64_aes; diff --git a/src/include/dynarec_native.h b/src/include/dynarec_native.h index dd5218f6..4a5219a7 100644 --- a/src/include/dynarec_native.h +++ b/src/include/dynarec_native.h @@ -26,4 +26,6 @@ void addInst(instsize_t* insts, size_t* size, int x64_size, int native_size); void CancelBlock64(int need_lock); void* FillBlock64(dynablock_t* block, uintptr_t addr, int alternate, int is32bits); -#endif //__DYNAREC_ARM_H_ \ No newline at end of file +void writePerfMap(uintptr_t func_addr, uintptr_t code_addr, size_t code_size); + +#endif //__DYNAREC_ARM_H_ |