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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1323963039-7602-1-git-send-email-jolsa@redhat.com>
Date:	Thu, 15 Dec 2011 16:30:36 +0100
From:	Jiri Olsa <jolsa@...hat.com>
To:	acme@...hat.com, a.p.zijlstra@...llo.nl, mingo@...e.hu,
	paulus@...ba.org, cjashfor@...ux.vnet.ibm.com
Cc:	linux-kernel@...r.kernel.org
Subject: [RFC 0/3] perf tool: Add new event group management

hi,
adding support for creating event groups based on the way they
are specified on the command line.

As reading through some lkml postings like:
http://marc.info/?t=130105133700002&r=1&w=2
http://marc.info/?t=129065042800002&r=1&w=2

it seems decided to use bison/flex for event parsing first,
and do the group management on the top of it.. and thats what
I'm trying to do in this patchset.

Since this is quite hot code I expect some discussion/reposts ;),
so sending it first as RFC..

attached patches:
  1/3 perf, tool: Add parser generator for events parsing
  2/3 perf, tool: Add new event group management
  3/3 perf, tool: Add more automated tests for event parsing

thanks for comments,
jirka
---
 tools/perf/Makefile                  |   23 ++
 tools/perf/builtin-record.c          |    8 +-
 tools/perf/builtin-stat.c            |   10 +-
 tools/perf/builtin-test.c            |  245 ++++++++++++++++++-
 tools/perf/builtin-top.c             |    8 +-
 tools/perf/perf.h                    |    2 +-
 tools/perf/util/evsel.c              |   28 ++-
 tools/perf/util/evsel.h              |    9 +-
 tools/perf/util/group.c              |   23 ++
 tools/perf/util/group.h              |   25 ++
 tools/perf/util/parse-events-bison.y |  119 +++++++++
 tools/perf/util/parse-events-flex.l  |  111 ++++++++
 tools/perf/util/parse-events.c       |  465 ++++++++++++----------------------
 tools/perf/util/parse-events.h       |    9 +
 tools/perf/util/python.c             |    4 +
 tools/perf/util/top.h                |    2 +-
 16 files changed, 760 insertions(+), 331 deletions(-)
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ