Skip to content

perf kvm: A small update in the default arch event

Namhyung Kim linux-perf-users lkml 3 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 2 repliesApplied
  2. v26 patches 0 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6perf kvm: Factor out kvm_need_default_arch_event()tools/perf/builtin-kvm.c tools/perf/util/kvm-stat-arch/kvm-stat-powerpc.c tools/perf/util/kvm-stat-arch/kvm-stat-x86.c +2 more+70 -610 replies
2/6perf kvm: Check kvm_need_default_arch_event() earlytools/perf/builtin-kvm.c+11 -100 replies
3/6perf kvm: Kill STRDUP_FAIL_EXIT()tools/perf/builtin-kvm.c tools/perf/util/kvm-stat-arch/kvm-stat-powerpc.c tools/perf/util/kvm-stat-arch/kvm-stat-x86.c +1 more+24 -530 replies
4/6perf kvm: Do not copy filename stringtools/perf/builtin-kvm.c+4 -100 replies
5/6perf kvm: Fix a memory leak in the usage stringtools/perf/builtin-kvm.c+8 -70 replies
6/6perf test: Extend perf kvm tests to check default eventtools/perf/tests/shell/kvm.sh+10 -00 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchIan Rogers
SeriesT-b
1/6
2/6
3/6
4/6
5/6
6/6

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

Read the v3 thread

Cover letter [PATCH v3 0/6] perf kvm: A small update in the default arch event

Hello,

Ian said there's an issue in the perf kvm record command line option parsing. This is my attempt to address the issue, simplify the code and fix memory leaks.

v3 changes)
* remove unnecessary error check (Sashiko)
* update test code after rebase

v2 changes)
* handle kvm top subcommand (Sashiko)
* handle other arch/condition for the default events (Sashiko)
* add <stdlib.h> for musl compatibility (Sashiko)
* fix some memory leaks

Thanks,
Namhyung

Namhyung Kim (6):
perf kvm: Factor out kvm_need_default_arch_event() perf kvm: Check kvm_need_default_arch_event() early perf kvm: Kill STRDUP_FAIL_EXIT()
perf kvm: Do not copy filename string
perf kvm: Fix a memory leak in the usage string perf test: Extend perf kvm tests to check default event

 tools/perf/builtin-kvm.c                      | 109 ++++++++----------
 tools/perf/tests/shell/kvm.sh                 |  10 ++
 .../util/kvm-stat-arch/kvm-stat-powerpc.c     |  31 +----
 tools/perf/util/kvm-stat-arch/kvm-stat-x86.c  |  37 +-----
 tools/perf/util/kvm-stat.c                    |  41 +++++++
 tools/perf/util/kvm-stat.h                    |  18 ++-
 6 files changed, 116 insertions(+), 130 deletions(-)
Signature · 1 line
2.55.0.rc0.799.gd6f94ed593-goog