[PATCH v2] arm64: Return early when break handler is found on linked-list

Catalin Marinas catalin.marinas at arm.com
Fri Nov 1 10:36:16 PDT 2024


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




More information about the linux-arm-kernel mailing list