Skip to content

HWBKPT v4: Hardware breakpoint implementation for s390

Mahesh Salgaonkar linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Change in v4 from the cover letter

- Introduced a kernel per tracing flag in lowcore structure for each cpu instead of global.
- Handled a race condition with interrupts/preemption while looking for PER event in hw_breakpoint_handler() routine.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3S390-HWBKPT v4:S390 architecture specific Hardwarearch/s390/Kconfig arch/s390/include/asm/Kbuild arch/s390/include/asm/hw_breakpoint.h +4 more+420 -11 reply
2/3S390-HWBKPT v4: Enabling s390 kernel for kernel PERarch/s390/include/asm/lowcore.h arch/s390/kernel/entry.S arch/s390/kernel/entry64.S +1 more+53 -80 replies
3/3S390-HWBKPT v4: Modify ptrace to use Hardwarearch/s390/include/asm/ptrace.h arch/s390/kernel/process.c arch/s390/kernel/ptrace.c+158 -691 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/3] HWBKPT v4: Hardware breakpoint implementation for s390

Hi Heiko,

Please find the set of patches that introduces s390 specific implementation for perf-events based hardware breakpoint interfaces for review.

I did not introduce kernel per tracing check under kernel exit path 'RESTORE_ALL' as you said it is not so easy (and it was too complex for me to understand).

Change in v4:
- Introduced a kernel per tracing flag in lowcore structure for each cpu instead of global.
- Handled a race condition with interrupts/preemption while looking for PER event in hw_breakpoint_handler() routine.

Change in v3:
- Merged first two patches of v1 patchset.
- Introduced second patch that implements kernel part PER tracing.

The patch set has been tested with ksym_tracer and watchpoints over GDB+ptrace and works fine.

Thanks,
-Mahesh.

Signature · 1 line
Signed-off-by: Mahesh Salgaonkar <[email protected]>