Skip to content

perf-probe updates - data-structure support, etc.

Masami Hiramatsu lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 21 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10perf tools: Introduce xzalloc() for detecting out of memorytools/perf/util/util.h+7 -01 reply
2/10perf probe: Use wrapper functionstools/perf/builtin-probe.c tools/perf/util/probe-event.c tools/perf/util/probe-finder.c+24 -401 reply
3/10perf probe: Move add-probe routine under util/tools/perf/builtin-probe.c tools/perf/util/probe-event.c tools/perf/util/probe-event.h+139 -1261 reply
4/10perf probe: Rename session to paramtools/perf/builtin-probe.c+27 -271 reply
5/10perf probe: Rename some die_get_* functionstools/perf/util/probe-finder.c+8 -81 reply
6/10perf probe: Introduce die_find_child() functiontools/perf/util/probe-finder.c+80 -561 reply
7/10perf probe: Add --dry-run optiontools/perf/Documentation/perf-probe.txt tools/perf/builtin-probe.c tools/perf/util/probe-event.c +1 more+24 -81 reply
8/10perf probe: Introduce kprobe_trace_event and perf_probe_eventtools/perf/builtin-probe.c tools/perf/util/probe-event.c tools/perf/util/probe-event.h +2 more+589 -3765 replies
9/10perf probe: List probes with line number and file nametools/perf/util/probe-event.c tools/perf/util/probe-finder.c tools/perf/util/probe-finder.h+116 -131 reply
10/10perf probe: Accessing members in data structurestools/perf/util/probe-event.c tools/perf/util/probe-event.h tools/perf/util/probe-finder.c+201 -67 replies

Reviews trailers per patch

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

PatchMasami Hiramatsu
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10A-b
9/10
10/10

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/10] perf-probe updates - data-structure support, etc.

Hi Ingo,

Here are several updates of perf-probe.
This updates includes data structure accessing support --list option enhancement and --dry-run option support.

- --dry-run allows users to run perf-probe just for checking that the command works correctly.

- --list option enhancement allows user to check where the probes are put on (with filename/line number).

- data structure accessing support allows user to trace the contents of local variables/function parameters.

Long-term TODOs (future features):
- Enhance probe-finder to decode call frame instructions.
- Support tracing static variables (non global)
- Support variable basic types from debuginfo (e.g. char, int, ...)
- Support array element (var[N])
- Support string/dynamic arrays (*var, var[N..M])
- Support the type of return value
- Support force type-casting ((type)var)
- Support sys_perf_counter_open (for non-root users)
- Support dynamic array-indexing (var[var2])

Miscs:
- Better support for probes on modules
- More debugger like enhancements(%next, --disasm, etc.)

Thank you,

---

Masami Hiramatsu (10):
perf probe: Accessing members in data structures perf probe: List probes with line number and file name perf probe: Introduce kprobe_trace_event and perf_probe_event perf probe: Add --dry-run option
perf probe: Introduce die_find_child() function perf probe: Rename some die_get_* functions
perf probe: Rename session to param
perf probe: Move add-probe routine under util/ perf probe: Use wrapper functions
perf tools: Introduce xzalloc() for detecting out of memory

 tools/perf/Documentation/perf-probe.txt |    5 
 tools/perf/builtin-probe.c              |  191 +------
 tools/perf/util/probe-event.c           |  830 +++++++++++++++++++++++--------
 tools/perf/util/probe-event.h           |  123 ++++-
 tools/perf/util/probe-finder.c          |  459 ++++++++++++-----
 tools/perf/util/probe-finder.h          |   60 +-
 tools/perf/util/util.h                  |    7 
 7 files changed, 1115 insertions(+), 560 deletions(-)
Signature · 2 lines
Masami Hiramatsu
e-mail: [email protected]