]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf_counter tools: Introduce alias member in event_symbol
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Mon, 22 Jun 2009 11:14:28 +0000 (16:44 +0530)
committerIngo Molnar <mingo@elte.hu>
Mon, 22 Jun 2009 11:29:58 +0000 (13:29 +0200)
commit74d5b5889ea71a95d8924c08f8a7c6e2bdcbc0ba
treef03a43384906924cbc165aa2e45c06ebcff50ab4
parent51e268423151fc7bb41945bde7843160b6a14c32
perf_counter tools: Introduce alias member in event_symbol

By introducing alias member in event_symbol :

1. duplicate lines are removed, like:
   cpu-cycles and cycles
   branch-instructions and branches
   context-switches and cs
   cpu-migrations and migrations

2. We can also add alias for another events.

Now ./perf list looks like :

List of pre-defined events (to be used in -e):

  cpu-cycles OR cycles                     [Hardware event]
  instructions                             [Hardware event]
  cache-references                         [Hardware event]
  cache-misses                             [Hardware event]
  branch-instructions OR branches          [Hardware event]
  branch-misses                            [Hardware event]
  bus-cycles                               [Hardware event]

  cpu-clock                                [Software event]
  task-clock                               [Software event]
  page-faults                              [Software event]
  faults                                   [Software event]
  minor-faults                             [Software event]
  major-faults                             [Software event]
  context-switches OR cs                   [Software event]
  cpu-migrations OR migrations             [Software event]

  rNNN                                     [raw hardware event descriptor]

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1245669268.17153.8.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/parse-events.c