aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorBrian Vazquez <[email protected]>2021-02-04 18:18:38 +0000
committerJakub Kicinski <[email protected]>2021-02-04 18:06:26 -0800
commit0053859496baa17c7675526936677c9213bf5a0d (patch)
tree76a83470560642f832c69a81caab936caac78a30 /tools/perf/scripts/python/futex-contention.py
parent7e3ce05e7f650371061d0b9eec1e1cf74ed6fca0 (diff)
net: add EXPORT_INDIRECT_CALLABLE wrapper
When a static function is annotated with INDIRECT_CALLABLE_SCOPE and CONFIG_RETPOLINE is set, the static keyword is removed. Sometimes the function needs to be exported but EXPORT_SYMBOL can't be used because if CONFIG_RETPOLINE is not set, we will attempt to export a static symbol. This patch introduces a new indirect call wrapper: EXPORT_INDIRECT_CALLABLE. This basically does EXPORT_SYMBOL when CONFIG_RETPOLINE is set, but does nothing when it's not. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Brian Vazquez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions