diff options
Diffstat (limited to 'tools/perf/util/unwind.c')
-rw-r--r-- | tools/perf/util/unwind.c | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/tools/perf/util/unwind.c b/tools/perf/util/unwind.c index 00a42aa8d5c1..958723ba3d2e 100644 --- a/tools/perf/util/unwind.c +++ b/tools/perf/util/unwind.c | |||
@@ -307,32 +307,36 @@ find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, | |||
307 | need_unwind_info, arg); | 307 | need_unwind_info, arg); |
308 | } | 308 | } |
309 | 309 | ||
310 | static int access_fpreg(unw_addr_space_t __used as, unw_regnum_t __used num, | 310 | static int access_fpreg(unw_addr_space_t __maybe_unused as, |
311 | unw_fpreg_t __used *val, int __used __write, | 311 | unw_regnum_t __maybe_unused num, |
312 | void __used *arg) | 312 | unw_fpreg_t __maybe_unused *val, |
313 | int __maybe_unused __write, | ||
314 | void __maybe_unused *arg) | ||
313 | { | 315 | { |
314 | pr_err("unwind: access_fpreg unsupported\n"); | 316 | pr_err("unwind: access_fpreg unsupported\n"); |
315 | return -UNW_EINVAL; | 317 | return -UNW_EINVAL; |
316 | } | 318 | } |
317 | 319 | ||
318 | static int get_dyn_info_list_addr(unw_addr_space_t __used as, | 320 | static int get_dyn_info_list_addr(unw_addr_space_t __maybe_unused as, |
319 | unw_word_t __used *dil_addr, | 321 | unw_word_t __maybe_unused *dil_addr, |
320 | void __used *arg) | 322 | void __maybe_unused *arg) |
321 | { | 323 | { |
322 | return -UNW_ENOINFO; | 324 | return -UNW_ENOINFO; |
323 | } | 325 | } |
324 | 326 | ||
325 | static int resume(unw_addr_space_t __used as, unw_cursor_t __used *cu, | 327 | static int resume(unw_addr_space_t __maybe_unused as, |
326 | void __used *arg) | 328 | unw_cursor_t __maybe_unused *cu, |
329 | void __maybe_unused *arg) | ||
327 | { | 330 | { |
328 | pr_err("unwind: resume unsupported\n"); | 331 | pr_err("unwind: resume unsupported\n"); |
329 | return -UNW_EINVAL; | 332 | return -UNW_EINVAL; |
330 | } | 333 | } |
331 | 334 | ||
332 | static int | 335 | static int |
333 | get_proc_name(unw_addr_space_t __used as, unw_word_t __used addr, | 336 | get_proc_name(unw_addr_space_t __maybe_unused as, |
334 | char __used *bufp, size_t __used buf_len, | 337 | unw_word_t __maybe_unused addr, |
335 | unw_word_t __used *offp, void __used *arg) | 338 | char __maybe_unused *bufp, size_t __maybe_unused buf_len, |
339 | unw_word_t __maybe_unused *offp, void __maybe_unused *arg) | ||
336 | { | 340 | { |
337 | pr_err("unwind: get_proc_name unsupported\n"); | 341 | pr_err("unwind: get_proc_name unsupported\n"); |
338 | return -UNW_EINVAL; | 342 | return -UNW_EINVAL; |
@@ -377,7 +381,7 @@ static int reg_value(unw_word_t *valp, struct regs_dump *regs, int id, | |||
377 | return 0; | 381 | return 0; |
378 | } | 382 | } |
379 | 383 | ||
380 | static int access_mem(unw_addr_space_t __used as, | 384 | static int access_mem(unw_addr_space_t __maybe_unused as, |
381 | unw_word_t addr, unw_word_t *valp, | 385 | unw_word_t addr, unw_word_t *valp, |
382 | int __write, void *arg) | 386 | int __write, void *arg) |
383 | { | 387 | { |
@@ -422,7 +426,7 @@ static int access_mem(unw_addr_space_t __used as, | |||
422 | return 0; | 426 | return 0; |
423 | } | 427 | } |
424 | 428 | ||
425 | static int access_reg(unw_addr_space_t __used as, | 429 | static int access_reg(unw_addr_space_t __maybe_unused as, |
426 | unw_regnum_t regnum, unw_word_t *valp, | 430 | unw_regnum_t regnum, unw_word_t *valp, |
427 | int __write, void *arg) | 431 | int __write, void *arg) |
428 | { | 432 | { |
@@ -454,9 +458,9 @@ static int access_reg(unw_addr_space_t __used as, | |||
454 | return 0; | 458 | return 0; |
455 | } | 459 | } |
456 | 460 | ||
457 | static void put_unwind_info(unw_addr_space_t __used as, | 461 | static void put_unwind_info(unw_addr_space_t __maybe_unused as, |
458 | unw_proc_info_t *pi __used, | 462 | unw_proc_info_t *pi __maybe_unused, |
459 | void *arg __used) | 463 | void *arg __maybe_unused) |
460 | { | 464 | { |
461 | pr_debug("unwind: put_unwind_info called\n"); | 465 | pr_debug("unwind: put_unwind_info called\n"); |
462 | } | 466 | } |