perf dso: Adopt DSO related macros from symbol.h
The following commit has been merged into the perf/core branch of tip:
Commit-ID: fac583fdb6741bf4850928b2a5bb8b0118b5879c Gitweb: https://git.kernel.org/tip/fac583fdb6741bf4850928b2a5bb8b0118b5879c Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Fri, 30 Aug 2019 09:43:25 -03:00 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitterDate: Sat, 31 Aug 2019 22:19:28 -03:00
perf dso: Adopt DSO related macros from symbol.h
Reducing the size of symbol.h by removing things that are better placed somewhere else.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/annotate.c | 1 + tools/perf/util/build-id.c | 1 + tools/perf/util/dso.h | 3 +++ tools/perf/util/probe-file.c | 1 + tools/perf/util/symbol.c | 1 + tools/perf/util/symbol.h | 3 --- 6 files changed, 7 insertions(+), 3 deletions(-)
tools/perf/util/annotate.c +1 -0
@@ -20,6 +20,7 @@#include "color.h" #include "config.h" #include "cache.h" +#include "dso.h" #include "map.h" #include "symbol.h" #include "srcline.h"
tools/perf/util/build-id.c +1 -0
@@ -13,6 +13,7 @@#include <stdio.h> #include <sys/stat.h> #include <sys/types.h> +#include "dso.h" #include "build-id.h" #include "event.h" #include "namespaces.h"
tools/perf/util/dso.h +3 -0
@@ -16,6 +16,9 @@ struct machine;struct map ;struct perf_env ; +#define DSO__NAME_KALLSYMS "[kernel.kallsyms]" +#define DSO__NAME_KCORE "[kernel.kcore]" +enum dso_binary_type {DSO_BINARY_TYPE__KALLSYMS =0 ,DSO_BINARY_TYPE__GUEST_KALLSYMS ,
tools/perf/util/probe-file.c +1 -0
@@ -16,6 +16,7 @@#include "strlist.h" #include "strfilter.h" #include "debug.h" +#include "dso.h" #include "cache.h" #include "color.h" #include "symbol.h"
tools/perf/util/symbol.c +1 -0
@@ -18,6 +18,7 @@#include "annotate.h" #include "build-id.h" #include "cap.h" +#include "dso.h" #include "util.h" #include "debug.h" #include "event.h"
tools/perf/util/symbol.h +0 -3
@@ -46,9 +46,6 @@ Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep,#define DMGL_ANSI (1 << 1)/* Include const, volatile, etc */ #endif -#define DSO__NAME_KALLSYMS "[kernel.kallsyms]" -#define DSO__NAME_KCORE "[kernel.kcore]" -/** struct symbol - symtab entry * * @ignore - resolvable but tools ignore it (e.g. idle routines)