aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/compress.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 16:29:38 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-24 12:33:33 -0300
commit611f0afee0e87eb6d184e7f58aa20d18d291d169 (patch)
tree1620bba312a06f773baa76574f6a243897380e98 /tools/perf/util/compress.h
parentperf mem: Fix display of data source snoop indication (diff)
downloadlinux-dev-611f0afee0e87eb6d184e7f58aa20d18d291d169.tar.xz
linux-dev-611f0afee0e87eb6d184e7f58aa20d18d291d169.zip
perf tools: Add compress.h for the *_decompress_to_file() headers
Out of util.h, the implementations were already in separate files, that are built conditionally. Link: http://lkml.kernel.org/n/tip-0ur7szxsb59f8758kfe63prb@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/compress.h')
-rw-r--r--tools/perf/util/compress.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/perf/util/compress.h b/tools/perf/util/compress.h
new file mode 100644
index 000000000000..67fd1bb7c2b7
--- /dev/null
+++ b/tools/perf/util/compress.h
@@ -0,0 +1,12 @@
+#ifndef PERF_COMPRESS_H
+#define PERF_COMPRESS_H
+
+#ifdef HAVE_ZLIB_SUPPORT
+int gzip_decompress_to_file(const char *input, int output_fd);
+#endif
+
+#ifdef HAVE_LZMA_SUPPORT
+int lzma_decompress_to_file(const char *input, int output_fd);
+#endif
+
+#endif /* PERF_COMPRESS_H */