lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 11 Mar 2014 14:37:32 +0100 From: Jiri Olsa <jolsa@...hat.com> To: Andi Kleen <andi@...stfloor.org> Cc: acme@...radead.org, mingo@...nel.org, linux-kernel@...r.kernel.org, peterz@...radead.org, eranian@...gle.com, namhyung@...nel.org, Andi Kleen <ak@...ux.intel.com> Subject: Re: [PATCH 2/8] perf, tools: Add support for reading JSON event files On Wed, Mar 05, 2014 at 11:49:32AM -0800, Andi Kleen wrote: > From: Andi Kleen <ak@...ux.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. > > The parser code knows how to convert the JSON fields > to perf fields. The conversion code is straight forward. > It knows (very little) Intel specific information, and can be easily > extended to handle fields for other CPUs. > > The parser code is partially shared with an independent parsing > library, which is 2-clause BSD licenced. To avoid any conflicts I marked > those files as BSD licenced too. As part of perf they become GPLv2. > > The events are handled using the existing alias machinery. > > We output the BriefDescription in perf list. > > Right now the json file can be specified as an argument > to perf stat/record/list. Followon patches will automate this. > > Signed-off-by: Andi Kleen <ak@...ux.intel.com> > --- > tools/perf/Documentation/perf-list.txt | 6 + > tools/perf/Documentation/perf-record.txt | 3 + > tools/perf/Documentation/perf-stat.txt | 3 + > tools/perf/Makefile.perf | 2 + > tools/perf/builtin-list.c | 2 + > tools/perf/builtin-record.c | 3 + > tools/perf/builtin-stat.c | 2 + > tools/perf/util/jevents.c | 248 +++++++++++++++++++++++++++++++ > tools/perf/util/jevents.h | 3 + > tools/perf/util/pmu.c | 141 ++++++++++++++---- > tools/perf/util/pmu.h | 2 + please put the alias code factoring (perf_pmu__new_alias) and print_pmu_events changes to separate commits jirka -- 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