14 stdenv.mkDerivation rec {
19 url = "mirror://sourceforge/oprofile/${pname}-${version}.tar.gz";
20 sha256 = "04m46ni0ryk4sqmzd6mahwzp7iwhwqzfbmfi42fki261sycnz83v";
24 substituteInPlace opjitconv/opjitconv.c \
25 --replace "/bin/rm" "${buildPackages.coreutils}/bin/rm" \
26 --replace "/bin/cp" "${buildPackages.coreutils}/bin/cp"
29 nativeBuildInputs = [ pkg-config ];
39 "--with-kernel=${linuxHeaders}"
40 "--disable-shared" # needed because only the static libbfd is available
44 description = "System-wide profiler for Linux";
46 OProfile is a system-wide profiler for Linux systems, capable of
47 profiling all running code at low overhead. It consists of a
48 kernel driver and a daemon for collecting sample data, and
49 several post-profiling tools for turning data into information.
51 OProfile leverages the hardware performance counters of the CPU
52 to enable profiling of a wide variety of interesting statistics,
53 which can also be used for basic time-spent profiling. All code
54 is profiled: hardware and software interrupt handlers, kernel
55 modules, the kernel, shared libraries, and applications.
57 license = lib.licenses.gpl2;
58 homepage = "http://oprofile.sourceforge.net/";
60 platforms = lib.platforms.linux;