Hi Masami,
Thanks for the review and clarification.
As suggested, I dropped the reopt_unblocked_probes flag and simply retry
optimize_kprobe() from do_free_cleaned_kprobes() after the aggregator is
fully reverted. The stale comment in __disarm_kprobe() is also removed.
No new state is added to struct optimized_kprobe.
Changes since v2:
- reoptimize the sibling directly in do_free_cleaned_kprobes()
- no new fields in struct optimized_kprobe
- remove the obsolete TODO in __disarm_kprobe()
- Link to v2: https://lore.kernel.org/all/C5E6295166D4EDE9+20251210033321.2895692-1-hongao@uniontech.com/
Thanks,
Hongao
---
Hongao (1):
kprobes: retry blocked optprobe in do_free_cleaned_kprobes
kernel/kprobes.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
--
2.50.1