diff options
author | Liang, Kan <kan.liang@linux.intel.com> | 2019-10-22 11:13:09 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-10-28 12:53:28 +0100 |
commit | d44f821b0e13275735e8f3fe4db8703b45f05d52 (patch) | |
tree | 26342e8b5b15c28b00b2b3a6557de5e1a85b2f19 /tools/perf/util/hist.c | |
parent | 66d258c5b048840991de49697264af75f5b09def (diff) |
perf/core: Optimize perf_init_event() for TYPE_SOFTWARE
Andi reported that he was hitting the linear search in
perf_init_event() a lot. Now that all !TYPE_SOFTWARE events should hit
the IDR, make sure the TYPE_SOFTWARE events are at the head of the
list such that we'll quickly find the right PMU (provided a valid
event was given).
Signed-off-by: Liang, Kan <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/hist.c')
0 files changed, 0 insertions, 0 deletions