ia64/linux-2.6.18-xen.hg

annotate kernel/stacktrace.c @ 562:66faefe721eb

pvSCSI backend driver

Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jun 02 09:58:27 2008 +0100 (2008-06-02)
parents 831230e53067
children
rev   line source
ian@0 1 /*
ian@0 2 * kernel/stacktrace.c
ian@0 3 *
ian@0 4 * Stack trace management functions
ian@0 5 *
ian@0 6 * Copyright (C) 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
ian@0 7 */
ian@0 8 #include <linux/sched.h>
ian@0 9 #include <linux/kallsyms.h>
ian@0 10 #include <linux/stacktrace.h>
ian@0 11
ian@0 12 void print_stack_trace(struct stack_trace *trace, int spaces)
ian@0 13 {
ian@0 14 int i, j;
ian@0 15
ian@0 16 for (i = 0; i < trace->nr_entries; i++) {
ian@0 17 unsigned long ip = trace->entries[i];
ian@0 18
ian@0 19 for (j = 0; j < spaces + 1; j++)
ian@0 20 printk(" ");
ian@0 21 print_ip_sym(ip);
ian@0 22 }
ian@0 23 }
ian@0 24