Re: [PATCH v2] arm64: Return early when break handler is found on linked-list
From: Catalin Marinas
Date: Fri Nov 01 2024 - 13:36:30 EST
On Thu, 24 Oct 2024 03:41:20 +0000, Liao Chang wrote:
> The search for breakpoint handlers iterate through the entire
> linked list. Given that all registered hook has a valid fn field, and no
> registered hooks share the same mask and imm. This commit optimize the
> efficiency slightly by returning early as a matching handler is found.
>
> v2->v1:
> Remove all WARN_ON(!hook->fn) in v1 as Will suggested.
>
> [...]
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: Return early when break handler is found on linked-list
https://git.kernel.org/arm64/c/9a0e3b92b02e
--
Catalin