preempt: Add a generic function to return the preemption string.
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
- v4 Latest9 patches 10 repliesApplied
- v39 patches 2 repliesSuperseded
- v29 patches 22 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 RFC | 1 patch | 9 replies | Superseded |
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | sched: Add a generic function to return the preemption string.include/ kernel/ kernel/ +1 more | +56 | 8 replies | |
| 2/9 | lib/dump_stack: Use preempt_model_str().lib/ | +2 | 0 replies | |
| 3/9 | arm: Rely on generic printing of preemption model.arch/ | +2 | 0 replies | |
| 4/9 | arm64: Rely on generic printing of preemption model.arch/ | +1 | 0 replies | |
| 5/9 | powerpc: Rely on generic printing of preemption model.arch/ | +1 | 0 replies | |
| 6/9 | s390: Rely on generic printing of preemption model.arch/ | +1 | 0 replies | |
| 7/9 | x86: Rely on generic printing of preemption model.arch/ | +2 | 0 replies | |
| 8/9 | xtensa: Rely on generic printing of preemption model.arch/ | +1 | 0 replies | |
| 9/9 | tracing: Use preempt_model_str().kernel/ | +1 | 0 replies |
Reviews trailers per patch
7 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Shrikanth Hegde | Russell King (Oracle) | Will Deacon | Catalin Marinas | Christophe Leroy | Heiko Carstens | Max Filippov | Steven Rostedt (Google) |
|---|---|---|---|---|---|---|---|---|
| 1/9 | R-b | |||||||
| 2/9 | ||||||||
| 3/9 | R-b | |||||||
| 4/9 | A-b | A-b | ||||||
| 5/9 | R-b | R-b | ||||||
| 6/9 | A-b | |||||||
| 7/9 | ||||||||
| 8/9 | A-b | |||||||
| 9/9 | A-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.
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