Sergei Trofimovich
cc4bb239a3
perf: enable perf stat
evens supported by libpfm
2023-08-19 13:09:17 +01:00
Sergei Trofimovich
0768fe799a
linuxPackages_testing.perf: fix patchShebang
...
Without the change `perf` build fails as:
$ nix build --no-link -f. linuxPackages_testing.perf -L
build flags: SHELL=/nix/store/p6dlr3skfhxpyphipg2bqnj52999banh-bash-5.2-p15/bin/bash prefix=\$\(out\) WERROR=0 ASCIIDOC8=1 O=\$\(buildRoot\) CC=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/cc HOSTCC=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/cc HOSTLD=/nix/store/kcp78dk7h5gcs7d4qss7rbz3skxhzdnn-binutils-wrapper-2.40/bin/ld ARCH=x86_64 NO_GTK2=1
BUILD: Doing 'make -j16' parallel build
HOSTCC fixdep.o
HOSTLD fixdep-in.o
LINK fixdep
make[1]: ./check-headers.sh: No such file or directory
make[1]: *** [Makefile.perf:241: sub-make] Error 127
make: *** [Makefile:70: all] Error 2
This started happening because upstream linux commit
d674838509
changed shebang from /bin/sh to /bin/bash.
Let's retroactively switch all `perf` releases to shell interpreter from
store.
2023-08-06 20:22:09 +01:00
fetsorn
849897fa30
perf-linux: fix typo
...
"embeded" -> "embedded"
2023-05-08 22:11:18 +04:00
Sergei Trofimovich
e205b43f47
linuxPackages_latest.perf: fix python shebangs on 6.3+
...
Without the change `perf` build fails as:
sh: line 1: pmu-events/metric_test.py: cannot execute: required file not found
make[3]: *** [pmu-events/Build:32: pmu-events/metric_test.log] Error 1
Full build log: https://hydra.nixos.org/log/mp5a0fr1jhw3rvkp8azbh5xh0g1cjqhj-perf-linux-6.3.drv
2023-04-25 07:30:18 +01:00
Sergei Trofimovich
6d009ffe2c
linuxPackages_latest.perf: add libtraceevent to build depends
...
Without the change `perf trace` subcommand is unavailable.
2023-03-02 23:16:46 +00:00
Artturin
f9fdf2d402
treewide: move NIX_CFLAGS_COMPILE to the env attrset
...
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Alyssa Ross
6fe87d1586
linuxPackages.perf: only use systemtap where available
...
Fixes pkgsMusl.perf.
2023-01-29 10:50:11 +00:00
Aaron Jheng
039d874f0b
perf-linux: tweak make flags to supress build warnings
2022-11-27 03:50:09 +00:00
Aaron Jheng
5b3eccd108
perf-linux: clean up code
...
- Remove support for older versions below 5.0 which are already marked as broken
- Drop patches for removed versions such as 5.19
- Some minor changes
2022-11-16 02:25:21 +00:00
Sergei Trofimovich
f690a10b85
Merge pull request #201127 from aaronjheng/zhf/perf
...
perf-linux: fix build on linux 5.4
2022-11-14 08:16:41 +00:00
Aaron Jheng
ff7f75dfcc
perf-linux: fix build on linux 5.4
2022-11-14 04:30:27 +00:00
Aaron Jheng
177732bd36
perf: add libbabeltrace dependency
2022-11-14 00:47:41 +00:00
Aaron Jheng
a72fc0d5b9
perf: add default d3-flame-graph templates for flamegraph script ( #198028 )
...
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-11-10 17:57:52 +01:00
Aaron Jheng
d7618af3d8
perf: remove trace binary
2022-11-03 22:31:38 +00:00
Aaron Jheng
1bac4d0f77
perf: add python.interpreter to PATH
2022-10-25 13:10:13 +00:00
K900
dbf1d73cd1
perf: fix build with kernel 6.0
2022-10-03 11:04:50 +00:00
Sergei Trofimovich
19b8b523c9
linuxPackages.perf: use binutils-2.38 for linux before 5.19
...
Without the change perf build fails on binutils-2.39 due to API change:
util/annotate.c: In function 'symbol__disassemble_bpf':
util/annotate.c:1765:9: error: too few arguments to function 'init_disassemble_info'
1765 | init_disassemble_info(&info, s,
| ^~~~~~~~~~~~~~~~~~~~~
2022-08-24 07:25:08 +01:00
Sergei Trofimovich
8940dd0559
linuxPackages.perf: move from perf.nix to perf/ directory
...
While at it dropped top-level 'with lib;'.
2022-08-14 09:17:48 +01:00