]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Make ctx->is_active and cpuctx->task_ctx consistent
authorPeter Zijlstra <peterz@infradead.org>
Fri, 8 Jan 2016 10:39:10 +0000 (11:39 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Jan 2016 17:54:23 +0000 (18:54 +0100)
commit978f415e93b16cacdc5abf3801aa1f70ab459be9
treef0833f9173a358737aadfefe56e7e60bb741b337
parentf1c3304fe7371925fdee32bc6d4f0ea3dd76c055
perf: Make ctx->is_active and cpuctx->task_ctx consistent

For no apparent reason and to great confusion the rules for
ctx->is_active and cpuctx->task_ctx are different. This means that its
not always possible to find all active (task) contexts.

Fix this such that if ctx->is_active gets set, we also set (or verify)
cpuctx->task_ctx.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c