diff options
Diffstat (limited to 'tools/perf/util/symbol-minimal.c')
-rw-r--r-- | tools/perf/util/symbol-minimal.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/tools/perf/util/symbol-minimal.c b/tools/perf/util/symbol-minimal.c index 6738ea128c90..259f8f2ea9c9 100644 --- a/tools/perf/util/symbol-minimal.c +++ b/tools/perf/util/symbol-minimal.c | |||
@@ -69,8 +69,9 @@ static int read_build_id(void *note_data, size_t note_len, void *bf, | |||
69 | return -1; | 69 | return -1; |
70 | } | 70 | } |
71 | 71 | ||
72 | int filename__read_debuglink(const char *filename __used, | 72 | int filename__read_debuglink(const char *filename __maybe_unused, |
73 | char *debuglink __used, size_t size __used) | 73 | char *debuglink __maybe_unused, |
74 | size_t size __maybe_unused) | ||
74 | { | 75 | { |
75 | return -1; | 76 | return -1; |
76 | } | 77 | } |
@@ -241,7 +242,8 @@ out: | |||
241 | return ret; | 242 | return ret; |
242 | } | 243 | } |
243 | 244 | ||
244 | int symsrc__init(struct symsrc *ss, struct dso *dso __used, const char *name, | 245 | int symsrc__init(struct symsrc *ss, struct dso *dso __maybe_unused, |
246 | const char *name, | ||
245 | enum dso_binary_type type) | 247 | enum dso_binary_type type) |
246 | { | 248 | { |
247 | int fd = open(name, O_RDONLY); | 249 | int fd = open(name, O_RDONLY); |
@@ -260,13 +262,13 @@ out_close: | |||
260 | return -1; | 262 | return -1; |
261 | } | 263 | } |
262 | 264 | ||
263 | bool symsrc__possibly_runtime(struct symsrc *ss __used) | 265 | bool symsrc__possibly_runtime(struct symsrc *ss __maybe_unused) |
264 | { | 266 | { |
265 | /* Assume all sym sources could be a runtime image. */ | 267 | /* Assume all sym sources could be a runtime image. */ |
266 | return true; | 268 | return true; |
267 | } | 269 | } |
268 | 270 | ||
269 | bool symsrc__has_symtab(struct symsrc *ss __used) | 271 | bool symsrc__has_symtab(struct symsrc *ss __maybe_unused) |
270 | { | 272 | { |
271 | return false; | 273 | return false; |
272 | } | 274 | } |
@@ -277,17 +279,19 @@ void symsrc__destroy(struct symsrc *ss) | |||
277 | close(ss->fd); | 279 | close(ss->fd); |
278 | } | 280 | } |
279 | 281 | ||
280 | int dso__synthesize_plt_symbols(struct dso *dso __used, | 282 | int dso__synthesize_plt_symbols(struct dso *dso __maybe_unused, |
281 | struct symsrc *ss __used, | 283 | struct symsrc *ss __maybe_unused, |
282 | struct map *map __used, | 284 | struct map *map __maybe_unused, |
283 | symbol_filter_t filter __used) | 285 | symbol_filter_t filter __maybe_unused) |
284 | { | 286 | { |
285 | return 0; | 287 | return 0; |
286 | } | 288 | } |
287 | 289 | ||
288 | int dso__load_sym(struct dso *dso, struct map *map __used, struct symsrc *ss, | 290 | int dso__load_sym(struct dso *dso, struct map *map __maybe_unused, |
289 | struct symsrc *runtime_ss __used, | 291 | struct symsrc *ss, |
290 | symbol_filter_t filter __used, int kmodule __used) | 292 | struct symsrc *runtime_ss __maybe_unused, |
293 | symbol_filter_t filter __maybe_unused, | ||
294 | int kmodule __maybe_unused) | ||
291 | { | 295 | { |
292 | unsigned char *build_id[BUILD_ID_SIZE]; | 296 | unsigned char *build_id[BUILD_ID_SIZE]; |
293 | 297 | ||