/* * AVR32 specific backtracing code for oprofile * * Copyright 2008 Weinmann GmbH * * Author: Nikolaus Voss <n.voss@weinmann.de> * * Based on i386 oprofile backtrace code by John Levon and David Smith * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #include <linux/oprofile.h> #include <linux/ptrace.h> #include <linux/uaccess.h> /* The first two words of each frame on the stack look like this if we have * frame pointers */ struct frame_head { unsigned long lr; struct frame_head *fp; }; /* copied from arch/avr32/kernel/process.c */
static inline int valid_stack_ptr(struct thread_info *tinfo, unsigned long p) { return (p > (unsigned long)tinfo) && (p < (unsigned long)tinfo + THREAD_SIZE - 3); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Nikolaus Voss | 41 | 100.00% | 1 | 100.00% |
Total | 41 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Nikolaus Voss | 89 | 100.00% | 1 | 100.00% |
Total | 89 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Nikolaus Voss | 109 | 100.00% | 1 | 100.00% |
Total | 109 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Nikolaus Voss | 265 | 99.62% | 1 | 50.00% |
Guenter Roeck | 1 | 0.38% | 1 | 50.00% |
Total | 266 | 100.00% | 2 | 100.00% |