diff options
Diffstat (limited to '')
-rw-r--r-- | tools/perf/util/mmap.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/perf/util/mmap.h b/tools/perf/util/mmap.h index 9d5f589f02ae..0df6e1621c7e 100644 --- a/tools/perf/util/mmap.h +++ b/tools/perf/util/mmap.h @@ -2,17 +2,14 @@ #define __PERF_MMAP_H 1 #include <internal/mmap.h> -#include <linux/compiler.h> -#include <linux/refcount.h> #include <linux/types.h> -#include <linux/ring_buffer.h> -#include <stdbool.h> -#include <pthread.h> // for cpu_set_t +#include <linux/bitops.h> +#include <perf/cpumap.h> #ifdef HAVE_AIO_SUPPORT #include <aio.h> #endif #include "auxtrace.h" -#include "event.h" +#include "util/compress.h" struct aiocb; @@ -42,7 +39,8 @@ struct mmap { #endif struct mmap_cpu_mask affinity_mask; void *data; - int comp_level; + struct perf_data_file *file; + struct zstd_data zstd_data; }; struct mmap_params { @@ -51,7 +49,7 @@ struct mmap_params { struct auxtrace_mmap_params auxtrace_mp; }; -int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, int cpu); +int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu); void mmap__munmap(struct mmap *map); union perf_event *perf_mmap__read_forward(struct mmap *map); @@ -63,4 +61,7 @@ size_t mmap__mmap_len(struct mmap *map); void mmap_cpu_mask__scnprintf(struct mmap_cpu_mask *mask, const char *tag); +int mmap_cpu_mask__duplicate(struct mmap_cpu_mask *original, + struct mmap_cpu_mask *clone); + #endif /*__PERF_MMAP_H */ |