| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
|---|
| 3 | 4 | * Copyright (C) 2013 Richard Weinberger <richard@nod.at> |
|---|
| 4 | 5 | * Copyright (C) 2014 Google Inc., Author: Daniel Walter <dwalter@google.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #include <linux/kallsyms.h> |
|---|
| .. | .. |
|---|
| 63 | 60 | static void __save_stack_trace(struct task_struct *tsk, struct stack_trace *trace) |
|---|
| 64 | 61 | { |
|---|
| 65 | 62 | dump_trace(tsk, &dump_ops, trace); |
|---|
| 66 | | - if (trace->nr_entries < trace->max_entries) |
|---|
| 67 | | - trace->entries[trace->nr_entries++] = ULONG_MAX; |
|---|
| 68 | 63 | } |
|---|
| 69 | 64 | |
|---|
| 70 | 65 | void save_stack_trace(struct stack_trace *trace) |
|---|