[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160113173005.GT6357@twins.programming.kicks-ass.net>
Date: Wed, 13 Jan 2016 18:30:05 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: mingo@...nel.org, eranian@...gle.com, linux-kernel@...r.kernel.org,
vince@...ter.net, dvyukov@...gle.com, andi@...stfloor.org,
jolsa@...hat.com
Subject: Re: [RFC][PATCH 12/12] perf: Collapse and fix event_function_call()
users
On Wed, Jan 13, 2016 at 03:46:58PM +0200, Alexander Shishkin wrote:
> Peter Zijlstra <peterz@...radead.org> writes:
>
> > @@ -2250,7 +2269,11 @@ static void __perf_event_enable(struct p
> > if (leader != event && leader->state != PERF_EVENT_STATE_ACTIVE)
> > return;
> >
> > - ctx_resched(cpuctx, ctx);
> > + task_ctx = cpuctx->task_ctx;
> > + if (ctx->task)
> > + WARN_ON_ONCE(task_ctx != ctx);
> > +
> > + ctx_resched(cpuctx, task_ctx);
>
> Afaict, ctx_resched() path already does this in task_ctx_sched_out().
It does not; that got changed somewhere along the way :-)
Powered by blists - more mailing lists