/* * arch/arm/kernel/return_address.c * * Copyright (C) 2009 Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> * for Pengutronix * * 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/export.h> #include <linux/ftrace.h> #if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) #include <linux/sched.h> #include <asm/stacktrace.h> struct return_address_data { unsigned int level; void *addr; };
static int save_return_addr(struct stackframe *frame, void *d) { struct return_address_data *data = d; if (!data->level) { data->addr = (void *)frame->pc; return 1; } else { --data->level; return 0; } }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Uwe Kleine-König | 56 | 98.25% | 1 | 50.00% |
Keun-O Park | 1 | 1.75% | 1 | 50.00% |
Total | 57 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Uwe Kleine-König | 93 | 92.08% | 1 | 33.33% |
Keun-O Park | 7 | 6.93% | 1 | 33.33% |
Behan Webster | 1 | 0.99% | 1 | 33.33% |
Total | 101 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Uwe Kleine-König | 191 | 93.63% | 2 | 33.33% |
Keun-O Park | 8 | 3.92% | 1 | 16.67% |
Russell King | 3 | 1.47% | 1 | 16.67% |
Paul Gortmaker | 1 | 0.49% | 1 | 16.67% |
Behan Webster | 1 | 0.49% | 1 | 16.67% |
Total | 204 | 100.00% | 6 | 100.00% |