| /xnu-8019.80.24/tests/ktrace/ |
| H A D | kperf_backtracing_tests.c | 69 __block unsigned int frames = 0; in expect_backtrace() local 130 frames = 0; in expect_backtrace() 140 if (frames == 0 && hdr_frames > bt_len) { in expect_backtrace() 146 for (; i < 4 && frames < hdr_frames; i++, frames++) { in expect_backtrace() 151 expect_frame(bt, bt_len, symbol, addr, frames, hdr_frames); in expect_backtrace() 155 if (hdr_frames == frames) { in expect_backtrace() 174 recurse_a(dispatch_semaphore_t spinning, unsigned int frames); 176 recurse_b(dispatch_semaphore_t spinning, unsigned int frames); 179 recurse_a(dispatch_semaphore_t spinning, unsigned int frames) in recurse_a() argument 181 if (frames == 0) { in recurse_a() [all …]
|
| /xnu-8019.80.24/osfmk/kern/ |
| H A D | telemetry.c | 99 uintptr_t *frames; member 546 uintptr_t frames[128]; in telemetry_take_sample() local 564 frames, /* bt */ in telemetry_take_sample() 565 sizeof(frames) / sizeof(frames[0]), /* btlen */ in telemetry_take_sample() 577 .frames = frames, in telemetry_take_sample() 598 uintptr_t *frames = frames_stack; in telemetry_macf_take_sample() local 638 btcount += backtrace_user(frames + btcount, btcapacity - btcount, &btctl, &btinfo); in telemetry_macf_take_sample() 646 if (frames == frames_stack) { in telemetry_macf_take_sample() 648 frames = kalloc_data(btcapacity * sizeof(*frames), Z_WAITOK); in telemetry_macf_take_sample() 650 if (frames == NULL) { in telemetry_macf_take_sample() [all …]
|
| /xnu-8019.80.24/san/memory/ |
| H A D | ubsan_minimal.c | 81 uintptr_t frames[UBSAN_M_BT_FRAMES]; member 113 ubsan_minimal_backtrace_to_string(char *buf, size_t buflen, uint32_t tot, uintptr_t *frames) in ubsan_minimal_backtrace_to_string() argument 118 l += scnprintf(buf + l, buflen - l, "%lx\n", VM_KERNEL_UNSLIDE(frames[i])); in ubsan_minimal_backtrace_to_string() 133 list[num_entry].num_frames, list[num_entry].frames); in ubsan_minimal_send_telemetry() 185 memcpy(ubsan_minimal_rb[ubsan_minimal_rb_index].frames, backtrace, in ubsan_minimal_stash_telemetry() 237 uintptr_t frames[UBSAN_M_BT_FRAMES]; in ubsan_handle_brk_trap() local 243 uint32_t total_frames = backtrace(frames, UBSAN_M_BT_FRAMES, &ctl, NULL); in ubsan_handle_brk_trap() 247 ubsan_minimal_stash_telemetry(total_frames, frames, VM_KERNEL_UNSLIDE(faulting_address)); in ubsan_handle_brk_trap()
|
| H A D | kasan-classic.c | 449 uint32_t frames : BACKTRACE_BITS; member 524 vm_size_t frames = sz; in kasan_alloc_bt() local 526 if (frames > 0) { in kasan_alloc_bt() 527 frames = min((uint32_t)(frames + skip), BACKTRACE_MAXFRAMES); in kasan_alloc_bt() 528 frames = backtrace(bt, (uint32_t)frames, NULL, NULL); in kasan_alloc_bt() 530 while (frames > sz && skip > 0) { in kasan_alloc_bt() 532 frames--; in kasan_alloc_bt() 538 for (vm_size_t i = 0; i < frames; i++) { in kasan_alloc_bt() 542 return frames; in kasan_alloc_bt() 598 h->frames = (uint32_t)kasan_alloc_bt(f->backtrace, fsize, 2); in kasan_alloc() [all …]
|
| H A D | kasan-report.c | 147 uintptr_t frames[nframes]; in kasan_log_report() local 148 uintptr_t *bt = frames; in kasan_log_report()
|
| H A D | kasan_dynamic_blacklist.c | 353 uintptr_t frames[MAX_FRAMES]; in kasan_is_blacklisted() local 354 uintptr_t *bt = frames; in kasan_is_blacklisted()
|
| /xnu-8019.80.24/tests/ |
| H A D | backtracing_tests.c | 218 recurse_a(enum test_scenario, unsigned int frames); 220 recurse_b(enum test_scenario, unsigned int frames); 223 recurse_a(enum test_scenario scenario, unsigned int frames) in recurse_a() argument 225 if (frames == 1) { in recurse_a() 231 return recurse_b(scenario, frames - 1) + 1; in recurse_a() 235 recurse_b(enum test_scenario scenario, unsigned int frames) in recurse_b() argument 237 if (frames == 1) { in recurse_b() 243 return recurse_a(scenario, frames - 1) + 1; in recurse_b()
|
| H A D | stackshot_accuracy.m | 217 /* skip threads that don't have enough frames */ 235 "found kernel stack frames"); 324 /* check that the stackshot has the stack frames */ 373 /* check that the stackshot has the stack frames */ 456 /* check that the stackshot has the stack frames */ 509 /* check that the stackshot has the stack frames */ 556 /* check that the stackshot has the stack frames */
|
| H A D | stackshot_tests.m | 2670 T_EXPECT_FALSE(found_null_kernel_frame, "should not see any NULL kernel frames");
|
| /xnu-8019.80.24/osfmk/kperf/ |
| H A D | callstack.c | 430 uintptr_t *frames = vframes; in callstack_log() local 434 scrub_word(frames, nframes, j + 0, kern), in callstack_log() 435 scrub_word(frames, nframes, j + 1, kern), in callstack_log() 436 scrub_word(frames, nframes, j + 2, kern), in callstack_log() 437 scrub_word(frames, nframes, j + 3, kern)); in callstack_log() 441 uint64_t *frames = vframes; in callstack_log() local 444 scrub_frame(frames, nframes, j + 0), in callstack_log() 445 scrub_frame(frames, nframes, j + 1), in callstack_log() 446 scrub_frame(frames, nframes, j + 2), in callstack_log() 447 scrub_frame(frames, nframes, j + 3)); in callstack_log() [all …]
|
| /xnu-8019.80.24/tools/lldbmacros/ |
| H A D | kasan.py | 103 btframes = unsigned(h.frames) 172 btframes = unsigned(liveh.frames)
|
| H A D | xnu.py | 375 for frame in thread_val.frames:
|
| H A D | process.py | 1481 FramePtr = ThreadVal.frames[0].GetFP()
|
| /xnu-8019.80.24/san/tools/ |
| H A D | kstksz | 213 …-- When reading from a file, we can't use CoreSymbolication to symbolicate the stack frames as the…
|
| /xnu-8019.80.24/libsyscall/mach/ |
| H A D | err_iokit.sub | 81 "(iokit/common) no DMA frames enqueued", // 0x2e0
|