[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180614193617.GZ12217@hirez.programming.kicks-ass.net>
Date: Thu, 14 Jun 2018 21:36:17 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
linux-kernel@...r.kernel.org, jolsa@...hat.com,
Adrian Hunter <adrian.hunter@...el.com>
Subject: Re: [PATCH v1 6/6] perf: Allow set-output for task contexts of
different types
On Tue, Jun 12, 2018 at 10:51:17AM +0300, Alexander Shishkin wrote:
> From: Adrian Hunter <adrian.hunter@...el.com>
>
> Set-output must be limited to events that cannot be active on different
> cpus at the same time. Thus either the event cpu must be the same, or
> the event task must be the same.
> Current logic does not check the task
> directly but checks whether the perf_event_context is the same, however
> there are separate contexts for hardware and software events so in that
> case the perf_event_context is different even though the task is the same.
Thing is, __perf_event_task_sched_out() can lazy switch the different
contexts independently. So if someone breaks clone on either software or
hardware but not both, we'll flip only one ctx around and schedule the
other, completely breaking your assumption above.
> This patch changes the logic to check the task directly.
This Changelog completly and utterly fails to explain why though.
Powered by blists - more mailing lists