Re: [PATCH 1/1] fix-task-states-in-sched_switch-event.patch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Monday, May 17, 2010 - 9:54 am

On Mon, 2010-05-17 at 17:21 +0200, Carsten Emde wrote:


We could manually add:

#define EXIT_ZOMBIE TASK_ZOMBIE
#define EXIT_DEAD TASK_DEAD

But those two __TASK ones are unfortunate indeed.


#define TASK_STATE(tstate, tstate_c, tstate_s) \
	{ __TASK_##tstate, tstate_c },
#include <linux/task_state.h>
#undef TASK_STATE

Should get you mostly there I guess, trick would be making the user deal
with { 0, "R" }


Dunno, I guess we can do with your version, just wanted to mention this
method.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] fix-task-states-in-sched_switch-event.patch, Carsten Emde, (Sun May 16, 3:18 pm)
Re: [PATCH 1/1] fix-task-states-in-sched_switch-event.patch, Peter Zijlstra, (Mon May 17, 9:54 am)