diff options
Diffstat (limited to 'tools/perf/util')
| -rw-r--r-- | tools/perf/util/event.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/event.h | 8 | ||||
| -rw-r--r-- | tools/perf/util/evsel.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/util.h | 8 |
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, | |||
| 681 | void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max); | 681 | void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max); |
| 682 | void cpu_map_data__synthesize(struct cpu_map_data *data, struct cpu_map *map, | 682 | void cpu_map_data__synthesize(struct cpu_map_data *data, struct cpu_map *map, |
| 683 | u16 type, int max); | 683 | u16 type, int max); |
| 684 | |||
| 685 | void event_attr_init(struct perf_event_attr *attr); | ||
| 686 | |||
| 687 | int perf_event_paranoid(void); | ||
| 688 | |||
| 689 | extern int sysctl_perf_event_max_stack; | ||
| 690 | extern 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 | |||
| 56 | ssize_t readn(int fd, void *buf, size_t n); | 56 | ssize_t readn(int fd, void *buf, size_t n); |
| 57 | ssize_t writen(int fd, void *buf, size_t n); | 57 | ssize_t writen(int fd, void *buf, size_t n); |
| 58 | 58 | ||
| 59 | struct perf_event_attr; | ||
| 60 | |||
| 61 | void event_attr_init(struct perf_event_attr *attr); | ||
| 62 | |||
| 63 | size_t hex_width(u64 v); | 59 | size_t hex_width(u64 v); |
| 64 | int hex2u64(const char *ptr, u64 *val); | 60 | int hex2u64(const char *ptr, u64 *val); |
| 65 | 61 | ||
| 66 | extern unsigned int page_size; | 62 | extern unsigned int page_size; |
| 67 | extern int cacheline_size; | 63 | extern int cacheline_size; |
| 68 | extern int sysctl_perf_event_max_stack; | ||
| 69 | extern int sysctl_perf_event_max_contexts_per_stack; | ||
| 70 | 64 | ||
| 71 | struct parse_tag { | 65 | struct parse_tag { |
| 72 | char tag; | 66 | char tag; |
| @@ -75,8 +69,6 @@ struct parse_tag { | |||
| 75 | 69 | ||
| 76 | unsigned long parse_tag_value(const char *str, struct parse_tag *tags); | 70 | unsigned long parse_tag_value(const char *str, struct parse_tag *tags); |
| 77 | 71 | ||
| 78 | int perf_event_paranoid(void); | ||
| 79 | |||
| 80 | void mem_bswap_64(void *src, int byte_size); | 72 | void mem_bswap_64(void *src, int byte_size); |
| 81 | void mem_bswap_32(void *src, int byte_size); | 73 | void mem_bswap_32(void *src, int byte_size); |
| 82 | 74 | ||
