[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191204123656.GU2844@hirez.programming.kicks-ass.net>
Date: Wed, 4 Dec 2019 13:36:56 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: "Liang, Kan" <kan.liang@...ux.intel.com>
Cc: mingo@...hat.com, acme@...nel.org, tglx@...utronix.de,
bp@...en8.de, linux-kernel@...r.kernel.org, eranian@...gle.com,
alexey.budankov@...ux.intel.com, vitaly.slobodskoy@...el.com,
ak@...ux.intel.com
Subject: Re: [RFC PATCH 2/8] perf: Helpers for alloc/init/fini PMU specific
data
On Mon, Dec 02, 2019 at 03:35:00PM -0500, Liang, Kan wrote:
> Could you please give me an example?
There's a ton of refcounting in perf, none of it follows this pattern.
> I think we do need something to protect the refcount. Are you suggesting
> atomic_*?
refcount_t comes to mind.
Powered by blists - more mailing lists