Skip to content

Commit 11af847

Browse files
jpoimboeingomolnar
authored andcommitted
x86/unwind: Rename unwinder config options to 'CONFIG_UNWINDER_*'
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>
1 parent 6edcf57 commit 11af847

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
@@ -933,8 +933,8 @@ ifdef CONFIG_STACK_VALIDATION
933933
ifeq ($(has_libelf),1)
934934
objtool_target := tools/objtool FORCE
935935
else
936-
ifdef CONFIG_ORC_UNWINDER
937-
$(error "Cannot generate ORC metadata for CONFIG_ORC_UNWINDER=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
936+
ifdef CONFIG_UNWINDER_ORC
937+
$(error "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
938938
else
939939
$(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
940940
endif

‎arch/x86/Kconfig‎

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

‎arch/x86/Kconfig.debug‎

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

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

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

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

398-
config GUESS_UNWINDER
398+
config UNWINDER_GUESS
399399
bool "Guess unwinder"
400400
depends on EXPERT
401401
---help---
@@ -410,7 +410,7 @@ config GUESS_UNWINDER
410410
endchoice
411411

412412
config FRAME_POINTER
413-
depends on !ORC_UNWINDER && !GUESS_UNWINDER
413+
depends on !UNWINDER_ORC && !UNWINDER_GUESS
414414
bool
415415

416416
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
@@ -5,7 +5,7 @@
55
#include <asm/orc_types.h>
66

77
struct mod_arch_specific {
8-
#ifdef CONFIG_ORC_UNWINDER
8+
#ifdef CONFIG_UNWINDER_ORC
99
unsigned int num_orcs;
1010
int *orc_unwind_ip;
1111
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
@@ -12,11 +12,11 @@ struct unwind_state {
1212
struct task_struct *task;
1313
int graph_idx;
1414
bool error;
15-
#if defined(CONFIG_ORC_UNWINDER)
15+
#if defined(CONFIG_UNWINDER_ORC)
1616
bool signal, full_regs;
1717
unsigned long sp, bp, ip;
1818
struct pt_regs *regs;
19-
#elif defined(CONFIG_FRAME_POINTER_UNWINDER)
19+
#elif defined(CONFIG_UNWINDER_FRAME_POINTER)
2020
bool got_irq;
2121
unsigned long *bp, *orig_sp, ip;
2222
struct pt_regs *regs;
@@ -50,7 +50,7 @@ void unwind_start(struct unwind_state *state, struct task_struct *task,
5050
__unwind_start(state, task, regs, first_frame);
5151
}
5252

53-
#if defined(CONFIG_ORC_UNWINDER) || defined(CONFIG_FRAME_POINTER_UNWINDER)
53+
#if defined(CONFIG_UNWINDER_ORC) || defined(CONFIG_UNWINDER_FRAME_POINTER)
5454
static inline struct pt_regs *unwind_get_entry_regs(struct unwind_state *state)
5555
{
5656
if (unwind_done(state))
@@ -65,7 +65,7 @@ static inline struct pt_regs *unwind_get_entry_regs(struct unwind_state *state)
6565
}
6666
#endif
6767

68-
#ifdef CONFIG_ORC_UNWINDER
68+
#ifdef CONFIG_UNWINDER_ORC
6969
void unwind_init(void);
7070
void unwind_module_init(struct module *mod, void *orc_ip, size_t orc_ip_size,
7171
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
@@ -687,7 +687,7 @@
687687
#define BUG_TABLE
688688
#endif
689689

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

0 commit comments

Comments
 (0)