Skip to content

perf bpf_counter: A set of random fixes (v1)

Namhyung Kim bpf linux-perf-users lkml 1 version Applied

Status from this message: Applied,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4perf bpf_counter: Add more error messages for bperftools/perf/util/bpf_counter.c+7 -20 replies
2/4perf bpf_counter: Increase perf_attr_map entries to 32tools/perf/util/bpf_counter.c+1 -10 replies
3/4perf bpf_counter: Handle unsupported cgroup eventstools/perf/util/bpf_counter_cgroup.c+3 -111 reply
4/4perf stat: Do not use the same cgroup more than oncetools/perf/util/cgroup.c+18 -51 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] perf bpf_counter: A set of random fixes (v1)

Hello,

This is a collection of small fixes for perf stat bpf counters (bperf).

The bperf framework maintains perf_attr_map in the BPF fs to share the same event as much as possible. But the size was limited to 16 and perf stat with -ddd option would create more than 16 events and fails.

Also cgroup events with --for-each-cgroup had some other problems when dealing with unsupported events and duplicate cgroups.

The code is available at 'perf/stat-bpf-fix-v1' branch in

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung

Namhyung Kim (4):
perf bpf_counter: Add more error messages for bperf perf bpf_counter: Increase perf_attr_map entries to 32 perf bpf_counter: Handle unsupported cgroup events perf stat: Do not use the same cgroup more than once

 tools/perf/util/bpf_counter.c        | 11 ++++++++---
 tools/perf/util/bpf_counter_cgroup.c | 14 +++-----------
 tools/perf/util/cgroup.c             | 23 ++++++++++++++++++-----
 3 files changed, 29 insertions(+), 19 deletions(-)

base-commit: d8d85ce86dc82de4f88b821a78f533b9d5b22a45

Signature · 1 line
2.39.0.314.g84b9a713c41-goog