Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305415
b: refs/heads/master
c: e826abd
h: refs/heads/master
i:
  305413: d7f28dc
  305411: 31239fb
  305407: 41e60bf
v: v3
  • Loading branch information
Shuah Khan authored and H. Peter Anvin committed May 7, 2012
1 parent 648835d commit cbae9c0
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57da8b960b9a25646a8ddb5a9c1d0b5978e69bec
refs/heads/master: e826abd523913f63eb03b59746ffb16153c53dc4
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/kdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ enum die_val {
extern void printk_address(unsigned long address, int reliable);
extern void die(const char *, struct pt_regs *,long);
extern int __must_check __die(const char *, struct pt_regs *, long);
extern void show_registers(struct pt_regs *regs);
extern void show_trace(struct task_struct *t, struct pt_regs *regs,
unsigned long *sp, unsigned long bp);
extern void __show_regs(struct pt_regs *regs, int all);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/dumpstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ int __kprobes __die(const char *str, struct pt_regs *regs, long err)
current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP)
return 1;

show_regs(regs);
show_registers(regs);
#ifdef CONFIG_X86_32
if (user_mode_vm(regs)) {
sp = regs->sp;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/dumpstack_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
}


void show_regs(struct pt_regs *regs)
void show_registers(struct pt_regs *regs)
{
int i;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/dumpstack_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
show_trace_log_lvl(task, regs, sp, bp, log_lvl);
}

void show_regs(struct pt_regs *regs)
void show_registers(struct pt_regs *regs)
{
int i;
unsigned long sp;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,9 @@ int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs)
"current sp %p does not match saved sp %p\n",
stack_addr(regs), kcb->jprobe_saved_sp);
printk(KERN_ERR "Saved registers for jprobe %p\n", jp);
show_regs(saved_regs);
show_registers(saved_regs);
printk(KERN_ERR "Current registers\n");
show_regs(regs);
show_registers(regs);
BUG();
}
*regs = kcb->jprobe_saved_regs;
Expand Down
9 changes: 4 additions & 5 deletions trunk/arch/x86/kernel/microcode_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,11 @@ static ssize_t reload_store(struct device *dev,
{
unsigned long val;
int cpu = dev->id;
int ret = 0;
char *end;
ssize_t ret = 0;

val = simple_strtoul(buf, &end, 0);
if (end == buf)
return -EINVAL;
ret = kstrtoul(buf, 0, &val);
if (ret)
return ret;

if (val == 1) {
get_online_cpus();
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ io_check_error(unsigned char reason, struct pt_regs *regs)
pr_emerg(
"NMI: IOCK error (debug interrupt?) for reason %02x on CPU %d.\n",
reason, smp_processor_id());
show_regs(regs);
show_registers(regs);

if (panic_on_io_nmi)
panic("NMI IOCK error: Not continuing");
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ void exit_thread(void)
}
}

void show_regs(struct pt_regs *regs)
{
show_registers(regs);
show_trace(NULL, regs, (unsigned long *)kernel_stack_pointer(regs), 0);
}

void show_regs_common(void)
{
const char *vendor, *product, *board;
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ void set_personality_ia32(bool x32)
current_thread_info()->status |= TS_COMPAT;
}
}
EXPORT_SYMBOL_GPL(set_personality_ia32);

unsigned long get_wchan(struct task_struct *p)
{
Expand Down

0 comments on commit cbae9c0

Please sign in to comment.