]> git.baikalelectronics.ru Git - kernel.git/commit
static_call: Add function to query current function
authorJuergen Gross <jgross@suse.com>
Thu, 11 Mar 2021 14:23:08 +0000 (15:23 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 11 Mar 2021 15:12:33 +0000 (16:12 +0100)
commitb711e810420fcaf1ff9b908271374a347a8ab1b9
tree0184628a85dac475cc6361b183a08e319690bf54
parentcac875669c7ccdd499883aec0648255310a648eb
static_call: Add function to query current function

Some users of paravirtualized functions need to query which function
has been specified in a pv_ops vector element. In order to be able to
switch such paravirtualized functions to static_calls instead, there
needs to be a function to query the function which will be called via
static_call().

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210311142319.4723-4-jgross@suse.com
include/linux/static_call.h