Home
last modified time | relevance | path

Searched refs:frames (Results 1 – 16 of 16) sorted by relevance

/xnu-8792.41.9/tests/ktrace/
H A Dkperf_backtracing_tests.c69 __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-8792.41.9/osfmk/kern/
H A Dtelemetry.c100 uintptr_t *frames; member
548 uintptr_t frames[128]; in telemetry_take_sample() local
549 size_t frames_len = sizeof(frames) / sizeof(frames[0]); in telemetry_take_sample()
567 btcount = backtrace_user(frames, frames_len, NULL, &btinfo); in telemetry_take_sample()
582 unsigned int async_filled = backtrace_user(frames + async_start_index, in telemetry_take_sample()
592 .frames = frames, in telemetry_take_sample()
615 telemetry_user_frame_t *frames = frames_stack; in telemetry_macf_take_sample() local
655 btcount += backtrace_user(frames + btcount, btcapacity - btcount, &btctl, &btinfo); in telemetry_macf_take_sample()
663 if (frames == frames_stack) { in telemetry_macf_take_sample()
665 frames = kalloc_data(btcapacity * sizeof(*frames), Z_WAITOK); in telemetry_macf_take_sample()
[all …]
/xnu-8792.41.9/san/memory/
H A Dubsan_minimal.c81 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 Dkasan-classic.c457 uint32_t frames : BACKTRACE_BITS; member
527 vm_size_t frames = sz; in kasan_alloc_bt() local
529 if (frames > 0) { in kasan_alloc_bt()
530 frames = min((uint32_t)(frames + skip), BACKTRACE_MAXFRAMES); in kasan_alloc_bt()
531 frames = backtrace(bt, (uint32_t)frames, NULL, NULL); in kasan_alloc_bt()
533 while (frames > sz && skip > 0) { in kasan_alloc_bt()
535 frames--; in kasan_alloc_bt()
541 for (vm_size_t i = 0; i < frames; i++) { in kasan_alloc_bt()
545 return frames; in kasan_alloc_bt()
601 h->frames = (uint32_t)kasan_alloc_bt(f->backtrace, fsize, 2); in kasan_alloc()
[all …]
H A Dkasan-report.c147 uintptr_t frames[nframes]; in kasan_log_report() local
148 uintptr_t *bt = frames; in kasan_log_report()
H A Dkasan_dynamic_blacklist.c353 uintptr_t frames[MAX_FRAMES]; in kasan_is_blacklisted() local
354 uintptr_t *bt = frames; in kasan_is_blacklisted()
/xnu-8792.41.9/tests/
H A Dbacktracing_tests.c223 recurse_a(enum test_scenario, unsigned int frames);
225 recurse_b(enum test_scenario, unsigned int frames);
228 recurse_a(enum test_scenario scenario, unsigned int frames) in recurse_a() argument
230 if (frames == 1) { in recurse_a()
236 return recurse_b(scenario, frames - 1) + 1; in recurse_a()
240 recurse_b(enum test_scenario scenario, unsigned int frames) in recurse_b() argument
242 if (frames == 1) { in recurse_b()
248 return recurse_a(scenario, frames - 1) + 1; in recurse_b()
H A Dstackshot_accuracy.m217 /* 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 Dstackshot_tests.m2875 T_EXPECT_FALSE(found_null_kernel_frame, "should not see any NULL kernel frames");
/xnu-8792.41.9/osfmk/kperf/
H A Dcallstack.c410 uintptr_t *frames = vframes; in callstack_log() local
414 scrub_word(frames, nframes, j + 0, kern), in callstack_log()
415 scrub_word(frames, nframes, j + 1, kern), in callstack_log()
416 scrub_word(frames, nframes, j + 2, kern), in callstack_log()
417 scrub_word(frames, nframes, j + 3, kern)); in callstack_log()
421 uint64_t *frames = vframes; in callstack_log() local
424 scrub_frame(frames, nframes, j + 0), in callstack_log()
425 scrub_frame(frames, nframes, j + 1), in callstack_log()
426 scrub_frame(frames, nframes, j + 2), in callstack_log()
427 scrub_frame(frames, nframes, j + 3)); in callstack_log()
[all …]
/xnu-8792.41.9/tools/lldbmacros/
H A Dkasan.py241 n = unsigned(self._hdr.frames)
299 n = unsigned(self._hdr.frames)
344 return (f for f in self._btlib.get_stack(record[3]).frames())
688 frames = mo.backtrace()
689 if frames:
692 for frame in frames:
H A Dbtlog.py56 def frames(self): member in BTStack
62 for pc in self.frames():
H A Dxnu.py399 for frame in thread_val.frames:
H A Dprocess.py1526 FramePtr = ThreadVal.frames[0].GetFP()
/xnu-8792.41.9/san/tools/
H A Dkstksz213 …-- When reading from a file, we can't use CoreSymbolication to symbolicate the stack frames as the…
/xnu-8792.41.9/libsyscall/mach/
H A Derr_iokit.sub81 "(iokit/common) no DMA frames enqueued", // 0x2e0