Skip to content

preempt: Add a generic function to return the preemption string.

Sebastian Andrzej Siewior linux-arm-kernel linux-rt-devel linux-s390 linux-trace-kernel linuxppc-dev lkml 4 versions – Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 10 repliesApplied
  2. v39 patches 2 repliesSuperseded
  3. v29 patches 22 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC1 patch9 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/9sched: Add a generic function to return the preemption string.include/linux/preempt.h kernel/sched/core.c kernel/sched/debug.c +1 more+56 -48 replies
2/9lib/dump_stack: Use preempt_model_str().lib/dump_stack.c+2 -20 replies
3/9arm: Rely on generic printing of preemption model.arch/arm/kernel/traps.c+2 -90 replies
4/9arm64: Rely on generic printing of preemption model.arch/arm64/kernel/traps.c+1 -90 replies
5/9powerpc: Rely on generic printing of preemption model.arch/powerpc/kernel/traps.c+1 -20 replies
6/9s390: Rely on generic printing of preemption model.arch/s390/kernel/dumpstack.c+1 -60 replies
7/9x86: Rely on generic printing of preemption model.arch/x86/kernel/dumpstack.c+2 -70 replies
8/9xtensa: Rely on generic printing of preemption model.arch/xtensa/kernel/traps.c+1 -50 replies
9/9tracing: Use preempt_model_str().kernel/trace/trace.c+1 -60 replies

Reviews trailers per patch

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

PatchShrikanth HegdeRussell King (Oracle)Will DeaconCatalin MarinasChristophe LeroyHeiko CarstensMax FilippovSteven Rostedt (Google)
1/9R-b
2/9
3/9R-b
4/9A-b A-b
5/9R-b R-b
6/9A-b
7/9
8/9A-b
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/9] preempt: Add a generic function to return the preemption string.

The individual architectures often add the preemption model to the begin of the backtrace. This is the case on X86 or ARM64 for the "die" case but not for regular warning. With the addition of DYNAMIC_PREEMPT for PREEMPT_RT we end up with CONFIG_PREEMPT and CONFIG_PREEMPT_RT set simultaneously. That means that everyone who tried to add that piece of information gets it wrong for PREEMPT_RT because PREEMPT is checked first.

This series adds a generic helper which is used by dump_stack_print_info() and other architectures which don't use the function and provide this information on their own.

I collected ACKs for all architectures but x86.

v3…v4 https://lore.kernel.org/all/[email protected]/
- repost

v2…v3 https://lore.kernel.org/all/[email protected]/
- powerpc/ s390 and xtensa had the preemption string twice. Removed from the arch code.
- Keeping the same printk() invocation, avoiding adding any level.
- #1 has now a table showing which strings are possible.

RFC…v2 https://lore.kernel.org/all/[email protected]/
- Split into individual patches.
- Implement preempt_model_str() based on feedback by Peter Zijlstra and Steven Rostedt.

Sebastian Andrzej Siewior (9):
sched: Add a generic function to return the preemption string. lib/dump_stack: Use preempt_model_str().
arm: Rely on generic printing of preemption model.
arm64: Rely on generic printing of preemption model.
powerpc: Rely on generic printing of preemption model.
s390: Rely on generic printing of preemption model.
x86: Rely on generic printing of preemption model.
xtensa: Rely on generic printing of preemption model.
tracing: Use preempt_model_str().

 arch/arm/kernel/traps.c      | 11 ++-------
 arch/arm64/kernel/traps.c    | 10 +-------
 arch/powerpc/kernel/traps.c  |  3 +--
 arch/s390/kernel/dumpstack.c |  7 +-----
 arch/x86/kernel/dumpstack.c  |  9 ++-----
 arch/xtensa/kernel/traps.c   |  6 +----
 include/linux/preempt.h      |  2 ++
 kernel/sched/core.c          | 47 ++++++++++++++++++++++++++++++++++++
 kernel/sched/debug.c         | 10 +++++---
 kernel/sched/sched.h         |  1 +
 kernel/trace/trace.c         |  7 +-----
 lib/dump_stack.c             |  4 +--
 12 files changed, 67 insertions(+), 50 deletions(-)
Signature · 1 line
2.47.2