Re: [patch V2 m@/6] perf/core: Split out AUX buffer allocation
From: Thomas Gleixner
Date: Mon Aug 11 2025 - 08:44:32 EST
On Mon, Aug 11 2025 at 12:04, Peter Zijlstra wrote:
> On Mon, Aug 11, 2025 at 09:06:41AM +0200, Thomas Gleixner wrote:
>> + /* If mapped, attach to it */
>> + if (rb_has_aux(rb)) {
>> + atomic_inc(&rb->aux_mmap_count);
>> + return 0;
>
> so this was: ret = 0; goto unlock;, which then would've also taken the
> !ret branch and done perf_mmap_account(), no?
Indeed.
> These two aux and rb split out patches seem like they're trying to take
> too big a step. Let me try and do the same with smaller steps.
>
> If only to try and find bugs.
:)