perf symbols: Remove some unnecessary includes from symbol.h

And fixup the fallout in places like annotation and jitdump that were
using things like dirname() but weren't including libgen.h, etc.

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-wrii9hy1a1wathc0398f9fgt@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo
2019-01-22 11:14:55 -02:00
parent d328e305ea
commit 68c0188ea7
5 changed files with 8 additions and 6 deletions

View File

@ -9,6 +9,7 @@
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <libgen.h>
#include "util.h" #include "util.h"
#include "ui/ui.h" #include "ui/ui.h"
#include "sort.h" #include "sort.h"

View File

@ -8,6 +8,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <libgen.h>
#include "compress.h" #include "compress.h"
#include "path.h" #include "path.h"
#include "symbol.h" #include "symbol.h"

View File

@ -2,6 +2,7 @@
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#include <libgen.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -3,6 +3,7 @@
#include "util.h" #include "util.h"
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>

View File

@ -5,16 +5,10 @@
#include <linux/types.h> #include <linux/types.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include "map.h"
#include "../perf.h"
#include <linux/list.h> #include <linux/list.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include <stdio.h> #include <stdio.h>
#include <byteswap.h>
#include <libgen.h>
#include "branch.h" #include "branch.h"
#include "build-id.h"
#include "event.h"
#include "path.h" #include "path.h"
#include "symbol_conf.h" #include "symbol_conf.h"
@ -26,6 +20,10 @@
#include "dso.h" #include "dso.h"
struct map;
struct map_groups;
struct option;
/* /*
* libelf 0.8.x and earlier do not support ELF_C_READ_MMAP; * libelf 0.8.x and earlier do not support ELF_C_READ_MMAP;
* for newer versions we can use mmap to reduce memory usage: * for newer versions we can use mmap to reduce memory usage: