Changes in kernel/generic/src/proc/thread.c [577f042a:df58e44] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r577f042a rdf58e44 338 338 339 339 thread->interrupted = false; 340 thread->btrace = false; 340 341 thread->detached = false; 341 342 waitq_initialize(&thread->join_wq); … … 350 351 351 352 #ifdef CONFIG_UDEBUG 352 /* Initialize debugging stuff */ 353 thread->btrace = false; 353 /* Init debugging stuff */ 354 354 udebug_thread_initialize(&thread->udebug); 355 355 #endif … … 591 591 order_suffix(thread->kcycles, &kcycles, &ksuffix); 592 592 593 char *name;594 if (str_cmp(thread->name, "uinit") == 0)595 name = thread->task->name;596 else597 name = thread->name;598 599 593 #ifdef __32_BITS__ 600 594 if (*additional) 601 printf("%-8 %10p" PRIu64" %10p %9" PRIu64 "%c %9" PRIu64 "%c ",602 thread->tid, thread-> thread_code, thread->kstack,603 ucycles, usuffix,kcycles, ksuffix);595 printf("%-8" PRIu64" %10p %9" PRIu64 "%c %9" PRIu64 "%c ", 596 thread->tid, thread->kstack, ucycles, usuffix, 597 kcycles, ksuffix); 604 598 else 605 printf("%-8" PRIu64" %-14s %10p %-8s %10p %-5" PRIu32 " \n",606 thread->tid, name, thread, thread_states[thread->state],599 printf("%-8" PRIu64" %-14s %10p %-8s %10p %-5" PRIu32 " %10p\n", 600 thread->tid, thread->name, thread, thread_states[thread->state], 607 601 thread->task, thread->task->context, thread->thread_code); 608 602 #endif … … 616 610 else 617 611 printf("%-8" PRIu64" %-14s %18p %-8s %18p %-5" PRIu32 "\n", 618 thread->tid, name, thread, thread_states[thread->state],612 thread->tid, thread->name, thread, thread_states[thread->state], 619 613 thread->task, thread->task->context); 620 614 #endif … … 654 648 #ifdef __32_BITS__ 655 649 if (additional) 656 printf("[id ] [ code ] [stack ] [ucycles ] [kcycles]"657 " [ cpu] [waitqueue]\n");650 printf("[id ] [stack ] [ucycles ] [kcycles ] [cpu]" 651 " [waitqueue]\n"); 658 652 else 659 653 printf("[id ] [name ] [address ] [state ] [task ]" 660 " [ctx] \n");654 " [ctx] [code ]\n"); 661 655 #endif 662 656 … … 757 751 return iterator.thread; 758 752 } 759 760 #ifdef CONFIG_UDEBUG761 753 762 754 void thread_stack_trace(thread_id_t thread_id) … … 802 794 irq_spinlock_unlock(&threads_lock, true); 803 795 } 804 805 #endif /* CONFIG_UDEBUG */806 796 807 797 /** Process syscall to create new thread.
Note:
See TracChangeset
for help on using the changeset viewer.