Re: [PATCH RFC v3 02/12] perf jevents: Add support for system events tables

From: Jiri Olsa
Date: Mon May 11 2020 - 07:01:59 EST


On Thu, May 07, 2020 at 07:57:41PM +0800, John Garry wrote:

SNIP

>
> +static int process_system_event_tables(FILE *outfp)
> +{
> + struct sys_event_table *sys_event_table;
> +
> + fprintf(outfp, "struct pmu_sys_events pmu_sys_event_tables[] = {");
> +
> + list_for_each_entry(sys_event_table, &sys_event_tables, list) {
> + fprintf(outfp, "\n\t{\n\t\t.table = %s,\n\t},",
> + sys_event_table->name);
> + }
> + fprintf(outfp, "\n\t{\n\t\t.table = 0\n\t},");

this will add extra tabs:

{
.table = 0
},

while the rest of the file starts items without any indent

jirka