diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-12 10:04:13 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-12 14:20:38 -0400 |
commit | cc31078cf13f67c489ad6a5c48dea657f5f88d11 (patch) | |
tree | 7b0c670edf962ee3ef4f0f0e99255c61cb058c3d /tools/perf | |
parent | 6e6fec966dcd9eb47952b39def2dee975f3502ff (diff) |
perf symbols: Provide a GElf_Nhdr typedef
This one can be safely defined to be Elf64_Nhdr, as it is in elfutils's
libelf, but not on musl libc, as both Elf64_Nhdr and Elf32_Nhdr have
the same layout.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-w8z8614l03lc8bip4ijbywbt@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/symbol-elf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 6f15b92cbf70..79a6a190f41d 100644 --- a/tools/perf/util/symbol-elf.c +++ b/tools/perf/util/symbol-elf.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #define EM_AARCH64 183 /* ARM 64 bit */ | 16 | #define EM_AARCH64 183 /* ARM 64 bit */ |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | typedef Elf64_Nhdr GElf_Nhdr; | ||
19 | 20 | ||
20 | #ifdef HAVE_CPLUS_DEMANGLE_SUPPORT | 21 | #ifdef HAVE_CPLUS_DEMANGLE_SUPPORT |
21 | extern char *cplus_demangle(const char *, int); | 22 | extern char *cplus_demangle(const char *, int); |