[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150504114435.GQ13605@tassilo.jf.intel.com>
Date: Mon, 4 May 2015 04:44:35 -0700
From: Andi Kleen <ak@...ux.intel.com>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Sukadev Bhattiprolu <sukadev@...ux.vnet.ibm.com>, mingo@...hat.com,
Michael Ellerman <mpe@...erman.id.au>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Paul Mackerras <paulus@...ba.org>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC][PATCH 4/4] perf: Create aliases for PMU events
> I personaly like having set of event files in JSON notation
> rather than having them directly in C structure
Yes, strings are better and JSON input is also better.
I prototyped translating JSON into the proposed structures. I already had to
add three new fields, and it wouldn't work for uncore. The string
format is much more extensible.
BTW as expected the binary sizes are gigantic (for 14 CPU types):
% size all.o
text data bss dec hex filename
662698 0 0 662698 a1caa all.o
% gcc -E all.c | wc -l
55475
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists