Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1737468
| From | Markus Trippelsdorf <markus@trippelsdorf.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH] sched: Cleanup task->state printing |
| Date | 2017-09-22 14:50 +0200 |
| Message-ID | <usvz4-68T-33@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <us7wL-cK-25@gated-at.bofh.it> <us8VP-Zu-17@gated-at.bofh.it> <usaXD-2gx-1@gated-at.bofh.it> <ussBc-4qH-17@gated-at.bofh.it> <usuMF-5Em-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2017.09.22 at 13:54 +0200, Peter Zijlstra wrote: > On Fri, Sep 22, 2017 at 11:35:33AM +0200, Markus Trippelsdorf wrote: > > > It seems to work. Simply returning "I (idle)" from get_task_state() in > > > fs/proc/array.c when the state is TASK_IDLE does the trick. > > > I've tested top, htop and ps. > > I ended up with the below; there was quite a lot of inconsistent state > printing around it seems. > > I should probably split this thing into a bunch of patches :/ > > Alongside an explicit idle state, this also exposes TASK_PARKED, > although arguably we could map that to idle too. Opinions? Looks good to me and works as expected. Many thanks. -- Markus
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE) Tejun Heo <tj@kernel.org> - 2017-09-11 15:20 +0200
Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE) Markus Trippelsdorf <markus@trippelsdorf.de> - 2017-09-11 16:30 +0200
Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE) Markus Trippelsdorf <markus@trippelsdorf.de> - 2017-09-21 13:10 +0200
Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE) Peter Zijlstra <peterz@infradead.org> - 2017-09-21 14:40 +0200
Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE) Markus Trippelsdorf <markus@trippelsdorf.de> - 2017-09-21 16:50 +0200
Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE) Markus Trippelsdorf <markus@trippelsdorf.de> - 2017-09-22 11:40 +0200
[RFC][PATCH] sched: Cleanup task->state printing Peter Zijlstra <peterz@infradead.org> - 2017-09-22 14:00 +0200
Re: [RFC][PATCH] sched: Cleanup task->state printing Markus Trippelsdorf <markus@trippelsdorf.de> - 2017-09-22 14:50 +0200
Re: [RFC][PATCH] sched: Cleanup task->state printing Steven Rostedt <rostedt@goodmis.org> - 2017-09-22 16:20 +0200
Re: [RFC][PATCH] sched: Cleanup task->state printing Peter Zijlstra <peterz@infradead.org> - 2017-09-22 18:00 +0200
csiph-web