Skip to content

RFC perf tools: Adding xz decompression support

Jiri Olsa lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf tools: Update symtab_type with _KMODULE_COMPtools/perf/util/machine.c+8 -10 replies
2/3perf tools: Add feature check for lzma librarytools/perf/config/Makefile tools/perf/config/feature-checks/Makefile tools/perf/config/feature-checks/test-lzma.c+18 -30 replies
3/3perf tools: Add lzma decompression support for kernel moduletools/perf/Makefile.perf tools/perf/config/Makefile tools/perf/util/dso.c +2 more+118 -10 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/3] perf tools: Adding xz decompression support

hi,
adding support for decompression *.xz objects.

However I'm not sure the way we have now is optimal. For example the annotation does not work on compressed modules at the moment.

Currently we detect 'supported' suffixes for kernel modules and update the dso::symtab_type. This info then triggers decompression of the object when we need the its file descriptor in symsrc__init.

I'm thinking of some generic encapsulation of the decompression, because it's clearly needed on more places (annotation). I'll try to come up with som patches, but wanted to hear some ideas first.

Current work available at:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/lzma

thanks,
jirka

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

---
Jiri Olsa (3):
perf tools: Update symtab_type with _KMODULE_COMP perf tools: Add feature check for lzma library perf tools: Add lzma decompression support for kernel module

 tools/perf/Makefile.perf                     |  8 +++++++-
 tools/perf/config/Makefile                   | 15 ++++++++++++--
 tools/perf/config/feature-checks/Makefile    |  6 +++++-
 tools/perf/config/feature-checks/test-lzma.c |  9 +++++++++
 tools/perf/util/dso.c                        |  3 +++
 tools/perf/util/lzma.c                       | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/machine.c                    |  9 ++++++++-
 tools/perf/util/util.h                       |  4 ++++
 8 files changed, 144 insertions(+), 5 deletions(-)
 create mode 100644 tools/perf/config/feature-checks/test-lzma.c
 create mode 100644 tools/perf/util/lzma.c