summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/mmap.h
diff options
context:
space:
mode:
authorAlexey Bayduraev <alexey.v.bayduraev@linux.intel.com>2022-01-17 21:34:30 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-02-10 16:26:24 -0300
commit75f5f1fcb9c0f0f542f44d993de18047b2b7f37f (patch)
tree0b57bf314eaf35495a7366a64277d7bdb764fcac /tools/perf/util/mmap.h
parentae9c7242b29fa2976c70b5b250f8942cf7289211 (diff)
downloadlinux-75f5f1fcb9c0f0f542f44d993de18047b2b7f37f.tar.gz
linux-75f5f1fcb9c0f0f542f44d993de18047b2b7f37f.tar.bz2
linux-75f5f1fcb9c0f0f542f44d993de18047b2b7f37f.zip
perf record: Introduce compressor at mmap buffer object
Introduce compressor object into mmap object so it could be used to pack the data stream from the corresponding kernel data buffer. Initialize and make use of the introduced per mmap compressor. Signed-off-by: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com> Tested-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Andi Kleen <ak@linux.intel.com> Acked-by: Namhyung Kim <namhyung@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Antonov <alexander.antonov@linux.intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexei Budankov <abudankov@huawei.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Riccardo Mancini <rickyman7@gmail.com> Link: https://lore.kernel.org/r/80edc286cf6543139a7d5a91217605123aa0b50d.1642440724.git.alexey.v.bayduraev@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/mmap.h')
-rw-r--r--tools/perf/util/mmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/mmap.h b/tools/perf/util/mmap.h
index 62f38d7977bb..cd8b0777473b 100644
--- a/tools/perf/util/mmap.h
+++ b/tools/perf/util/mmap.h
@@ -15,6 +15,7 @@
#endif
#include "auxtrace.h"
#include "event.h"
+#include "util/compress.h"
struct aiocb;
@@ -46,6 +47,7 @@ struct mmap {
void *data;
int comp_level;
struct perf_data_file *file;
+ struct zstd_data zstd_data;
};
struct mmap_params {