Skip to content

RFC static call updates

Ard Biesheuvel linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7static_call: get rid of static_call_cond()arch/x86/events/core.c arch/x86/include/asm/kvm_host.h arch/x86/kvm/irq.c +2 more+23 -564 replies
2/7static_call: deal with unexported keys without cluttering up the APIarch/x86/include/asm/preempt.h include/linux/kernel.h include/linux/sched.h +4 more+38 -613 replies
3/7static_call: use helper to access non-exported keyarch/x86/include/asm/static_call.h include/asm-generic/vmlinux.lds.h include/linux/static_call.h +5 more+45 -464 replies
4/7static_call: fix broken static_call_query() for non-exported keysinclude/linux/static_call.h include/linux/static_call_types.h tools/include/linux/static_call_types.h+42 -31 reply
5/7static_call: use non-function types to refer to the trampolinesinclude/linux/static_call.h include/linux/static_call_types.h tools/include/linux/static_call_types.h+7 -70 replies
6/7static_call: rename EXPORT_ macros to be more self-explanatoryarch/x86/kvm/x86.c include/linux/static_call.h kernel/sched/core.c+28 -212 replies
7/7static_call: add generic support for non-exported keysinclude/linux/static_call.h include/linux/static_call_types.h tools/include/linux/static_call_types.h+4 -60 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchPeter Zijlstra
1/7
2/7
3/7
4/7
5/7A-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/7] static call updates

This series addresses a number of asymmetries and inconsistencies in both the API and the implementation of static calls. The aim is to ensure that the documented API is fully implemented and works correctly, regardless of which variety of static calls the arch decides to implement.

Another goal of this series is to ensure that the caller of the API does not need to choose a particular kind of macro depending on whether the static call exports its key and/or whether the static call in question may implement the NULL flavor.

Cc Peter Zijlstra <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Jason Baron <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Kees Cook <[email protected]>

Ard Biesheuvel (7):
static_call: get rid of static_call_cond()
static_call: deal with unexported keys without cluttering up the API
static_call: use helper to access non-exported key
static_call: fix broken static_call_query() for non-exported keys
static_call: use non-function types to refer to the trampolines
static_call: rename EXPORT_ macros to be more self-explanatory
static_call: add generic support for non-exported keys

 arch/x86/events/core.c                  |  20 ++--
 arch/x86/include/asm/kvm_host.h         |   4 +-
 arch/x86/include/asm/preempt.h          |   4 +-
 arch/x86/include/asm/static_call.h      |   6 -
 arch/x86/kvm/irq.c                      |   2 +-
 arch/x86/kvm/x86.c                      |  10 +-
 include/asm-generic/vmlinux.lds.h       |   5 +-
 include/linux/kernel.h                  |   2 +-
 include/linux/sched.h                   |   2 +-
 include/linux/static_call.h             | 117 +++++++++-----------
 include/linux/static_call_types.h       |  54 +++++----
 kernel/extable.c                        |   1 +
 kernel/sched/core.c                     |   8 +-
 kernel/static_call.c                    |  29 +----
 tools/include/linux/static_call_types.h |  54 +++++----
 tools/objtool/check.c                   |  43 ++++---
 16 files changed, 174 insertions(+), 187 deletions(-)
Signature · 1 line
2.30.2