Adding linux 'perf' tool.

svn path=/nixpkgs/trunk/; revision=31319
This commit is contained in:
Lluís Batlle i Rossell 2012-01-05 21:24:51 +00:00
parent f490ef82b8
commit 4c814dd003
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, kernel, elfutils }:
stdenv.mkDerivation {
name = "perf-linux-${kernel.version}";
inherit (kernel) src;
preConfigure = ''
cd tools/perf
export makeFlags="DESTDIR=$out"
'';
buildInputs = [ elfutils ];
meta = {
homepage = https://perf.wiki.kernel.org/;
description = "Linux tools to profile with performance counters";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}

View File

@ -5821,6 +5821,8 @@ let
stdenv = overrideGCC stdenv gcc34;
};
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
# State Nix
snix = callPackage ../tools/package-management/snix {