[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zo_mOuq9Gr9CzRP-@krava>
Date: Thu, 11 Jul 2024 16:03:38 +0200
From: Jiri Olsa <olsajiri@...il.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: mingo@...nel.org, andrii@...nel.org, oleg@...hat.com,
linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org,
rostedt@...dmis.org, mhiramat@...nel.org, clm@...a.com,
paulmck@...nel.org
Subject: Re: [PATCH v2 08/11] perf/uprobe: Convert (some) uprobe->refcount to
SRCU
On Thu, Jul 11, 2024 at 01:02:43PM +0200, Peter Zijlstra wrote:
SNIP
> /* Tracing handlers use ->utask to communicate with fetch methods */
> if (!get_utask())
> - goto out;
> + return;
>
> if (arch_uprobe_ignore(&uprobe->arch, regs))
> - goto out;
> + return;
>
> handler_chain(uprobe, regs);
>
> if (arch_uprobe_skip_sstep(&uprobe->arch, regs))
> - goto out;
> -
> - if (!pre_ssout(uprobe, regs, bp_vaddr))
> return;
>
> - /* arch_uprobe_skip_sstep() succeeded, or restart if can't singlestep */
> -out:
> - put_uprobe(uprobe);
> + pre_ssout(uprobe, regs, bp_vaddr);
pre_ssout could now return void
jirka
> }
>
> /*
>
>
Powered by blists - more mailing lists