Skip to content

convert dynamic_debug to use jump labels

Jason Baron linux-arm-kernel linuxppc-dev lkml sparclinux 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 8 repliesIn review 6 of 7 applied
  2. v24 patches 11 repliesSuperseded
  3. v13 patches 0 repliesSuperseded

Patches in v3 6 of 7 applied

#Subject and filesSizeRepliesApplied
1/7powerpc: add explicit #include <asm/asm-compat.h> for jump labelarch/powerpc/include/asm/jump_label.h+1 -01 replyApplied
2/7s390: add explicit <linux/stringify.h> for jump labelarch/s390/include/asm/jump_label.h+1 -00 replies
3/7sparc: support static_key usage in non-module __exit sectionsarch/sparc/kernel/vmlinux.lds.S+7 -01 replyApplied
4/7tile: support static_key usage in non-module __exit sectionsarch/tile/kernel/vmlinux.lds.S+12 -00 repliesApplied
5/7arm: jump label may reference text in __exitarch/arm/kernel/vmlinux.lds.S+1 -10 repliesApplied
6/7jump_label: remove bug.h, atomic.h dependencies for HAVE_JUMP_LABELinclude/linux/jump_label.h kernel/jump_label.c+76 -230 repliesApplied
7/7dynamic_debug: add jump label supportinclude/linux/dynamic_debug.h lib/dynamic_debug.c+61 -66 repliesApplied

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchDavid S. MillerMichael Ellerman
1/7A-b
2/7
3/7A-b
4/7
5/7
6/7
7/7

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

Read the v3 thread

Cover letter [PATCH v3 0/7] convert dynamic_debug to use jump labels

Hi,

Since v2, I found that s390, sparc, and tile could end up with link errors such as:

.exit.text' referenced in section __jump_table' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o

This is due to the fact the '__jump_table' may reference text in an __exit section which is discarded during build/link time. Thus, the sparc, arm and tile patch have been added to address this issue.

In addition, an 'allyesconfig' on arm did not build either due to the usage of -O0 compiler flag. This has been removed in this patch: http://lkml.iu.edu/hypermail/linux/kernel/1606.3/01587.html

So this series depends on that patch to build properly on arm (which I currently see being pulled into linux-next).

-v3:
*added sparc, arm, tile patches for cross section references *re-based on (4c5ea0a locking/static_key: Fix concurrent static_key_slow_inc())

Thanks,

-Jason

Chris Metcalf (1):
tile: support static_key usage in non-module __exit sections

Jason Baron (6):
powerpc: add explicit #include <asm/asm-compat.h> for jump label
s390: add explicit #include <linux/stringify.h> for jump label
sparc: support static_key usage in non-module __exit sections
arm: jump label may reference text in __exit
jump_label: remove bug.h, atomic.h dependencies for HAVE_JUMP_LABEL
dynamic_debug: add jump label support

 arch/arm/kernel/vmlinux.lds.S         |  2 +-
 arch/powerpc/include/asm/jump_label.h |  1 +
 arch/s390/include/asm/jump_label.h    |  1 +
 arch/sparc/kernel/vmlinux.lds.S       |  7 ++++
 arch/tile/kernel/vmlinux.lds.S        | 12 +++++++
 include/linux/dynamic_debug.h         | 60 +++++++++++++++++++++++++++++++----
 include/linux/jump_label.h            | 46 +++++++++++++--------------
 kernel/jump_label.c                   | 53 +++++++++++++++++++++++++++++++
 lib/dynamic_debug.c                   |  7 ++++
 9 files changed, 159 insertions(+), 30 deletions(-)
Signature · 1 line
2.6.1