Skip to content

Commit 007acb6

Browse files
committed
thread state fixed
1 parent c19ed57 commit 007acb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/elf_det.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ static void print_thread_info_line(struct seq_file *m,
137137
int i;
138138
u64 total_ns, delta_ns, usage_permyriad;
139139

140-
/* Get thread state using helper function */
141-
state_char = get_thread_state_char(READ_ONCE(thread->__state));
140+
/* Get thread state using kernel helper */
141+
state_char = task_state_to_char(thread);
142142

143143
/* CPU usage for this thread */
144144
total_ns = (u64)thread->utime + (u64)thread->stime;

0 commit comments

Comments
 (0)