Re: Make perf script easier to use for itrace

From: Andi Kleen
Date: Mon Sep 03 2018 - 11:50:46 EST


> (Ubuntu 18.04):
>
> builtin-script.c: In function âparse_output_fieldsâ:
> builtin-script.c:2571:22: error: array subscript is above array bounds [-Werror=array-bounds]
> output[j].fields &= ~all_output_options[i].field;
> ^~
> builtin-script.c:2571:22: error: array subscript is above array bounds [-Werror=array-bounds]
> output[j].fields &= ~all_output_options[i].field;
> ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> builtin-script.c:2574:10: error: array subscript is above array bounds [-Werror=array-bounds]
> output[j].user_set = true;
> ~~~~~~^~~
> builtin-script.c:2575:10: error: array subscript is above array bounds [-Werror=array-bounds]
> output[j].wildcard_set = true;
> ~~~~~~^~~

These were fixed earlier in -3.

> ...
> util/cs-etm.c: In function âcs_etm__process_auxtrace_infoâ:
> util/cs-etm.c:1436:14: error: âstruct perf_sessionâ has no member named âitrace_synthâ; did you mean âitrace_synth_optsâ?
> session->itrace_synth.default_no_sample);
> ^~~~~~~~~~~~
> itrace_synth_opts

For some reason my x86 targetted build doesn't seem to cover this file, so
I missed it. What do I need to do to enable it?

-Andi