Lines Matching refs:sf
585 struct stack_fragment *sf = data; in show_stack_fragment_cb() local
587 while (sf->off < sf->len) { in show_stack_fragment_cb()
589 size_t line_len = sf->len - sf->off > STACK_DUMP_LINE_SIZE ? in show_stack_fragment_cb()
590 STACK_DUMP_LINE_SIZE : sf->len - sf->off; in show_stack_fragment_cb()
591 bool arrow = sf->off == 0; in show_stack_fragment_cb()
593 if (frame && frame->sp == (unsigned long)(sf->sp + sf->off)) in show_stack_fragment_cb()
596 __memcpy(line, sf->sp + sf->off, line_len); in show_stack_fragment_cb()
597 print_hex_dump(sf->loglvl, arrow ? "> " : " ", DUMP_PREFIX_NONE, in show_stack_fragment_cb()
600 sf->off += STACK_DUMP_LINE_SIZE; in show_stack_fragment_cb()
609 struct stack_fragment sf; in show_stack() local
614 sf.len = min((-(size_t)sp) & (THREAD_SIZE - STACK_DUMP_ENTRY_SIZE), in show_stack()
616 sf.off = 0; in show_stack()
617 sf.sp = (u8 *)sp; in show_stack()
618 sf.loglvl = loglvl; in show_stack()
621 walk_stackframe(sp, show_stack_fragment_cb, &sf); in show_stack()
622 while (sf.off < sf.len) in show_stack()
623 show_stack_fragment_cb(NULL, &sf); in show_stack()