Changeset 7364e2d1 in mainline
- Timestamp:
- 2024-01-21T15:24:36Z (12 months ago)
- Branches:
- master
- Children:
- 33e15a0
- Parents:
- 41bfc64
- Location:
- kernel/generic/src/proc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r41bfc64 r7364e2d1 345 345 printf("Thread %" PRIu64 " stack trace:\n", THREAD->tid); 346 346 stack_trace_istate(istate); 347 } else { 348 printf("Thread %" PRIu64 " interrupt state not available\n", THREAD->tid); 347 349 } 348 350 -
kernel/generic/src/proc/thread.c
r41bfc64 r7364e2d1 907 907 */ 908 908 909 printf("Scheduling thread stack trace.\n"); 909 910 irq_spinlock_lock(&thread->lock, true); 910 911 bool sleeping = false; 912 istate_t *istate = thread->udebug.uspace_state; 913 if (istate != NULL) { 914 printf("Scheduling thread stack trace.\n"); 915 thread->btrace = true; 916 if (atomic_get_unordered(&thread->state) == Sleeping) 917 sleeping = true; 918 } else 919 printf("Thread interrupt state not available.\n"); 920 911 thread->btrace = true; 921 912 irq_spinlock_unlock(&thread->lock, true); 922 913 923 if (sleeping) 924 thread_wakeup(thread); 925 914 thread_wakeup(thread); 926 915 thread_put(thread); 927 916 }
Note:
See TracChangeset
for help on using the changeset viewer.