perf dso: Adopt DSO related macros from symbol.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 30 Aug 2019 12:43:25 +0000 (09:43 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 1 Sep 2019 01:19:28 +0000 (22:19 -0300)
Reducing the size of symbol.h by removing things that are better placed
somewhere else.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-edenkmjt1oe5fks2s6umd30b@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/build-id.c
tools/perf/util/dso.h
tools/perf/util/probe-file.c
tools/perf/util/symbol.c
tools/perf/util/symbol.h

index 3bd1691f0be7ca056763d81853413e7dc8e70aff..67a7513077d0d22109c111000d95c094fe1739b8 100644 (file)
@@ -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"
index 4c96a33b09ffe3cb49369d3c2f938dd4c9dbd4e4..e5fb77755d9e24218d7c2a7fb3f5ef24c565651a 100644 (file)
@@ -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"
index 6e3f63781e51ad2f8294dbbe8645c9ddf39a62cd..ff0b818546282b82de987d91ad754d213506024a 100644 (file)
@@ -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,
index 5b4d49382932238dcf7bf15df82f4b5b14935031..10d2ab179c7180387cdac097ac190d1f4b4c061d 100644 (file)
@@ -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"
index c37cca690864f6851138c8efb4d25d1be8210521..b11a6968166244d58fdb9b29004ada424a920076 100644 (file)
@@ -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"
index 183f630cb5f1b47b1fc7aaaf105814d6df0cb01c..159c59652a5cf23aeefed6aadf0973c7bd009733 100644 (file)
@@ -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)