diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-12-09 19:31:23 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-12-09 19:34:41 +0100 |
commit | 507e78fb94376040e74588dd7a31eb44b32d1e91 (patch) | |
tree | 6e3b92c12d1a078047552e4a5ceeec7b8e02625c /pkgs/os-specific | |
parent | 1b396c7ae959f57295a65c170b5a238160ac64d3 (diff) | |
download | nixpkgs-507e78fb94376040e74588dd7a31eb44b32d1e91.tar nixpkgs-507e78fb94376040e74588dd7a31eb44b32d1e91.tar.gz nixpkgs-507e78fb94376040e74588dd7a31eb44b32d1e91.tar.bz2 nixpkgs-507e78fb94376040e74588dd7a31eb44b32d1e91.tar.lz nixpkgs-507e78fb94376040e74588dd7a31eb44b32d1e91.tar.xz nixpkgs-507e78fb94376040e74588dd7a31eb44b32d1e91.tar.zst nixpkgs-507e78fb94376040e74588dd7a31eb44b32d1e91.zip |
lttng-modules: fix build on linux 3.14.x
By applying patch from upstream mailing list[1] (should be in the next release). [1]: http://lists.lttng.org/pipermail/lttng-dev/2014-December/023914.html
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/lttng-modules/build-fix.patch | 30 | ||||
-rw-r--r-- | pkgs/os-specific/linux/lttng-modules/default.nix | 3 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/lttng-modules/build-fix.patch b/pkgs/os-specific/linux/lttng-modules/build-fix.patch new file mode 100644 index 00000000000..76f449b8b2c --- /dev/null +++ b/pkgs/os-specific/linux/lttng-modules/build-fix.patch @@ -0,0 +1,30 @@ +[PATCH] Update compaction instrumentation for 3.14.x stable kernels + +Conditional compilation introduced by lttng-modules commit + + 0007344741ef65259bc52dea72259173dfbf96c0 + +needs to be applied to kernels 3.14.25 and up in the 3.14.x branch. + +Signed-off-by: Simon Marchi <simon.marchi at polymtl.ca> +Reported-by: Bjørn Forsman <bjorn.forsman at gmail.com> +--- + instrumentation/events/lttng-module/compaction.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/instrumentation/events/lttng-module/compaction.h b/instrumentation/events/lttng-module/compaction.h +index ee23aa9..773a6ad 100644 +--- a/instrumentation/events/lttng-module/compaction.h ++++ b/instrumentation/events/lttng-module/compaction.h +@@ -46,7 +46,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_compaction_isolate_template, mm_compaction_is + TP_ARGS(nr_scanned, nr_taken) + ) + +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) ++#if LTTNG_KERNEL_RANGE(3,14,25, 3,15,0) || \ ++ (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) + LTTNG_TRACEPOINT_EVENT(mm_compaction_migratepages, + + TP_PROTO(unsigned long nr_all, +-- +2.1.3 diff --git a/pkgs/os-specific/linux/lttng-modules/default.nix b/pkgs/os-specific/linux/lttng-modules/default.nix index 315265f8203..b41b6261b16 100644 --- a/pkgs/os-specific/linux/lttng-modules/default.nix +++ b/pkgs/os-specific/linux/lttng-modules/default.nix @@ -13,6 +13,9 @@ stdenv.mkDerivation rec { sha256 = "01gha02ybbzr86v6s6bqn649jiw5k89kb363b9s1iv8igrdlzhl1"; }; + # from upstream ML, should be in the next release + patches = [ ./build-fix.patch ]; + preConfigure = '' export KERNELDIR="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" export INSTALL_MOD_PATH="$out" |