Commit-ID: 5fef5f3f096d4852d63239836d0e57a0861f9b73 Gitweb: http://git.kernel.org/tip/5fef5f3f096d4852d63239836d0e57a0861f9b73 Author: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> AuthorDate: Thu, 13 Oct 2016 18:37:11 -0300 Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> CommitDate: Mon, 24 Oct 2016 11:07:36 -0300 perf jit: Add NT_GNU_BUILD_ID definition for older distros Such as CentOS5, where such define is not present in elf.h. This file, genelf.c, wasn't being built for several systems, because it mistakenly was conditional on some DWARF features, now that it is just needing libelf, after "perf jit: Enable jitdump support without dwarf" it fails. So, as preparation for "perf jit: Enable jitdump support without dwarf", conditionally define it, if not available. Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx> Cc: Anton Blanchard <anton@xxxxxxxxxx> Cc: David Ahern <dsahern@xxxxxxxxx> Cc: Jiri Olsa <jolsa@xxxxxxxxxx> Cc: Maciej Debski <maciejd@xxxxxxxxxx> Cc: Namhyung Kim <namhyung@xxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Stephane Eranian <eranian@xxxxxxxxxx> Cc: Wang Nan <wangnan0@xxxxxxxxxx> Link: http://lkml.kernel.org/n/tip-k09qay1cmr0l3fzprmztzy3o@xxxxxxxxxxxxxx Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> --- tools/perf/util/genelf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/genelf.c b/tools/perf/util/genelf.c index c1ef805..8a2995e 100644 --- a/tools/perf/util/genelf.c +++ b/tools/perf/util/genelf.c @@ -25,6 +25,10 @@ #include "genelf.h" #include "../util/jitdump.h" +#ifndef NT_GNU_BUILD_ID +#define NT_GNU_BUILD_ID 3 +#endif + #define JVMTI #define BUILD_ID_URANDOM /* different uuid for each run */ -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |