Skip to content

Enable user-space breakpoint requests using PID

K.Prasad lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Introduce register_user_hbp_by_pid() and unregister_user_hbp_by_pid()include/linux/hw_breakpoint.h kernel/hw_breakpoint.c+100 -05 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Patch 0/1] Enable user-space breakpoint requests using PID

Hi All,
Please find a patch that enables user-space breakpoints to be
requested using the 'pid' of a process.

The breakpoint request, thus received, is active over all threads of the process (all task_structs having the same 'tgid') and on any new threads that get spawned eventually.

Given that the 'pid' of a process is more visible (than its task_struct), such an interface is expected to be useful to debuggers/tracers (such as SystemTap).

The patch is based on commit 7818b3d0fc68f5c2a85fed86d9fa37131c5a3068 of -tip tree. It has been tested with a hack to the -tip kernel code (that comments out all references to event->filp) due to a bug in the perf-events code (reported here [email protected]).

Thanks,
K.Prasad