Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 611f0afe authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 166ebdd2
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
#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 */
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
#include <sys/time.h>
#include <sys/resource.h>
#include <errno.h>
#include "compress.h"
#include "path.h"
#include "symbol.h"
#include "dso.h"
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
#include <lzma.h>
#include <stdio.h>
#include <linux/compiler.h>
#include "compress.h"
#include "util.h"
#include "debug.h"

+0 −8
Original line number Diff line number Diff line
@@ -99,14 +99,6 @@ void mem_bswap_32(void *src, int byte_size);

bool find_process(const char *name);

#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

int get_stack_size(const char *str, unsigned long *_size);

int fetch_kernel_version(unsigned int *puint,
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
#include <sys/mman.h>
#include <zlib.h>

#include "util/compress.h"
#include "util/util.h"
#include "util/debug.h"