Skip to content

perf-probe: Add filtering features

Masami Hiramatsu lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 7 repliesIn review
  2. v38 patches 4 repliesSuperseded
  3. v28 patches 2 repliesApplied
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches4 repliesSuperseded

Changes in v4 from the cover letter

- Removes patches which already merged.
- [1/4] Update for the latest perf/core.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf probe: Allow to use filter on --del commandtools/perf/builtin-probe.c tools/perf/util/probe-event.c tools/perf/util/probe-event.h+39 -810 replies
2/4perf probe: Accept filter argument for --funcstools/perf/Documentation/perf-probe.txt tools/perf/builtin-probe.c+16 -63 replies
3/4perf probe: Remove redundant cleanup of params.filtertools/perf/builtin-probe.c+0 -60 replies
4/4perf probe: Cleanup and consolidate command parserstools/perf/builtin-probe.c+37 -684 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH perf/core v4 0/4] perf-probe: Add filtering features

Hi,

Here is a series of patches which improves perf-probe to add filtering features for --del and --funcs, and cleanup code.

This version is just updated for the latest perf/core.

--del and --funcs accepts filter rules too which is more flexible than simple wildcard.
----

  # ./perf probe -d 'vfs*|malloc'
  Removed event: probe:vfs_read
  Removed event: probe_libc:malloc
  ----

Changes in v4:
- Removes patches which already merged.
- [1/4] Update for the latest perf/core.

Changes in v3:
- [1/8] Split strfilter__or() and add strfilter__and() from v2 [3/8]. Also rename strfilter__add() to strfilter__append().
- [2/8] Split strfilter__string from v2 [5/8].

Changes in v2:
- [2/8] Fix to check errors except -ENOENT on deleting events.
- [5/8] Ditto.
- [5/8] Fix to check memory allocation error in strfilter__string.
- [5/8] Fix to check errors of strfilter__string for verifying given filter.

Thank you,

---

Masami Hiramatsu (4):
perf probe: Allow to use filter on --del command perf probe: Accept filter argument for --funcs perf probe: Remove redundant cleanup of params.filter perf probe: Cleanup and consolidate command parsers

 tools/perf/Documentation/perf-probe.txt |    3 -
 tools/perf/builtin-probe.c              |  128 ++++++++++++-------------------
 tools/perf/util/probe-event.c           |  102 ++++++++-----------------
 tools/perf/util/probe-event.h           |    2 
 4 files changed, 83 insertions(+), 152 deletions(-)
Signature · 5 lines
Masami HIRAMATSU
Linux Technology Research Center, System Productivity Research Dept.
Center for Technology Innovation - Systems Engineering 
Hitachi, Ltd., Research & Development Group
E-mail: [email protected]