Skip to content

Commit 8af220c

Browse files
jpoimboegregkh
authored andcommitted
x86/unwind: Rename unwinder config options to 'CONFIG_UNWINDER_*'
commit 11af847 upstream. Rename the unwinder config options from: CONFIG_ORC_UNWINDER CONFIG_FRAME_POINTER_UNWINDER CONFIG_GUESS_UNWINDER to: CONFIG_UNWINDER_ORC CONFIG_UNWINDER_FRAME_POINTER CONFIG_UNWINDER_GUESS ... in order to give them a more logical config namespace. Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/73972fc7e2762e91912c6b9584582703d6f1b8cc.1507924831.git.jpoimboe@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a11adc6 commit 8af220c

12 files changed

Lines changed: 23 additions & 23 deletions

File tree

‎Documentation/x86/orc-unwinder.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ORC unwinder
44
Overview
55
--------
66

7-
The kernel CONFIG_ORC_UNWINDER option enables the ORC unwinder, which is
7+
The kernel CONFIG_UNWINDER_ORC option enables the ORC unwinder, which is
88
similar in concept to a DWARF unwinder. The difference is that the
99
format of the ORC data is much simpler than DWARF, which in turn allows
1010
the ORC unwinder to be much simpler and faster.

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,8 @@ ifdef CONFIG_STACK_VALIDATION
935935
ifeq ($(has_libelf),1)
936936
objtool_target := tools/objtool FORCE
937937
else
938-
ifdef CONFIG_ORC_UNWINDER
939-
$(error "Cannot generate ORC metadata for CONFIG_ORC_UNWINDER=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
938+
ifdef CONFIG_UNWINDER_ORC
939+
$(error "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
940940
else
941941
$(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
942942
endif

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ config X86
171171
select HAVE_PERF_USER_STACK_DUMP
172172
select HAVE_RCU_TABLE_FREE
173173
select HAVE_REGS_AND_STACK_ACCESS_API
174-
select HAVE_RELIABLE_STACKTRACE if X86_64 && FRAME_POINTER_UNWINDER && STACK_VALIDATION
174+
select HAVE_RELIABLE_STACKTRACE if X86_64 && UNWINDER_FRAME_POINTER && STACK_VALIDATION
175175
select HAVE_STACK_VALIDATION if X86_64
176176
select HAVE_SYSCALL_TRACEPOINTS
177177
select HAVE_UNSTABLE_SCHED_CLOCK

‎arch/x86/Kconfig.debug‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ config PUNIT_ATOM_DEBUG
359359

360360
choice
361361
prompt "Choose kernel unwinder"
362-
default FRAME_POINTER_UNWINDER
362+
default UNWINDER_FRAME_POINTER
363363
---help---
364364
This determines which method will be used for unwinding kernel stack
365365
traces for panics, oopses, bugs, warnings, perf, /proc/<pid>/stack,
366366
livepatch, lockdep, and more.
367367

368-
config FRAME_POINTER_UNWINDER
368+
config UNWINDER_FRAME_POINTER
369369
bool "Frame pointer unwinder"
370370
select FRAME_POINTER
371371
---help---
@@ -380,7 +380,7 @@ config FRAME_POINTER_UNWINDER
380380
consistency model, as this is currently the only way to get a
381381
reliable stack trace (CONFIG_HAVE_RELIABLE_STACKTRACE).
382382

383-
config ORC_UNWINDER
383+
config UNWINDER_ORC
384384
bool "ORC unwinder"
385385
depends on X86_64
386386
select STACK_VALIDATION
@@ -396,7 +396,7 @@ config ORC_UNWINDER
396396
Enabling this option will increase the kernel's runtime memory usage
397397
by roughly 2-4MB, depending on your kernel config.
398398

399-
config GUESS_UNWINDER
399+
config UNWINDER_GUESS
400400
bool "Guess unwinder"
401401
depends on EXPERT
402402
---help---
@@ -411,7 +411,7 @@ config GUESS_UNWINDER
411411
endchoice
412412

413413
config FRAME_POINTER
414-
depends on !ORC_UNWINDER && !GUESS_UNWINDER
414+
depends on !UNWINDER_ORC && !UNWINDER_GUESS
415415
bool
416416

417417
endmenu

‎arch/x86/configs/tiny.config‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CONFIG_NOHIGHMEM=y
22
# CONFIG_HIGHMEM4G is not set
33
# CONFIG_HIGHMEM64G is not set
4-
CONFIG_GUESS_UNWINDER=y
5-
# CONFIG_FRAME_POINTER_UNWINDER is not set
4+
CONFIG_UNWINDER_GUESS=y
5+
# CONFIG_UNWINDER_FRAME_POINTER is not set

‎arch/x86/configs/x86_64_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ CONFIG_DEBUG_STACKOVERFLOW=y
299299
# CONFIG_DEBUG_RODATA_TEST is not set
300300
CONFIG_DEBUG_BOOT_PARAMS=y
301301
CONFIG_OPTIMIZE_INLINING=y
302-
CONFIG_ORC_UNWINDER=y
302+
CONFIG_UNWINDER_ORC=y
303303
CONFIG_SECURITY=y
304304
CONFIG_SECURITY_NETWORK=y
305305
CONFIG_SECURITY_SELINUX=y

‎arch/x86/include/asm/module.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <asm/orc_types.h>
77

88
struct mod_arch_specific {
9-
#ifdef CONFIG_ORC_UNWINDER
9+
#ifdef CONFIG_UNWINDER_ORC
1010
unsigned int num_orcs;
1111
int *orc_unwind_ip;
1212
struct orc_entry *orc_unwind;

‎arch/x86/include/asm/unwind.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ struct unwind_state {
1313
struct task_struct *task;
1414
int graph_idx;
1515
bool error;
16-
#if defined(CONFIG_ORC_UNWINDER)
16+
#if defined(CONFIG_UNWINDER_ORC)
1717
bool signal, full_regs;
1818
unsigned long sp, bp, ip;
1919
struct pt_regs *regs;
20-
#elif defined(CONFIG_FRAME_POINTER_UNWINDER)
20+
#elif defined(CONFIG_UNWINDER_FRAME_POINTER)
2121
bool got_irq;
2222
unsigned long *bp, *orig_sp, ip;
2323
struct pt_regs *regs;
@@ -51,7 +51,7 @@ void unwind_start(struct unwind_state *state, struct task_struct *task,
5151
__unwind_start(state, task, regs, first_frame);
5252
}
5353

54-
#if defined(CONFIG_ORC_UNWINDER) || defined(CONFIG_FRAME_POINTER_UNWINDER)
54+
#if defined(CONFIG_UNWINDER_ORC) || defined(CONFIG_UNWINDER_FRAME_POINTER)
5555
static inline struct pt_regs *unwind_get_entry_regs(struct unwind_state *state)
5656
{
5757
if (unwind_done(state))
@@ -66,7 +66,7 @@ static inline struct pt_regs *unwind_get_entry_regs(struct unwind_state *state)
6666
}
6767
#endif
6868

69-
#ifdef CONFIG_ORC_UNWINDER
69+
#ifdef CONFIG_UNWINDER_ORC
7070
void unwind_init(void);
7171
void unwind_module_init(struct module *mod, void *orc_ip, size_t orc_ip_size,
7272
void *orc, size_t orc_size);

‎arch/x86/kernel/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ obj-$(CONFIG_PERF_EVENTS) += perf_regs.o
127127
obj-$(CONFIG_TRACING) += tracepoint.o
128128
obj-$(CONFIG_SCHED_MC_PRIO) += itmt.o
129129

130-
obj-$(CONFIG_ORC_UNWINDER) += unwind_orc.o
131-
obj-$(CONFIG_FRAME_POINTER_UNWINDER) += unwind_frame.o
132-
obj-$(CONFIG_GUESS_UNWINDER) += unwind_guess.o
130+
obj-$(CONFIG_UNWINDER_ORC) += unwind_orc.o
131+
obj-$(CONFIG_UNWINDER_FRAME_POINTER) += unwind_frame.o
132+
obj-$(CONFIG_UNWINDER_GUESS) += unwind_guess.o
133133

134134
###
135135
# 64 bit specific files

‎include/asm-generic/vmlinux.lds.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@
688688
#define BUG_TABLE
689689
#endif
690690

691-
#ifdef CONFIG_ORC_UNWINDER
691+
#ifdef CONFIG_UNWINDER_ORC
692692
#define ORC_UNWIND_TABLE \
693693
. = ALIGN(4); \
694694
.orc_unwind_ip : AT(ADDR(.orc_unwind_ip) - LOAD_OFFSET) { \

0 commit comments

Comments
 (0)