[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250604091936.GG38114@noisy.programming.kicks-ass.net>
Date: Wed, 4 Jun 2025 11:19:36 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Luo Gengkun <luogengkun@...weicloud.com>
Cc: mingo@...hat.com, acme@...nel.org, namhyung@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com,
jolsa@...nel.org, irogers@...gle.com, adrian.hunter@...el.com,
kan.liang@...ux.intel.com, davidcc@...gle.com,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] perf/core: Fix nr_cgroups/cpuctx->cgrp is not
updated correctly
On Wed, Jun 04, 2025 at 03:39:23AM +0000, Luo Gengkun wrote:
> Since __perf_remove_from_context updates event->state before
> list_del_event, this prevents list_del_event from calling
> perf_cgroup_event_disable, resulting in will not update nr_cgroups and
> cpuctx->cgrp.
>
> To fix this problem, move perf_cgroup_event_disable into
> __perf_remove_from_context as:
>
> commit a3c3c66670ce ("perf/core: Fix child_total_time_enabled accounting bug at task exit")
>
> did.
>
> Fixes: a3c3c66670ce ("perf/core: Fix child_total_time_enabled accounting bug at task exit")
> Signed-off-by: Luo Gengkun <luogengkun@...weicloud.com>
So I already have Yeoreum's patch for this:
https://lkml.kernel.org/r/20250603144414.GC38114@noisy.programming.kicks-ass.net
Powered by blists - more mailing lists