Lines Matching refs:address
45 void *address;
46 if (vm_allocate(mach_task_self(), (vm_address_t *)&address, bytes,
52 return (void *)address;
181 if (!stack_logging_dontcompact && stack_logging_the_record_list->num_records && (type == stack_logging_type_dealloc) && arg1 && ((rec-1)->type == stack_logging_type_alloc) && (arg1 == STACK_LOGGING_DISGUISE((rec-1)->address))) {
190 rec->address = STACK_LOGGING_DISGUISE(arg1); // we disguise the address
193 rec->address = STACK_LOGGING_DISGUISE(result); // we disguise the address
196 rec->address = STACK_LOGGING_DISGUISE(arg1); // we disguise the address
210 static kern_return_t default_reader(task_t task, vm_address_t address, vm_size_t size, void **ptr) {
211 *ptr = (void *)address;
234 kern_return_t stack_logging_get_frames(task_t task, memory_reader_t reader, vm_address_t address, vm_address_t *stack_frames_buffer, unsigned max_stack_frames, unsigned *num_frames) {
238 unsigned disguised = STACK_LOGGING_DISGUISE(address);
247 if (record->address == disguised) {
252 fprintf(stderr, "*** stack_logging: no record found for %p\n", (void *)address);
256 kern_return_t stack_logging_enumerate_records(task_t task, memory_reader_t reader, vm_address_t address, void enumerator(stack_logging_record_t, void *), void *context) {
260 unsigned disguised = STACK_LOGGING_DISGUISE(address);
268 if (!address || (record->address == disguised)) enumerator(*record, context);