[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/traps: Unexport show_code() and show_stack_overflow()
commit 528efc7b6aa2ed66b494bbc648892e5338522a26 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Mon May 26 19:59:17 2025 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Aug 15 11:13:42 2025 +0100 x86/traps: Unexport show_code() and show_stack_overflow() These can become static now the two traps.c have been merged. No fucntional change. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/include/asm/processor.h | 2 -- xen/arch/x86/traps.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/include/asm/processor.h b/xen/arch/x86/include/asm/processor.h index 2799d59e38..1342241742 100644 --- a/xen/arch/x86/include/asm/processor.h +++ b/xen/arch/x86/include/asm/processor.h @@ -333,8 +333,6 @@ extern void write_ptbase(struct vcpu *v); /* PAUSE (encoding: REP NOP) is a good thing to insert into busy-wait loops. */ #define cpu_relax() asm volatile ( "pause" ::: "memory" ) -void show_code(const struct cpu_user_regs *regs); -void show_stack_overflow(unsigned int cpu, const struct cpu_user_regs *regs); void show_registers(const struct cpu_user_regs *regs); #define dump_execution_state() run_in_exception_handler(show_execution_state) void show_page_walk(unsigned long addr); diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index ab8ff36acf..270b93ed62 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -354,7 +354,7 @@ void show_page_walk(unsigned long addr) l1_table_offset(addr), l1e_get_intpte(l1e), pfn); } -void show_code(const struct cpu_user_regs *regs) +static void show_code(const struct cpu_user_regs *regs) { unsigned char insns_before[8] = {}, insns_after[16] = {}; unsigned int i, tmp, missing_before, missing_after; @@ -838,7 +838,7 @@ static void show_stack(const struct cpu_user_regs *regs) show_trace(regs); } -void show_stack_overflow(unsigned int cpu, const struct cpu_user_regs *regs) +static void show_stack_overflow(unsigned int cpu, const struct cpu_user_regs *regs) { unsigned long esp = regs->rsp; unsigned long curr_stack_base = esp & ~(STACK_SIZE - 1); -- generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |