mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] convert dynamic_debug to use jump labels
@ 2016-01-25 21:48 Jason Baron
  2016-01-25 21:48 ` [PATCH 1/3] jump_label: create jump_label_branch.h Jason Baron
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jason Baron @ 2016-01-25 21:48 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, joe, peterz

Hi,

In the course of adding jump label support to dynamic_debug (patch #3), I
found the inclusion of <linux/bug.h> by <linux/jump_label.h> to problematic b/c
it includes <linux/kernel.h> (thus, creating circular include dependencies).
Thus, patch #1 splits jump_label.h such that 'struct static_key' and
static_branch_[un]likely() can be used with minimail dependencies. I think this
is consistent with how this facility is often used, and should be useful for
other use-cases as well.

Patch #2 was required to get powerpc to compile.

Thanks,

-Jason


Jason Baron (3):
  jump_label: create jump_label_branch.h
  powerpc: add explicit #include <asm/asm-compat.h> for jump label
  dynamic_debug: add jump label support

 arch/powerpc/include/asm/jump_label.h |   1 +
 include/linux/dynamic_debug.h         |  54 ++++++++-
 include/linux/jump_label.h            | 181 +------------------------------
 include/linux/jump_label_branch.h     | 199 ++++++++++++++++++++++++++++++++++
 lib/dynamic_debug.c                   |   7 ++
 5 files changed, 260 insertions(+), 182 deletions(-)
 create mode 100644 include/linux/jump_label_branch.h

-- 
2.6.1

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

end of thread, other threads:[~2016-01-25 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-25 21:48 [PATCH 0/3] convert dynamic_debug to use jump labels Jason Baron
2016-01-25 21:48 ` [PATCH 1/3] jump_label: create jump_label_branch.h Jason Baron
2016-01-25 21:48 ` [PATCH 2/3] powerpc: add explicit #include <asm/asm-compat.h> for jump label Jason Baron
2016-01-25 21:48 ` [PATCH 3/3] dynamic_debug: add jump label support Jason Baron

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

all inboxes | Powered by JetHome®