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)
commit6ea312d95e0226b306bb4b8ee3a0727d880378cb
tree0184628a85dac475cc6361b183a08e319690bf54
parentb046664872dd78a8bebe3d5f3bb9da9baa93f5ca
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