Re: [PATCH 4/8] perf/hw_breakpoint: Make hw_breakpoint_weight() inlinable

From: Peter Zijlstra
Date: Thu Jun 09 2022 - 09:25:38 EST


On Thu, Jun 09, 2022 at 02:03:12PM +0200, Dmitry Vyukov wrote:

> > -__weak int hw_breakpoint_weight(struct perf_event *bp)
>
> Humm... this was added in 2010 and never actually used to return
> anything other than 1 since then (?). Looks like over-design. Maybe we
> drop "#ifndef" and add a comment instead?

Frederic, you have any recollection what this was supposed to go do?