diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 22:29:38 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-24 18:33:33 +0300 |
commit | 611f0afee0e87eb6d184e7f58aa20d18d291d169 (patch) | |
tree | 1620bba312a06f773baa76574f6a243897380e98 /tools/perf/util/compress.h | |
parent | 166ebdd2442660e7f942d657fc5e629000e58ec3 (diff) | |
download | linux-611f0afee0e87eb6d184e7f58aa20d18d291d169.tar.xz |
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.h | 12 |
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 */ |