| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Use DWARF Debug information to skip unnecessary callchain entries. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2014 Sukadev Bhattiprolu, IBM Corporation. |
|---|
| 5 | 6 | * Copyright (C) 2014 Ulrich Weigand, IBM Corporation. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or |
|---|
| 8 | | - * modify it under the terms of the GNU General Public License |
|---|
| 9 | | - * as published by the Free Software Foundation; either version |
|---|
| 10 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 11 | 7 | */ |
|---|
| 12 | 8 | #include <inttypes.h> |
|---|
| 13 | 9 | #include <dwarf.h> |
|---|
| .. | .. |
|---|
| 16 | 12 | #include "util/thread.h" |
|---|
| 17 | 13 | #include "util/callchain.h" |
|---|
| 18 | 14 | #include "util/debug.h" |
|---|
| 15 | +#include "util/dso.h" |
|---|
| 16 | +#include "util/event.h" // struct ip_callchain |
|---|
| 17 | +#include "util/map.h" |
|---|
| 18 | +#include "util/symbol.h" |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | /* |
|---|
| 21 | 21 | * When saving the callchain on Power, the kernel conservatively saves |
|---|