> 
> +void ipi_cpu_backtrace(struct pt_regs *regs)
> +{
> +     int cpu = smp_processor_id();
> +
> +     if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
> +             printk_nmi_backtrace_this_cpu_begin();
> +             pr_warn("FIQ backtrace for cpu %d\n", cpu);
> +             if (regs != NULL)
> +                     show_regs(regs);
> +             else
> +                     dump_stack();

Help more if we could print both register and stack info.

> +             printk_nmi_backtrace_this_cpu_end();
> +
> +             cpumask_clear_cpu(cpu, to_cpumask(backtrace_mask));
> +     }
> +}



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to