/* * arch/arm64/kernel/return_address.c * * Copyright (C) 2013 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> * * 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> #include <asm/stack_pointer.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 |
AKASHI Takahiro | 57 | 100.00% | 1 | 100.00% |
Total | 57 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
AKASHI Takahiro | 98 | 100.00% | 3 | 100.00% |
Total | 98 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
AKASHI Takahiro | 183 | 98.39% | 3 | 75.00% |
Mark Rutland | 3 | 1.61% | 1 | 25.00% |
Total | 186 | 100.00% | 4 | 100.00% |