You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
462 B
25 lines
462 B
19 years ago
|
/*
|
||
|
* kernel/stacktrace.c
|
||
|
*
|
||
|
* Stack trace management functions
|
||
|
*
|
||
|
* Copyright (C) 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
|
||
|
*/
|
||
|
#include <linux/sched.h>
|
||
|
#include <linux/kallsyms.h>
|
||
|
#include <linux/stacktrace.h>
|
||
|
|
||
|
void print_stack_trace(struct stack_trace *trace, int spaces)
|
||
|
{
|
||
|
int i, j;
|
||
|
|
||
|
for (i = 0; i < trace->nr_entries; i++) {
|
||
|
unsigned long ip = trace->entries[i];
|
||
|
|
||
|
for (j = 0; j < spaces + 1; j++)
|
||
|
printk(" ");
|
||
|
print_ip_sym(ip);
|
||
|
}
|
||
|
}
|
||
|
|