Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
backtrace.c File Reference
#include <linux/oprofile.h>
#include <linux/sched.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <asm/compat.h>

Go to the source code of this file.

Macros

#define STACK_SP(STACK)   *(STACK)
 
#define STACK_LR64(STACK)   *((unsigned long *)(STACK) + 2)
 
#define STACK_LR32(STACK)   *((unsigned int *)(STACK) + 1)
 
#define STACK_LR(STACK)   STACK_LR32(STACK)
 

Functions

void op_powerpc_backtrace (struct pt_regs *const regs, unsigned int depth)
 

Macro Definition Documentation

#define STACK_LR (   STACK)    STACK_LR32(STACK)

Definition at line 24 of file backtrace.c.

#define STACK_LR32 (   STACK)    *((unsigned int *)(STACK) + 1)

Definition at line 19 of file backtrace.c.

#define STACK_LR64 (   STACK)    *((unsigned long *)(STACK) + 2)

Definition at line 18 of file backtrace.c.

#define STACK_SP (   STACK)    *(STACK)

Copyright (C) 2005 Brian Rogan bcr6@.nosp@m.corn.nosp@m.ell.e.nosp@m.du, IBM

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Definition at line 16 of file backtrace.c.

Function Documentation

void op_powerpc_backtrace ( struct pt_regs *const  regs,
unsigned int  depth 
)

Definition at line 91 of file backtrace.c.