mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Baron <jbaron@akamai.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, joe@perches.com, peterz@infradead.org
Subject: [PATCH 0/3] convert dynamic_debug to use jump labels
Date: Mon, 25 Jan 2016 16:48:09 -0500	[thread overview]
Message-ID: <cover.1453754062.git.jbaron@akamai.com> (raw)

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

             reply	other threads:[~2016-01-25 21:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25 21:48 Jason Baron [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1453754062.git.jbaron@akamai.com \
    --to=jbaron@akamai.com \
    --cc=akpm@linux-foundation.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®