Skip to content

RFC tracing - signal tracer, support multiple pids in set_pid_ftrace

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracing - signal tracerinclude/linux/signaltrace.h include/linux/tracehook.h kernel/signal.c +4 more+192 -00 replies
2/2tracing - support multiple pids in set_pid_ftrace filekernel/trace/ftrace.c kernel/trace/trace.h+164 -660 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] tracing - signal tracer, support multiple pids in set_pid_ftrace

I was debugging some ptrace applications and got to the idea of tracing signals - signal tracer. There's probably possibility to trace more info than just signal delivery info (like ignored signals deliveries, queue status...).

While doing this I realized it might be worth to have ability to trace more independent processes via set_pid_ftrace file.

Althought I'm sending this as RFC, attached patches work for me. I'm open to any suggestions/comments/ideas.

1/2 - signal trace
2/2 - multiple pids support for set_pid_ftrace file

thanks,
jirka

---
 include/linux/signaltrace.h |   22 ++++
 include/linux/tracehook.h   |   14 +++
 kernel/signal.c             |    3 +
 kernel/trace/Kconfig        |   11 ++
 kernel/trace/Makefile       |    1 +
 kernel/trace/ftrace.c       |  226 +++++++++++++++++++++++++++++++------------
 kernel/trace/trace.h        |   13 ++-
 kernel/trace/trace_signal.c |  132 +++++++++++++++++++++++++
 8 files changed, 356 insertions(+), 66 deletions(-)