| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Performance event callchain support - SuperH architecture code |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009 Paul Mundt |
|---|
| 5 | | - * |
|---|
| 6 | | - * This file is subject to the terms and conditions of the GNU General Public |
|---|
| 7 | | - * License. See the file "COPYING" in the main directory of this archive |
|---|
| 8 | | - * for more details. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | #include <linux/kernel.h> |
|---|
| 11 | 8 | #include <linux/sched.h> |
|---|
| .. | .. |
|---|
| 13 | 10 | #include <linux/percpu.h> |
|---|
| 14 | 11 | #include <asm/unwinder.h> |
|---|
| 15 | 12 | #include <asm/ptrace.h> |
|---|
| 16 | | - |
|---|
| 17 | | -static int callchain_stack(void *data, char *name) |
|---|
| 18 | | -{ |
|---|
| 19 | | - return 0; |
|---|
| 20 | | -} |
|---|
| 21 | 13 | |
|---|
| 22 | 14 | static void callchain_address(void *data, unsigned long addr, int reliable) |
|---|
| 23 | 15 | { |
|---|
| .. | .. |
|---|
| 28 | 20 | } |
|---|
| 29 | 21 | |
|---|
| 30 | 22 | static const struct stacktrace_ops callchain_ops = { |
|---|
| 31 | | - .stack = callchain_stack, |
|---|
| 32 | 23 | .address = callchain_address, |
|---|
| 33 | 24 | }; |
|---|
| 34 | 25 | |
|---|