Skip to content

tracing/kprobes: Dynamic events on module support

Masami Hiramatsu lkml 1 version In review

Get series with b4
b4 am 20110627072626.6528.41792.stgit@fedora15

Versions newest first

  1. v1 Latest13 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13tracing/kprobes: Rename probe_* to trace_probe_*kernel/trace/trace_kprobe.c+22 -211 reply
2/13tracing/kprobes: merge trace probe enable/disable functionskernel/trace/trace_kprobe.c+34 -547 replies
3/13kprobes: Return -ENOENT if probe point doesn't existkernel/kprobes.c+23 -102 replies
4/13tracing/kprobes: Support module init function probingDocumentation/trace/kprobetrace.txt kernel/trace/trace_kprobe.c+143 -301 reply
5/13tracing/kprobe: Update symbol reference when loading modulekernel/trace/trace_kprobe.c+36 -11 reply
6/13perf probe: Rename DIE_FIND_CB_FOUND to DIE_FIND_CB_ENDtools/perf/util/probe-finder.c+6 -61 reply
7/13perf probe: Move strtailcmp to string.ctools/perf/util/probe-finder.c tools/perf/util/string.c tools/perf/util/util.h+20 -151 reply
8/13perf probe: Remove redundant dwarf functionstools/perf/util/probe-finder.c+13 -371 reply
9/13perf-probe: Move dwarf library routines to dwarf-aux.{c, h}tools/perf/Makefile tools/perf/util/dwarf-aux.c tools/perf/util/dwarf-aux.h +2 more+768 -5231 reply
10/13perf probe: Warn when more than two lines are giventools/perf/builtin-probe.c+8 -32 replies
11/13perf probe: Introduce debuginfo to encapsulate dwarf informationtools/perf/util/probe-event.c tools/perf/util/probe-finder.c tools/perf/util/probe-finder.h+182 -1361 reply
12/13perf probe: Add probed module in front of functiontools/perf/util/probe-event.c tools/perf/util/probe-event.h+39 -91 reply
13/13perf probe: Support adding probes on offline kernel modulestools/perf/Documentation/perf-probe.txt tools/perf/builtin-probe.c tools/perf/util/probe-event.c+49 -121 reply

Reviews trailers per patch

1 of 13 patches has a Reviewed-by or Acked-by.

PatchAnanth N Mavinakayanahalli
1/13
2/13
3/13A-b A-b
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -tip 00/13]tracing/kprobes: Dynamic events on module support

Hi Steven,

Here, I'd like to push updates of dynamic events and perf-probe for supporting dynamic events on module.

The main part of this series is 1-5th patches for kprobes and dynamic event tracer, which allows us to add events on offline kernel module. This means we can put events even on the init functions of the drivers before loading. The requirement of this feature comes from my recent experience of a driver debugging. It had a timing bug in the initialization routine, and it was hard to catch them without tracing the behavior.

I added some perf-probe updates (which including some resent patches), And it's OK to pull only the main part (kprobes and ftrace patches) without perf updates.

Thank you,

---

Masami Hiramatsu (13):
perf probe: Support adding probes on offline kernel modules perf probe: Add probed module in front of function [RESEND]perf probe: Introduce debuginfo to encapsulate dwarf information [RESEND]perf probe: Warn when more than two lines are given [RESEND][CLEANUP]perf-probe: Move dwarf library routines to dwarf-aux.{c,h} [RESEND][CLEANUP]perf probe: Remove redundant dwarf functions [RESEND][CLEANUP]perf probe: Move strtailcmp to string.c [RESEND][CLEANUP]perf probe: Rename DIE_FIND_CB_FOUND to DIE_FIND_CB_END tracing/kprobe: Update symbol reference when loading module tracing/kprobes: Support module init function probing
kprobes: Return -ENOENT if probe point doesn't exist [CLEANUP]tracing/kprobes: merge trace probe enable/disable functions [CLEANUP]tracing/kprobes: Rename probe_* to trace_probe_*

 Documentation/trace/kprobetrace.txt     |    9 
 kernel/kprobes.c                        |   33 +
 kernel/trace/trace_kprobe.c             |  314 +++++++++----
 tools/perf/Documentation/perf-probe.txt |    6 
 tools/perf/Makefile                     |    2 
 tools/perf/builtin-probe.c              |   14 -
 tools/perf/util/dwarf-aux.c             |  663 +++++++++++++++++++++++++++
 tools/perf/util/dwarf-aux.h             |  100 ++++
 tools/perf/util/probe-event.c           |  165 +++++--
 tools/perf/util/probe-event.h           |    1 
 tools/perf/util/probe-finder.c          |  752 ++++---------------------------
 tools/perf/util/probe-finder.h          |   43 +-
 tools/perf/util/string.c                |   19 +
 tools/perf/util/util.h                  |    1 
 14 files changed, 1304 insertions(+), 818 deletions(-)
 create mode 100644 tools/perf/util/dwarf-aux.c
 create mode 100644 tools/perf/util/dwarf-aux.h
Signature · 4 lines
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: [email protected]