1 | #ifndef JEMALLOC_INTERNAL_PROF_SYS_H |
2 | #define JEMALLOC_INTERNAL_PROF_SYS_H |
3 | |
4 | extern malloc_mutex_t prof_dump_filename_mtx; |
5 | extern base_t *prof_base; |
6 | |
7 | void bt_init(prof_bt_t *bt, void **vec); |
8 | void prof_backtrace(tsd_t *tsd, prof_bt_t *bt); |
9 | void prof_hooks_init(); |
10 | void prof_unwind_init(); |
11 | void prof_sys_thread_name_fetch(tsd_t *tsd); |
12 | int prof_getpid(void); |
13 | void prof_get_default_filename(tsdn_t *tsdn, char *filename, uint64_t ind); |
14 | bool prof_prefix_set(tsdn_t *tsdn, const char *prefix); |
15 | void prof_fdump_impl(tsd_t *tsd); |
16 | void prof_idump_impl(tsd_t *tsd); |
17 | bool prof_mdump_impl(tsd_t *tsd, const char *filename); |
18 | void prof_gdump_impl(tsd_t *tsd); |
19 | |
20 | /* Used in unit tests. */ |
21 | typedef int (prof_sys_thread_name_read_t)(char *buf, size_t limit); |
22 | extern prof_sys_thread_name_read_t *JET_MUTABLE prof_sys_thread_name_read; |
23 | typedef int (prof_dump_open_file_t)(const char *, int); |
24 | extern prof_dump_open_file_t *JET_MUTABLE prof_dump_open_file; |
25 | typedef ssize_t (prof_dump_write_file_t)(int, const void *, size_t); |
26 | extern prof_dump_write_file_t *JET_MUTABLE prof_dump_write_file; |
27 | typedef int (prof_dump_open_maps_t)(); |
28 | extern prof_dump_open_maps_t *JET_MUTABLE prof_dump_open_maps; |
29 | |
30 | #endif /* JEMALLOC_INTERNAL_PROF_SYS_H */ |
31 | |