• Peter Zijlstra's avatar
    perf: Make ctx->is_active and cpuctx->task_ctx consistent · 63e30d3e
    Peter Zijlstra authored
    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: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    63e30d3e
core.c 218 KB