From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761040AbbA3KXQ (ORCPT ); Fri, 30 Jan 2015 05:23:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49079 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760686AbbA3KWq (ORCPT ); Fri, 30 Jan 2015 05:22:46 -0500 From: Jiri Olsa To: linux-kernel@vger.kernel.org Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Corey Ashford , David Ahern , Frederic Weisbecker , Ingo Molnar , Josh Stone , Namhyung Kim , Paul Mackerras , Peter Zijlstra Subject: [RFC 0/3] perf tools: Adding xz decompression support Date: Fri, 30 Jan 2015 11:22:23 +0100 Message-Id: <1422613346-22077-1-git-send-email-jolsa@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Josh Stone Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra --- 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