diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-08-18 15:57:53 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-09-01 09:58:06 +0200 |
commit | 7c9903c9bf716d89b34f96cc2ed64e28dabf570b (patch) | |
tree | 8cc311229f7fa62089aeed4ae312a17a434a7ba7 /tools/objtool/cfi.h | |
parent | d25e37d89dd2f41d7acae0429039d2f0ae8b4a07 (diff) | |
download | linux-7c9903c9bf716d89b34f96cc2ed64e28dabf570b.tar.bz2 |
x86/perf, static_call: Optimize x86_pmu methods
Replace many of the indirect calls with static_call().
The average PMI time, as measured by perf_sample_event_took()*:
PRE: 3283.03 [ns]
POST: 3145.12 [ns]
Which is a ~138 [ns] win per PMI, or a ~4.2% decrease.
[*] on an IVB-EP, using: 'perf record -a -e cycles -- make O=defconfig-build/ -j80'
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20200818135805.338001015@infradead.org
Diffstat (limited to 'tools/objtool/cfi.h')
0 files changed, 0 insertions, 0 deletions