Skip to content

RFC perf session: Separate struct machines from session

Namhyung Kim lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf tools: Introduce machines__new/delete()tools/perf/builtin-annotate.c tools/perf/builtin-buildid-cache.c tools/perf/builtin-buildid-list.c +18 more+196 -330 replies
2/2perf session: Separate struct machines from sessiontools/perf/builtin-annotate.c tools/perf/builtin-diff.c tools/perf/builtin-kmem.c +10 more+47 -470 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/2] perf session: Separate struct machines from session

Hi Arnaldo,

This is what I have now for the earlier discussion [1]. I just used machines__new/delete functions directly whenever a session is created/deleted. As it touches many callsites, and it needs bit more caring about the error path, you may want to split the first patch for each command. In any case, pleaes let me know what do you think.

Note that this patchset bases on my (slightely modified) previous multi-thread patchset so will not be applied to the current perf/core. I'll rebase and send out after we conclude how to deal with it.

Thanks,
Namhyung

[1] https://lkml.org/lkml/2015/5/19/1062

Namhyung Kim (2):
perf tools: Introduce machines__new/delete() perf session: Separate struct machines from session

 tools/perf/builtin-annotate.c      |  7 ++++++-
 tools/perf/builtin-buildid-cache.c | 14 ++++++++++++--
 tools/perf/builtin-buildid-list.c  | 16 +++++++++++++---
 tools/perf/builtin-diff.c          | 16 ++++++++++++++--
 tools/perf/builtin-evlist.c        | 18 +++++++++++++++---
 tools/perf/builtin-inject.c        |  5 +++++
 tools/perf/builtin-kmem.c          | 14 +++++++++-----
 tools/perf/builtin-kvm.c           | 14 +++++++++++++-
 tools/perf/builtin-lock.c          |  7 ++++++-
 tools/perf/builtin-mem.c           | 12 +++++++++---
 tools/perf/builtin-record.c        | 14 ++++++++++----
 tools/perf/builtin-report.c        | 13 ++++++++++---
 tools/perf/builtin-sched.c         |  8 +++++++-
 tools/perf/builtin-script.c        | 32 ++++++++++++++++++++++++--------
 tools/perf/builtin-timechart.c     | 12 +++++++++---
 tools/perf/builtin-top.c           | 23 ++++++++++++++++-------
 tools/perf/builtin-trace.c         | 10 ++++++++--
 tools/perf/util/build-id.c         | 16 ++++++++--------
 tools/perf/util/data-convert-bt.c  |  8 +++++++-
 tools/perf/util/intel-bts.c        |  2 +-
 tools/perf/util/intel-pt.c         |  2 +-
 tools/perf/util/machine.c          | 15 +++++++++++++++
 tools/perf/util/machine.h          |  3 +++
 tools/perf/util/session.c          | 30 +++++++++++++++---------------
 tools/perf/util/session.h          |  6 +++---
 tools/perf/util/tool.h             |  2 ++
 26 files changed, 241 insertions(+), 78 deletions(-)
Signature · 1 line
2.4.1