| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * builtin-kallsyms.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Builtin command: Look for a symbol in the running kernel and its modules |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (C) 2017, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * Released under the GPL v2. (and only v2, not any later version) |
|---|
| 9 | 8 | */ |
|---|
| 10 | 9 | #include <inttypes.h> |
|---|
| 11 | 10 | #include "builtin.h" |
|---|
| 12 | 11 | #include <linux/compiler.h> |
|---|
| 13 | 12 | #include <subcmd/parse-options.h> |
|---|
| 14 | 13 | #include "debug.h" |
|---|
| 14 | +#include "dso.h" |
|---|
| 15 | 15 | #include "machine.h" |
|---|
| 16 | +#include "map.h" |
|---|
| 16 | 17 | #include "symbol.h" |
|---|
| 17 | 18 | |
|---|
| 18 | 19 | static int __cmd_kallsyms(int argc, const char **argv) |
|---|