Debian Codegraph @

Include/cpython/sysmodule.h

raw
1 #ifndef Py_CPYTHON_SYSMODULE_H
2 # error "this header file must not be included directly"
3 #endif
4
5 typedef int(*Py_AuditHookFunction)(const char *, PyObject *, void *);
6
7 PyAPI_FUNC(int) PySys_AddAuditHook(Py_AuditHookFunction, void*);
8
9 typedef struct {
10 FILE* perf_map;
11 PyThread_type_lock map_lock;
12 } PerfMapState;
13
14 PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void);
15 PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(
16 const void *code_addr,
17 unsigned int code_size,
18 const char *entry_name);
19 PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void);
20 PyAPI_FUNC(int) PyUnstable_CopyPerfMapFile(const char* parent_filename);
21 PyAPI_FUNC(int) PyUnstable_PerfTrampoline_CompileCode(PyCodeObject *);
22 PyAPI_FUNC(int) PyUnstable_PerfTrampoline_SetPersistAfterFork(int enable);