On 9/12/25 3:11 AM, Jinchao Wang wrote:
> +/**
> + * modify_wide_hw_breakpoint_local - update breakpoint config for local cpu
> + * @bp: the hwbp perf event for this cpu
> + * @attr: the new attribute for @bp
> + *
> + * This does not release and reserve the slot of HWBP, just reuse the current
of a HWBP; it just reuses
and preferable s/cpu/CPU/ in comments.
> + * slot on local CPU. So the users must update the other CPUs by themselves.
> + * Also, since this does not release/reserve the slot, this can not change
> the
> + * type to incompatible type of the HWBP.
> + * Return err if attr is invalid or the cpu fails to update debug register
> + * for new @attr.
> + */
> +#ifdef CONFIG_HAVE_REINSTALL_HW_BREAKPOINT
> +int modify_wide_hw_breakpoint_local(struct perf_event *bp,
> + struct perf_event_attr *attr)
> +{
--
~Randy
- [PATCH v4 00/21] mm/ksw: Introduce real-time KStackWatch debu... Jinchao Wang
- [PATCH v4 01/21] x86/hw_breakpoint: Unify breakpoint ins... Jinchao Wang
- [PATCH v4 03/21] HWBP: Add modify_wide_hw_breakpoint_loc... Jinchao Wang
- Re: [PATCH v4 03/21] HWBP: Add modify_wide_hw_breakp... Randy Dunlap
- [PATCH v4 04/21] mm/ksw: add build system support Jinchao Wang
- [PATCH v4 06/21] mm/ksw: add singleton /proc/kstackwatch... Jinchao Wang
- [PATCH v4 07/21] mm/ksw: add HWBP pre-allocation Jinchao Wang
- [PATCH v4 09/21] mm/ksw: support CPU hotplug Jinchao Wang
- [PATCH v4 11/21] mm/ksw: add probe management helpers Jinchao Wang
- [PATCH v4 12/21] mm/ksw: resolve stack watch addr and le... Jinchao Wang
- [PATCH v4 14/21] mm/ksw: add self-debug helpers Jinchao Wang
- [PATCH v4 16/21] mm/ksw: add stack overflow test Jinchao Wang
- [PATCH v4 19/21] tools/ksw: add test script Jinchao Wang
