File tree 2 files changed +21
-4
lines changed
pkgs/os-specific/linux/kernel
2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change
1
+ diff -ru -x '*~' linux-4.9.31-orig/tools/perf/util/annotate.c linux-4.9.31/tools/perf/util/annotate.c
2
+ --- linux-4.9.31-orig/tools/perf/util/annotate.c 2017-06-07 12:08:04.000000000 +0200
3
+ +++ linux-4.9.31/tools/perf/util/annotate.c 2017-06-12 13:10:08.811079574 +0200
4
+ @@ -1350,7 +1350,7 @@
5
+ "%s %s%s --start-address=0x%016" PRIx64
6
+ " --stop-address=0x%016" PRIx64
7
+ " -l -d %s %s -C %s 2>/dev/null|grep -v %s|expand",
8
+ - objdump_path ? objdump_path : "objdump",
9
+ + objdump_path ? objdump_path : OBJDUMP_PATH,
10
+ disassembler_style ? "-M " : "",
11
+ disassembler_style ? disassembler_style : "",
12
+ map__rip_2objdump(map, sym->start),
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ assert versionAtLeast kernel.version "3.12";
11
11
stdenv . mkDerivation {
12
12
name = "perf-linux-${ kernel . version } " ;
13
13
14
- inherit ( kernel ) src patches ;
14
+ inherit ( kernel ) src ;
15
+
16
+ patches = kernel . patches ++ [ ./perf-binutils-path.patch ] ;
15
17
16
18
preConfigure = ''
17
19
cd tools/perf
@@ -30,9 +32,12 @@ stdenv.mkDerivation {
30
32
31
33
# Note: we don't add elfutils to buildInputs, since it provides a
32
34
# bad `ld' and other stuff.
33
- NIX_CFLAGS_COMPILE = [
34
- "-Wno-error=cpp" "-Wno-error=bool-compare" "-Wno-error=deprecated-declarations"
35
- ]
35
+ NIX_CFLAGS_COMPILE =
36
+ [ "-Wno-error=cpp"
37
+ "-Wno-error=bool-compare"
38
+ "-Wno-error=deprecated-declarations"
39
+ "-DOBJDUMP_PATH=\" ${ binutils } /bin/objdump\" "
40
+ ]
36
41
# gcc before 6 doesn't know these options
37
42
++ stdenv . lib . optionals ( hasPrefix "gcc-6" stdenv . cc . cc . name ) [
38
43
"-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
You can’t perform that action at this time.
0 commit comments