Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-04-08 Thread Josh Poimboeuf
On Fri, Apr 08, 2016 at 10:07:10AM +0200, Petr Mladek wrote: > On Thu 2016-04-07 09:34:03, Josh Poimboeuf wrote: > > On Thu, Apr 07, 2016 at 11:47:00AM +0200, Petr Mladek wrote: > > > On Wed 2016-04-06 11:33:56, Josh Poimboeuf wrote: > > > > On Wed, Apr 06, 2016 at 03:06:19PM +0200, Petr Mladek wro

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-04-08 Thread Petr Mladek
On Thu 2016-04-07 09:34:03, Josh Poimboeuf wrote: > On Thu, Apr 07, 2016 at 11:47:00AM +0200, Petr Mladek wrote: > > On Wed 2016-04-06 11:33:56, Josh Poimboeuf wrote: > > > On Wed, Apr 06, 2016 at 03:06:19PM +0200, Petr Mladek wrote: > > We could even move this check into the livepatch code but the

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-04-07 Thread Josh Poimboeuf
On Thu, Apr 07, 2016 at 11:47:00AM +0200, Petr Mladek wrote: > On Wed 2016-04-06 11:33:56, Josh Poimboeuf wrote: > > On Wed, Apr 06, 2016 at 03:06:19PM +0200, Petr Mladek wrote: > > > On Fri 2016-03-25 14:34:52, Josh Poimboeuf wrote: > > > > This is a horrible way to detect whether a task has been

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-04-07 Thread Petr Mladek
On Wed 2016-04-06 11:33:56, Josh Poimboeuf wrote: > On Wed, Apr 06, 2016 at 03:06:19PM +0200, Petr Mladek wrote: > > On Fri 2016-03-25 14:34:52, Josh Poimboeuf wrote: > > > This is a horrible way to detect whether a task has been preempted. > > > Come up with something better: task flag? or is the

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-04-06 Thread Josh Poimboeuf
On Wed, Apr 06, 2016 at 03:06:19PM +0200, Petr Mladek wrote: > On Fri 2016-03-25 14:34:52, Josh Poimboeuf wrote: > > This is a horrible way to detect whether a task has been preempted. > > Come up with something better: task flag? or is there already an > > existing mechanism? > > What about usin

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-04-06 Thread Petr Mladek
On Fri 2016-03-25 14:34:52, Josh Poimboeuf wrote: > This is a horrible way to detect whether a task has been preempted. > Come up with something better: task flag? or is there already an > existing mechanism? What about using kallsyms_lookup_size_offset() to check the address. It is more heavywei

[RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-03-25 Thread Josh Poimboeuf
This is a horrible way to detect whether a task has been preempted. Come up with something better: task flag? or is there already an existing mechanism? Signed-off-by: Josh Poimboeuf --- include/linux/sched.h | 11 ++- kernel/sched/core.c | 26 -- 2 files chang