summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/event.c1
-rw-r--r--tools/perf/util/event.h8
-rw-r--r--tools/perf/util/evsel.c1
-rw-r--r--tools/perf/util/util.h8
4 files changed, 10 insertions, 8 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index 142835c0ca0a..437194fe0434 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -8,6 +8,7 @@
8#include <unistd.h> 8#include <unistd.h>
9#include <uapi/linux/mman.h> /* To get things like MAP_HUGETLB even on older libc headers */ 9#include <uapi/linux/mman.h> /* To get things like MAP_HUGETLB even on older libc headers */
10#include <api/fs/fs.h> 10#include <api/fs/fs.h>
11#include <linux/perf_event.h>
11#include "event.h" 12#include "event.h"
12#include "debug.h" 13#include "debug.h"
13#include "hist.h" 14#include "hist.h"
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index db2de6413518..cfbe32bd7413 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -681,4 +681,12 @@ u64 kallsyms__get_function_start(const char *kallsyms_filename,
681void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max); 681void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max);
682void cpu_map_data__synthesize(struct cpu_map_data *data, struct cpu_map *map, 682void cpu_map_data__synthesize(struct cpu_map_data *data, struct cpu_map *map,
683 u16 type, int max); 683 u16 type, int max);
684
685void event_attr_init(struct perf_event_attr *attr);
686
687int perf_event_paranoid(void);
688
689extern int sysctl_perf_event_max_stack;
690extern int sysctl_perf_event_max_contexts_per_stack;
691
684#endif /* __PERF_RECORD_H */ 692#endif /* __PERF_RECORD_H */
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c
index 0e879097adfb..e4f7902d5afa 100644
--- a/tools/perf/util/evsel.c
+++ b/tools/perf/util/evsel.c
@@ -21,6 +21,7 @@
21#include "asm/bug.h" 21#include "asm/bug.h"
22#include "callchain.h" 22#include "callchain.h"
23#include "cgroup.h" 23#include "cgroup.h"
24#include "event.h"
24#include "evsel.h" 25#include "evsel.h"
25#include "evlist.h" 26#include "evlist.h"
26#include "util.h" 27#include "util.h"
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index e7b6f36d8904..f87b8948efdc 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -56,17 +56,11 @@ int copyfile_offset(int fromfd, loff_t from_ofs, int tofd, loff_t to_ofs, u64 si
56ssize_t readn(int fd, void *buf, size_t n); 56ssize_t readn(int fd, void *buf, size_t n);
57ssize_t writen(int fd, void *buf, size_t n); 57ssize_t writen(int fd, void *buf, size_t n);
58 58
59struct perf_event_attr;
60
61void event_attr_init(struct perf_event_attr *attr);
62
63size_t hex_width(u64 v); 59size_t hex_width(u64 v);
64int hex2u64(const char *ptr, u64 *val); 60int hex2u64(const char *ptr, u64 *val);
65 61
66extern unsigned int page_size; 62extern unsigned int page_size;
67extern int cacheline_size; 63extern int cacheline_size;
68extern int sysctl_perf_event_max_stack;
69extern int sysctl_perf_event_max_contexts_per_stack;
70 64
71struct parse_tag { 65struct parse_tag {
72 char tag; 66 char tag;
@@ -75,8 +69,6 @@ struct parse_tag {
75 69
76unsigned long parse_tag_value(const char *str, struct parse_tag *tags); 70unsigned long parse_tag_value(const char *str, struct parse_tag *tags);
77 71
78int perf_event_paranoid(void);
79
80void mem_bswap_64(void *src, int byte_size); 72void mem_bswap_64(void *src, int byte_size);
81void mem_bswap_32(void *src, int byte_size); 73void mem_bswap_32(void *src, int byte_size);
82 74