Skip to content

sched: Rework task state printing

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8sched: Consistent task-state printingfs/proc/array.c include/linux/sched.h+21 -203 replies
2/8sched: Convert TASK_state to hexinclude/linux/sched.h+14 -140 replies
3/8sched/debug: Remove unused variablekernel/sched/debug.c+0 -20 replies
4/8sched/trace: Fix trace_sched_switch task-state printinginclude/linux/sched.h include/trace/events/sched.h+12 -80 replies
5/8sched/trace: Use common task-state helpersinclude/linux/sched.h kernel/trace/trace_output.c kernel/trace/trace_sched_wakeup.c+12 -230 replies
6/8sched: Add explicit TASK_IDLE printingfs/proc/array.c include/linux/sched.h include/trace/events/sched.h+27 -130 replies
7/8sched: Ignore TASK_IDLE for SysRq-Wkernel/sched/core.c+23 -10 replies
8/8sched: Add explicit TASK_PARKED printingfs/proc/array.c include/linux/sched.h include/trace/events/sched.h+10 -110 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThomas GleixnerSteven Rostedt (VMware)
SeriesR-b
1/8A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] sched: Rework task state printing

With wider usage of TASK_IDLE came a few user visible annoyances. Markus reported that TASK_IDLE is reported as TASK_UNINTERRUPTIBLE and some tools like htop mark those highly visible, which is not warranted for TASK_IDLE.

This patch set reworks the task-state printing and introduces explicit handling for TASK_IDLE and TASK_PARKED.