Create prof_sys module for reading system thread name

This commit is contained in:
Yinan Zhang
2020-03-31 09:02:55 -07:00
parent adfd9d7b1d
commit 03ae509f32
10 changed files with 49 additions and 23 deletions

View File

@@ -0,0 +1,10 @@
#ifndef JEMALLOC_INTERNAL_PROF_SYS_H
#define JEMALLOC_INTERNAL_PROF_SYS_H
void prof_sys_thread_name_fetch(tsd_t *tsd);
/* Used in unit tests. */
typedef int (prof_sys_thread_name_read_t)(char *buf, size_t limit);
extern prof_sys_thread_name_read_t *JET_MUTABLE prof_sys_thread_name_read;
#endif /* JEMALLOC_INTERNAL_PROF_SYS_H */