Messages in this thread | | | Subject | Re: [PATCH 05/11] perf, tools: Add support for reading JSON event files | From | Michael Ellerman <> | Date | Fri, 18 Jul 2014 15:29:42 +1000 |
| |
On Fri, 2014-07-11 at 16:59 -0700, Andi Kleen wrote: > From: Andi Kleen <ak@linux.intel.com> > > Add a parser for Intel style JSON event files. This allows > to use an Intel event list directly with perf. The Intel > event lists can be quite large and are too big to store > in unswappable kernel memory.
...
> diff --git a/tools/perf/util/jevents.c b/tools/perf/util/jevents.c > new file mode 100644 > index 0000000..a23f57f > --- /dev/null > +++ b/tools/perf/util/jevents.c > @@ -0,0 +1,246 @@ ... > + > +static void fixname(char *s) > +{ > + for (; *s; s++) > + *s = tolower(*s); > +}
On powerpc our event names are always uppercase, it would be nice if the perf list output honoured that.
Can we instead just honour whatever case is in the input JSON ?
It looks like the event lookup is already case insensitive.
cheers
| |