Re: [PATCH V2 1/4] hw_breakpoint: Add step_needed event attribute

From: Peter Zijlstra
Date: Wed Jul 26 2017 - 03:50:11 EST


On Wed, Jul 26, 2017 at 11:12:03AM +0530, Pratyush Anand wrote:
> I too had thought to put it under include/linux/perf_event.h : struct
> perf_event. But, see hw_break_module_init() which does not have knowledge of
> this structure, and we need to have some way so that none-perf kernel module
> implementation can tell that it needs default arch step handler.
>
> Do you see any alternative?

Fix the hw_breakpoint interface?