public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/7] jump_label: Another (better) static_key interface
@ 2015-07-24 17:52 Peter Zijlstra
  2015-07-24 17:52 ` [RFC][PATCH 1/7] jump_label: Rename JUMP_LABEL_{EN,DIS}ABLE Peter Zijlstra
                   ` (6 more replies)
  0 siblings, 7 replies; 22+ messages in thread
From: Peter Zijlstra @ 2015-07-24 17:52 UTC (permalink / raw)
  To: linux-kernel, mingo
  Cc: jasonbaron0, bp, luto, tglx, rostedt, will.deacon, liuj97, rabin,
	ralf, ddaney, benh, michael, heiko.carstens, davem, peterz

Hi all,

After yet another bug because of the weirdness of the static key interface,
here an attempt at providing a better one.

This is boot tested on x86_64, bzImage works, modules have a problem. It looks
like jump_label_add_module() runs into a 'wrong' NOP, which would indicate
jump_label_apply_nops() didn't work right.

I'm too tired to spot the fail, so I figured I'd post it anyway :-)

Beware: x86_64_defconfig has CONFIG_JUMP_LABEL=n.

@arch people, please have a look at patch 6 where I've attempted to do
inline asm for all kinds of unknown archs.

---
 arch/arm/include/asm/jump_label.h     |  18 +++-
 arch/arm/kernel/jump_label.c          |   2 +-
 arch/arm64/include/asm/jump_label.h   |  18 +++-
 arch/arm64/kernel/jump_label.c        |   2 +-
 arch/mips/include/asm/jump_label.h    |  19 +++-
 arch/mips/kernel/jump_label.c         |   2 +-
 arch/powerpc/include/asm/jump_label.h |  19 +++-
 arch/powerpc/kernel/jump_label.c      |   2 +-
 arch/s390/include/asm/jump_label.h    |  19 +++-
 arch/s390/kernel/jump_label.c         |   2 +-
 arch/sparc/include/asm/jump_label.h   |  34 ++++--
 arch/sparc/kernel/jump_label.c        |   2 +-
 arch/x86/include/asm/jump_label.h     |  21 +++-
 arch/x86/kernel/jump_label.c          |   2 +-
 arch/x86/kernel/tsc.c                 |  22 ++--
 include/linux/jump_label.h            | 188 +++++++++++++++++++++++++++++-----
 kernel/jump_label.c                   | 114 ++++++++++++---------
 kernel/sched/core.c                   |   6 +-
 18 files changed, 374 insertions(+), 118 deletions(-)


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-07-28  5:54 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-24 17:52 [RFC][PATCH 0/7] jump_label: Another (better) static_key interface Peter Zijlstra
2015-07-24 17:52 ` [RFC][PATCH 1/7] jump_label: Rename JUMP_LABEL_{EN,DIS}ABLE Peter Zijlstra
2015-07-24 17:52 ` [RFC][PATCH 2/7] jump_label: Rename JUMP_LABEL_TYPE_* Peter Zijlstra
2015-07-24 17:52 ` [RFC][PATCH 3/7] jump_label: Add jump_entry_key() helper Peter Zijlstra
2015-07-24 17:52 ` [RFC][PATCH 4/7] jump_label: Add static_key_{en,dis}able() helpers Peter Zijlstra
2015-07-24 17:52 ` [RFC][PATCH 5/7] jump_label: Rework update logic Peter Zijlstra
2015-07-27  9:07   ` Peter Zijlstra
2015-07-27 10:47   ` Peter Zijlstra
2015-07-27 16:30     ` Peter Zijlstra
2015-07-28  5:54       ` Heiko Carstens
2015-07-24 17:52 ` [RFC][PATCH 6/7] jump_label: Add a new static_key interface Peter Zijlstra
2015-07-27  9:24   ` Peter Zijlstra
2015-07-27  9:52   ` Peter Zijlstra
2015-07-27 10:20     ` Heiko Carstens
2015-07-27 10:47       ` Peter Zijlstra
2015-07-27 10:50         ` Peter Zijlstra
2015-07-27 10:52           ` Heiko Carstens
2015-07-27 11:03             ` Peter Zijlstra
2015-07-27 14:39             ` Peter Zijlstra
2015-07-27 10:45   ` Peter Zijlstra
2015-07-27 10:51     ` Heiko Carstens
2015-07-24 17:52 ` [RFC][PATCH 7/7] x86, tsc: Employ static_branch_likely() Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox