Skip to content

RFC perf_env/CPU socket reorg/fixes

Arnaldo Carvalho de Melo lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest13 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13perf env: Move perf_env out of header.h and session.c into separate objecttools/perf/util/Build tools/perf/util/env.c tools/perf/util/env.h +2 more+59 -510 replies
2/13perf env: Rename some leftovers from rename to perf_envtools/perf/arch/common.c tools/perf/arch/common.h tools/perf/builtin-annotate.c +2 more+9 -110 replies
3/13perf env: Adopt perf_header__set_cmdlinetools/perf/util/env.c tools/perf/util/env.h tools/perf/util/header.c +1 more+49 -400 replies
4/13perf env: Introduce read_cpu_topology_map() methodtools/perf/perf.c tools/perf/util/env.c tools/perf/util/env.h +1 more+42 -1610 replies
5/13perf sort: Set flag stating if the "socket" key is being usedtools/perf/util/sort.c tools/perf/util/sort.h+4 -00 replies
6/13perf top: Cache the cpu topology info when "-s socket" is usedtools/perf/builtin-top.c+15 -00 replies
7/13perf hists browser: Fixup the "cpu" column width calculationtools/perf/util/hist.c+1 -01 reply
8/13perf machine: Add pointer to sample's environmenttools/perf/util/header.c tools/perf/util/machine.c tools/perf/util/machine.h +1 more+5 -00 replies
9/13perf event: Use machine->env to find the cpu -> socket mappingtools/perf/util/event.c+8 -10 replies
10/13perf report: Do not blindly use env->cpu[al.cpu].socket_idtools/perf/builtin-report.c+0 -41 reply
11/13Revert "perf evsel: Add a backpointer to the evlist a evsel is in"tools/perf/util/evlist.c tools/perf/util/evsel.c tools/perf/util/evsel.h+0 -81 reply
12/13perf evsel: Remove forward declaration of 'struct perf_evlist'tools/perf/util/evsel.h+0 -10 replies
13/13Revert "perf evlist: Add backpointer for perf_env to evlist"tools/perf/util/evlist.h tools/perf/util/header.c+1 -20 replies

Reviews trailers per patch

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

PatchJiri OlsaWang NanNamhyung Kim
SeriesT-b
1/13
2/13
3/13
4/13A-b
5/13
6/13
7/13T-b
8/13
9/13Based-on-a-patch-by
10/13Based-on-a-patch-by
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [RFC 00/13] perf_env/CPU socket reorg/fixes

Hi,

Please take a look at these changes to fix the problems reported by
Wang Nan wrt accesses to the cpu_topology_map information.

The fixes are present on these following two csets:

perf event: Use machine->env to find the cpu -> socket mapping perf report: Do not blindly use env->cpu[al.cpu].socket_id

The rest are fixes made while working on this, infrastructure to enable
the fixes, reverts for things that ended up not being necessary and some cleanups.

It is available at:

git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/env

Please let me know if I can have your Acked-by, Tested-by or
Reviewed-by.

- Arnaldo

Arnaldo Carvalho de Melo (13):
perf env: Move perf_env out of header.h and session.c into separate object perf env: Rename some leftovers from rename to perf_env
perf env: Adopt perf_header__set_cmdline
perf env: Introduce read_cpu_topology_map() method
perf sort: Set flag stating if the "socket" key is being used perf top: Cache the cpu topology info when "-s socket" is used perf hists browser: Fixup the "cpu" column width calculation perf machine: Add pointer to sample's environment
perf event: Use machine->env to find the cpu -> socket mapping perf report: Do not blindly use env->cpu[al.cpu].socket_id Revert "perf evsel: Add a backpointer to the evlist a evsel is in" perf evsel: Remove forward declaration of 'struct perf_evlist' Revert "perf evlist: Add backpointer for perf_env to evlist"