Skip to content

RFC perf tools: Factor features display code

Jiri Olsa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6perf tools: Factor features display codetools/perf/Makefile.perf tools/perf/config/Makefile+85 -423 replies
2/6perf tools: Add variable display for VF make outputtools/perf/config/Makefile+19 -40 replies
3/6perf tools: Add feature check for libdw dwarf unwindtools/perf/config/Makefile tools/perf/config/feature-checks/Makefile tools/perf/config/feature-checks/test-all.c +1 more+35 -80 replies
4/6perf tools: Add libdw DWARF post unwind supporttools/perf/Makefile.perf tools/perf/arch/x86/Makefile tools/perf/arch/x86/util/unwind-libdw.c +3 more+297 -00 replies
5/6perf tools: Setup default dwarf post unwindertools/perf/Makefile.perf tools/perf/arch/x86/Makefile tools/perf/config/Makefile+66 -230 replies
6/6perf tests: Add NO_LIBDW_DWARF_UNWIND make testtools/perf/tests/make+3 -00 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/6] perf tools: Factor features display code

hi,
sending factored code for detected features display.

The main reason for this was the rest of the libdw DWARF unwind patchset, so I attached it as well to show up the benefit (patch 5).

Basically I'm splitting the detected features output to 'detected libraries' (displayed now by default) and the rest. Please check patch 1 changelog for all the factoring details.

The factored code now allows the detection code to easily display which of the DWARF unwind libraries is compiled in.

It passed tests/make suite.

You can try in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/libdw_unwind10

thanks for comments,
jirka

Cc Corey Ashford <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc David Ahern <[email protected]>
Cc Jean Pihet <[email protected]>

---
Jiri Olsa (6):
perf tools: Factor features display code perf tools: Add variable display for VF make output perf tools: Add feature check for libdw dwarf unwind perf tools: Add libdw DWARF post unwind support perf tools: Setup default dwarf post unwinder perf tests: Add NO_LIBDW_DWARF_UNWIND make test

 tools/perf/Makefile.perf                                   |  14 ++++-
 tools/perf/arch/x86/Makefile                               |   5 ++
 tools/perf/arch/x86/util/unwind-libdw.c                    |  51 ++++++++++++++++
 tools/perf/config/Makefile                                 | 232 ++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
 tools/perf/config/feature-checks/Makefile                  |   6 +-
 tools/perf/config/feature-checks/test-all.c                |   5 ++
 tools/perf/config/feature-checks/test-libdw-dwarf-unwind.c |  13 ++++
 tools/perf/tests/make                                      |   3 +
 tools/perf/util/unwind-libdw.c                             | 210 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/unwind-libdw.h                             |  21 +++++++
 10 files changed, 494 insertions(+), 66 deletions(-)
 create mode 100644 tools/perf/arch/x86/util/unwind-libdw.c
 create mode 100644 tools/perf/config/feature-checks/test-libdw-dwarf-unwind.c
 create mode 100644 tools/perf/util/unwind-libdw.c
 create mode 100644 tools/perf/util/unwind-libdw.h