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 <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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent e97fd138
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "color.h" #include "color.h"
#include "config.h" #include "config.h"
#include "cache.h" #include "cache.h"
#include "dso.h"
#include "map.h" #include "map.h"
#include "symbol.h" #include "symbol.h"
#include "srcline.h" #include "srcline.h"
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include "dso.h"
#include "build-id.h" #include "build-id.h"
#include "event.h" #include "event.h"
#include "namespaces.h" #include "namespaces.h"
......
...@@ -16,6 +16,9 @@ struct machine; ...@@ -16,6 +16,9 @@ struct machine;
struct map; struct map;
struct perf_env; struct perf_env;
#define DSO__NAME_KALLSYMS "[kernel.kallsyms]"
#define DSO__NAME_KCORE "[kernel.kcore]"
enum dso_binary_type { enum dso_binary_type {
DSO_BINARY_TYPE__KALLSYMS = 0, DSO_BINARY_TYPE__KALLSYMS = 0,
DSO_BINARY_TYPE__GUEST_KALLSYMS, DSO_BINARY_TYPE__GUEST_KALLSYMS,
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "strlist.h" #include "strlist.h"
#include "strfilter.h" #include "strfilter.h"
#include "debug.h" #include "debug.h"
#include "dso.h"
#include "cache.h" #include "cache.h"
#include "color.h" #include "color.h"
#include "symbol.h" #include "symbol.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "annotate.h" #include "annotate.h"
#include "build-id.h" #include "build-id.h"
#include "cap.h" #include "cap.h"
#include "dso.h"
#include "util.h" #include "util.h"
#include "debug.h" #include "debug.h"
#include "event.h" #include "event.h"
......
...@@ -46,9 +46,6 @@ Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, ...@@ -46,9 +46,6 @@ Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep,
#define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */ #define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */
#endif #endif
#define DSO__NAME_KALLSYMS "[kernel.kallsyms]"
#define DSO__NAME_KCORE "[kernel.kcore]"
/** struct symbol - symtab entry /** struct symbol - symtab entry
* *
* @ignore - resolvable but tools ignore it (e.g. idle routines) * @ignore - resolvable but tools ignore it (e.g. idle routines)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment