diff options
Diffstat (limited to 'tools/perf/ui/hist.c')
-rw-r--r-- | tools/perf/ui/hist.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c index 031b349a3f84..407e855cccb8 100644 --- a/tools/perf/ui/hist.c +++ b/tools/perf/ui/hist.c | |||
@@ -13,7 +13,7 @@ static int hpp__header_overhead(struct perf_hpp *hpp) | |||
13 | return scnprintf(hpp->buf, hpp->size, fmt); | 13 | return scnprintf(hpp->buf, hpp->size, fmt); |
14 | } | 14 | } |
15 | 15 | ||
16 | static int hpp__width_overhead(struct perf_hpp *hpp __used) | 16 | static int hpp__width_overhead(struct perf_hpp *hpp __maybe_unused) |
17 | { | 17 | { |
18 | return 8; | 18 | return 8; |
19 | } | 19 | } |
@@ -62,7 +62,7 @@ static int hpp__header_overhead_sys(struct perf_hpp *hpp) | |||
62 | return scnprintf(hpp->buf, hpp->size, fmt, "sys"); | 62 | return scnprintf(hpp->buf, hpp->size, fmt, "sys"); |
63 | } | 63 | } |
64 | 64 | ||
65 | static int hpp__width_overhead_sys(struct perf_hpp *hpp __used) | 65 | static int hpp__width_overhead_sys(struct perf_hpp *hpp __maybe_unused) |
66 | { | 66 | { |
67 | return 6; | 67 | return 6; |
68 | } | 68 | } |
@@ -88,7 +88,7 @@ static int hpp__header_overhead_us(struct perf_hpp *hpp) | |||
88 | return scnprintf(hpp->buf, hpp->size, fmt, "user"); | 88 | return scnprintf(hpp->buf, hpp->size, fmt, "user"); |
89 | } | 89 | } |
90 | 90 | ||
91 | static int hpp__width_overhead_us(struct perf_hpp *hpp __used) | 91 | static int hpp__width_overhead_us(struct perf_hpp *hpp __maybe_unused) |
92 | { | 92 | { |
93 | return 6; | 93 | return 6; |
94 | } | 94 | } |
@@ -112,7 +112,7 @@ static int hpp__header_overhead_guest_sys(struct perf_hpp *hpp) | |||
112 | return scnprintf(hpp->buf, hpp->size, "guest sys"); | 112 | return scnprintf(hpp->buf, hpp->size, "guest sys"); |
113 | } | 113 | } |
114 | 114 | ||
115 | static int hpp__width_overhead_guest_sys(struct perf_hpp *hpp __used) | 115 | static int hpp__width_overhead_guest_sys(struct perf_hpp *hpp __maybe_unused) |
116 | { | 116 | { |
117 | return 9; | 117 | return 9; |
118 | } | 118 | } |
@@ -138,7 +138,7 @@ static int hpp__header_overhead_guest_us(struct perf_hpp *hpp) | |||
138 | return scnprintf(hpp->buf, hpp->size, "guest usr"); | 138 | return scnprintf(hpp->buf, hpp->size, "guest usr"); |
139 | } | 139 | } |
140 | 140 | ||
141 | static int hpp__width_overhead_guest_us(struct perf_hpp *hpp __used) | 141 | static int hpp__width_overhead_guest_us(struct perf_hpp *hpp __maybe_unused) |
142 | { | 142 | { |
143 | return 9; | 143 | return 9; |
144 | } | 144 | } |
@@ -166,7 +166,7 @@ static int hpp__header_samples(struct perf_hpp *hpp) | |||
166 | return scnprintf(hpp->buf, hpp->size, fmt, "Samples"); | 166 | return scnprintf(hpp->buf, hpp->size, fmt, "Samples"); |
167 | } | 167 | } |
168 | 168 | ||
169 | static int hpp__width_samples(struct perf_hpp *hpp __used) | 169 | static int hpp__width_samples(struct perf_hpp *hpp __maybe_unused) |
170 | { | 170 | { |
171 | return 11; | 171 | return 11; |
172 | } | 172 | } |
@@ -185,7 +185,7 @@ static int hpp__header_period(struct perf_hpp *hpp) | |||
185 | return scnprintf(hpp->buf, hpp->size, fmt, "Period"); | 185 | return scnprintf(hpp->buf, hpp->size, fmt, "Period"); |
186 | } | 186 | } |
187 | 187 | ||
188 | static int hpp__width_period(struct perf_hpp *hpp __used) | 188 | static int hpp__width_period(struct perf_hpp *hpp __maybe_unused) |
189 | { | 189 | { |
190 | return 12; | 190 | return 12; |
191 | } | 191 | } |
@@ -204,7 +204,7 @@ static int hpp__header_delta(struct perf_hpp *hpp) | |||
204 | return scnprintf(hpp->buf, hpp->size, fmt, "Delta"); | 204 | return scnprintf(hpp->buf, hpp->size, fmt, "Delta"); |
205 | } | 205 | } |
206 | 206 | ||
207 | static int hpp__width_delta(struct perf_hpp *hpp __used) | 207 | static int hpp__width_delta(struct perf_hpp *hpp __maybe_unused) |
208 | { | 208 | { |
209 | return 7; | 209 | return 7; |
210 | } | 210 | } |
@@ -238,12 +238,13 @@ static int hpp__header_displ(struct perf_hpp *hpp) | |||
238 | return scnprintf(hpp->buf, hpp->size, "Displ."); | 238 | return scnprintf(hpp->buf, hpp->size, "Displ."); |
239 | } | 239 | } |
240 | 240 | ||
241 | static int hpp__width_displ(struct perf_hpp *hpp __used) | 241 | static int hpp__width_displ(struct perf_hpp *hpp __maybe_unused) |
242 | { | 242 | { |
243 | return 6; | 243 | return 6; |
244 | } | 244 | } |
245 | 245 | ||
246 | static int hpp__entry_displ(struct perf_hpp *hpp, struct hist_entry *he __used) | 246 | static int hpp__entry_displ(struct perf_hpp *hpp, |
247 | struct hist_entry *he __maybe_unused) | ||
247 | { | 248 | { |
248 | const char *fmt = symbol_conf.field_sep ? "%s" : "%6.6s"; | 249 | const char *fmt = symbol_conf.field_sep ? "%s" : "%6.6s"; |
249 | char buf[32] = " "; | 250 | char buf[32] = " "; |