]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
perf tools: Split event symbols arrays to hw and sw parts
authorJiri Olsa <jolsa@redhat.com>
Tue, 3 Jul 2012 22:00:44 +0000 (00:00 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Jul 2012 14:31:13 +0000 (11:31 -0300)
commit1dc12760854a670d0366dcfd8ad179e3574c1712
treeded10cc932dff47a07e90b94fbdb10c74bc8e9b0
parentcf3506dcc4a855d11af20bcb271ac921033ba0de
perf tools: Split event symbols arrays to hw and sw parts

It'll be convenient in upcoming patch to access hw event symbols
strings via enum perf_hw_id indexes. In order not to duplicate
the data, creating two separate arrays:

  event_symbols_hw for enum perf_hw_id events
  event_symbols_sw for enum perf_sw_ids events

Changing the current event list code to follow the change.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1341352848-11833-7-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c