Loading...
--- Libc/Libc-583/gen/stack_logging.h
+++ Libc/Libc-825.26/gen/stack_logging.h
@@ -41,6 +41,8 @@
extern int stack_logging_enable_logging; /* when clear, no logging takes place */
extern int stack_logging_dontcompact; /* default is to compact; when set does not compact alloc/free logs; useful for tracing history */
+extern int stack_logging_finished_init; /* set after we've returned from the Libsystem initialiser */
+extern int stack_logging_postponed; /* set if we needed to postpone logging till after initialisation */
extern void stack_logging_log_stack(unsigned type, unsigned arg1, unsigned arg2, unsigned arg3, unsigned result, unsigned num_hot_to_skip);
@@ -58,6 +60,8 @@
uint64_t argument;
mach_vm_address_t address;
} mach_stack_logging_record_t;
+
+extern kern_return_t __mach_stack_logging_set_file_path(task_t task, char* file_path);
extern kern_return_t __mach_stack_logging_get_frames(task_t task, mach_vm_address_t address, mach_vm_address_t *stack_frames_buffer, uint32_t max_stack_frames, uint32_t *count);
/* Gets the last allocation record (malloc, realloc, or free) about address */