diff options
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r-- | tools/perf/perf.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 2c340e7da458..c2206c87fc9f 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -1,10 +1,6 @@ | |||
1 | #ifndef _PERF_PERF_H | 1 | #ifndef _PERF_PERF_H |
2 | #define _PERF_PERF_H | 2 | #define _PERF_PERF_H |
3 | 3 | ||
4 | struct winsize; | ||
5 | |||
6 | void get_term_dimensions(struct winsize *ws); | ||
7 | |||
8 | #include <asm/unistd.h> | 4 | #include <asm/unistd.h> |
9 | 5 | ||
10 | #if defined(__i386__) | 6 | #if defined(__i386__) |
@@ -107,32 +103,6 @@ void get_term_dimensions(struct winsize *ws); | |||
107 | #include "util/types.h" | 103 | #include "util/types.h" |
108 | #include <stdbool.h> | 104 | #include <stdbool.h> |
109 | 105 | ||
110 | struct perf_mmap { | ||
111 | void *base; | ||
112 | int mask; | ||
113 | unsigned int prev; | ||
114 | }; | ||
115 | |||
116 | static inline unsigned int perf_mmap__read_head(struct perf_mmap *mm) | ||
117 | { | ||
118 | struct perf_event_mmap_page *pc = mm->base; | ||
119 | int head = pc->data_head; | ||
120 | rmb(); | ||
121 | return head; | ||
122 | } | ||
123 | |||
124 | static inline void perf_mmap__write_tail(struct perf_mmap *md, | ||
125 | unsigned long tail) | ||
126 | { | ||
127 | struct perf_event_mmap_page *pc = md->base; | ||
128 | |||
129 | /* | ||
130 | * ensure all reads are done before we write the tail out. | ||
131 | */ | ||
132 | /* mb(); */ | ||
133 | pc->data_tail = tail; | ||
134 | } | ||
135 | |||
136 | /* | 106 | /* |
137 | * prctl(PR_TASK_PERF_EVENTS_DISABLE) will (cheaply) disable all | 107 | * prctl(PR_TASK_PERF_EVENTS_DISABLE) will (cheaply) disable all |
138 | * counters in the current task. | 108 | * counters in the current task. |
@@ -237,8 +207,6 @@ struct perf_record_opts { | |||
237 | bool raw_samples; | 207 | bool raw_samples; |
238 | bool sample_address; | 208 | bool sample_address; |
239 | bool sample_time; | 209 | bool sample_time; |
240 | bool sample_id_all_missing; | ||
241 | bool exclude_guest_missing; | ||
242 | bool period; | 210 | bool period; |
243 | unsigned int freq; | 211 | unsigned int freq; |
244 | unsigned int mmap_pages; | 212 | unsigned int mmap_pages; |