Skip to content

perf bpf: Improve error code delivering and output

Wang Nan lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v15 patches 6 repliesApplied

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf test: Keep test result clean if '-v' not settools/perf/tests/attr.c tools/perf/tests/code-reading.c tools/perf/tests/keep-tracking.c +2 more+13 -170 replies
2/4perf tools: Mute libbpf when '-v' not settools/perf/util/bpf-loader.c+2 -20 replies
3/4bpf tools: Improve libbpf error reportingtools/lib/bpf/libbpf.c tools/lib/bpf/libbpf.h tools/perf/tests/llvm.c +2 more+120 -553 replies
4/4perf tools: Improve BPF related error messages outputtools/perf/util/bpf-loader.c tools/perf/util/bpf-loader.h tools/perf/util/parse-events.c+110 -130 replies

Reviews trailers per patch

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

PatchNamhyung Kim
1/4A-b
2/4
3/4
4/4

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

Read the v2 thread

Cover letter [PATCH v2 0/4] perf bpf: Improve error code delivering and output

This patchset is based on perf/core
(commit bebd23a2ed31d47e7dd746d3b125068aa2c42d85 in Arnaldo's tree).

Compare with v1 [1], this patchset changes error reporting convention and the user of it at one same patch, avoid NULL checking in perf.

Wang Nan (4):
perf test: Keep test result clean if '-v' not set perf tools: Mute libbpf when '-v' not set bpf tools: Improve libbpf error reporting perf tools: Improve BPF related error messages output

 tools/lib/bpf/libbpf.c             | 149 +++++++++++++++++++++++++------------
 tools/lib/bpf/libbpf.h             |  12 +++
 tools/perf/tests/attr.c            |   3 +-
 tools/perf/tests/code-reading.c    |   8 +-
 tools/perf/tests/keep-tracking.c   |   4 +-
 tools/perf/tests/llvm.c            |  13 ++--
 tools/perf/tests/switch-tracking.c |   4 +-
 tools/perf/util/bpf-loader.c       | 110 +++++++++++++++++++++++----
 tools/perf/util/bpf-loader.h       |  18 +++++
 tools/perf/util/parse-events.c     |  11 +--
 10 files changed, 245 insertions(+), 87 deletions(-)
Signature · 1 line
1.8.3.4