lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-k09qay1cmr0l3fzprmztzy3o@git.kernel.org>
Date:   Mon, 24 Oct 2016 11:57:30 -0700
From:   tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     dsahern@...il.com, tglx@...utronix.de,
        linux-kernel@...r.kernel.org, jolsa@...nel.org, anton@...abs.org,
        wangnan0@...wei.com, namhyung@...nel.org, peterz@...radead.org,
        adrian.hunter@...el.com, acme@...hat.com, maciejd@...gle.com,
        eranian@...gle.com, mingo@...nel.org, hpa@...or.com
Subject: [tip:perf/core] perf jit: Add NT_GNU_BUILD_ID definition for older
 distros

Commit-ID:  5fef5f3f096d4852d63239836d0e57a0861f9b73
Gitweb:     http://git.kernel.org/tip/5fef5f3f096d4852d63239836d0e57a0861f9b73
Author:     Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Thu, 13 Oct 2016 18:37:11 -0300
Committer:  Arnaldo Carvalho de Melo <acme@...hat.com>
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@...el.com>
Cc: Anton Blanchard <anton@...abs.org>
Cc: David Ahern <dsahern@...il.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Maciej Debski <maciejd@...gle.com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Stephane Eranian <eranian@...gle.com>
Cc: Wang Nan <wangnan0@...wei.com>
Link: http://lkml.kernel.org/n/tip-k09qay1cmr0l3fzprmztzy3o@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
 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 */

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ