~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/x86/oprofile/backtrace.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include <asm/stacktrace.h>
17
17
#include <linux/compat.h>
18
18
 
19
 
static void backtrace_warning_symbol(void *data, char *msg,
20
 
                                     unsigned long symbol)
21
 
{
22
 
        /* Ignore warnings */
23
 
}
24
 
 
25
 
static void backtrace_warning(void *data, char *msg)
26
 
{
27
 
        /* Ignore warnings */
28
 
}
29
 
 
30
19
static int backtrace_stack(void *data, char *name)
31
20
{
32
21
        /* Yes, we want all stacks */
42
31
}
43
32
 
44
33
static struct stacktrace_ops backtrace_ops = {
45
 
        .warning        = backtrace_warning,
46
 
        .warning_symbol = backtrace_warning_symbol,
47
34
        .stack          = backtrace_stack,
48
35
        .address        = backtrace_address,
49
36
        .walk_stack     = print_context_stack,
126
113
        if (!user_mode_vm(regs)) {
127
114
                unsigned long stack = kernel_stack_pointer(regs);
128
115
                if (depth)
129
 
                        dump_trace(NULL, regs, (unsigned long *)stack,
 
116
                        dump_trace(NULL, regs, (unsigned long *)stack, 0,
130
117
                                   &backtrace_ops, &depth);
131
118
                return;
132
119
        }