Will be used to decompress 'xz' objects.
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: David Ahern <[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]>
---
tools/perf/config/Makefile | 6 ++++--
tools/perf/config/feature-checks/Makefile | 6 +++++-
tools/perf/config/feature-checks/test-lzma.c | 9 +++++++++
3 files changed, 18 insertions(+), 3 deletions(-)
create mode 100644 tools/perf/config/feature-checks/test-lzma.c
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index cc224080b525..d49e1ebb3e41 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -202,7 +202,8 @@ CORE_FEATURE_TESTS = \
stackprotector-all \
timerfd \
libdw-dwarf-unwind \
- zlib
+ zlib \
+ lzma
LIB_FEATURE_TESTS = \
dwarf \
@@ -217,7 +218,8 @@ LIB_FEATURE_TESTS = \
libslang \
libunwind \
libdw-dwarf-unwind \
- zlib
+ zlib \
+ lzma
VF_FEATURE_TESTS = \
backtrace \
diff --git a/tools/perf/config/feature-checks/Makefile
b/tools/perf/config/feature-checks/Makefile
index 42ac05aaf8ac..cd0a4eab78ab 100644
--- a/tools/perf/config/feature-checks/Makefile
+++ b/tools/perf/config/feature-checks/Makefile
@@ -31,7 +31,8 @@ FILES= \
test-libdw-dwarf-unwind.bin \
test-compile-32.bin \
test-compile-x32.bin \
- test-zlib.bin
+ test-zlib.bin \
+ test-lzma.bin
CC := $(CROSS_COMPILE)gcc -MD
PKG_CONFIG := $(CROSS_COMPILE)pkg-config
@@ -147,6 +148,9 @@ test-compile-x32.bin:
test-zlib.bin:
$(BUILD) -lz
+test-lzma.bin:
+ $(BUILD) -llzma
+
-include *.d
###############################
diff --git a/tools/perf/config/feature-checks/test-lzma.c
b/tools/perf/config/feature-checks/test-lzma.c
new file mode 100644
index 000000000000..586bdd0ed87a
--- /dev/null
+++ b/tools/perf/config/feature-checks/test-lzma.c
@@ -0,0 +1,9 @@
+#include <lzma.h>
+
+int main(void)
+{
+ lzma_stream strm = LZMA_STREAM_INIT;
+
+ lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED);
+ return 0;
+}
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/