Re: [PATCH] perf annotate: Add config option for additional objdumparguments

From: Ingo Molnar
Date: Sat Apr 16 2011 - 03:54:48 EST



* Anton Blanchard <anton@xxxxxxxxx> wrote:

>
> We sometimes need to pass arguments to objdump, for example to
> specify a particular machine type. In the case below I am profiling
> on POWER7 and perf annotate is unable to decode a POWER7 specific
> instruction:
>
> c000000000008ff0: 7f 45 26 98 .long 0x7f452698
>
> With the patch below and the following in ~/.perfconfig:
>
> [objdump]
> options = -Mpower7

Hm, could we please detect the required flags automatically and pass them along
without forcing people into twiddling their ~/.perfconfig?

I don't mind the options patch either - but please first automate it, *then*
add this as a quick fix for similar future problems.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/