[PATCH v4] ARM, ARM64, LONGARCH, XTENSA: Delay HW BP notification to task_work()
Huacai Chen
chenhuacai at kernel.org
Mon Oct 12 19:46:59 PDT 2026
On Mon, Oct 12, 2026 at 6:21 PM Sebastian Andrzej Siewior
<bigeasy at linutronix.de> wrote:
>
> On 2026-10-12 18:15:51 [+0800], Huacai Chen wrote:
> > Hi, Sebastian,
> Hi Huacai,
>
> > > diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h
> > > index db199d653dd1a..91e8d80220c54 100644
> > > --- a/include/linux/hw_breakpoint.h
> > > +++ b/include/linux/hw_breakpoint.h
> > > @@ -85,6 +85,9 @@ extern int register_perf_hw_breakpoint(struct perf_event *bp);
> > > extern void unregister_hw_breakpoint(struct perf_event *bp);
> > > extern void unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events);
> > > extern bool hw_breakpoint_is_used(void);
> > > +extern void perf_arch_hwbp_send_sig(struct perf_event *bp);
> > > +extern void perf_hwbp_notify(struct perf_event *bp, struct perf_sample_data *data,
> > > + struct pt_regs *regs);
> > Maybe this declaration can be put in one line because there is no 80
> > characters limit now.
>
> We don't save much, do we? It looks more readable. Maybe if the perf
> maintainer requests it. Looks like waste to repost it just for that.
>
> Any comments on the looong bits?
Others look good to me.
Reviewed-by: Huacai Chen <chenhuacai at loongson.cn>
>
> > Huacai
>
> Sebastian
More information about the linux-arm-kernel
mailing list