Commit Graph

26 Commits

Author SHA1 Message Date
Sandro Jäckel
e12175e3e1
linuxPackages.perf: fix path to dmesg 2024-09-22 15:28:51 +05:30
K900
4e54a5a38a linuxPackages_6_11.perf: fix build 2024-09-15 21:14:52 +03:00
Tobias Mayer
4535a56495
ghostscript, logrotate, linux-perf: adopt 2024-07-28 17:15:17 +02:00
K900
40ebc3096e linuxPackages_6_10.perf: fix build
Revert upstream change that breaks things in a very strange way.
See commit being reverted for details.
2024-07-15 12:23:59 +03:00
Alois Wohlschlager
27934d1c13
Revert "linuxPackages_latest.perf: add -O1 workaround for gcc-13"
This reverts commit 410d15e156.
The workaround is no longer needed since GCC 13 is 13.3.0 now.
2024-07-03 17:28:12 +02:00
Sigmanificient
d48a9bb622 treewide: remove unused fetchpatch arguments 2024-06-04 12:40:25 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Sergei Trofimovich
410d15e156 linuxPackages_latest.perf: add -O1 workaround for gcc-13
Without the change `perf top` just crashes early as:

    $ perf top
    perf: Segmentation fault
    -------- backtrace --------
    /<<NIX>>/perf-linux-6.7.4/bin/perf[0x627382]
    /<<NIX>>/glibc-2.38-27/lib/libc.so.6(+0x3deb0)[0x7f423a054eb0]
    /<<NIX>>/perf-linux-6.7.4/bin/perf(__dsos__findnew_link_by_longname_id+0x34b)[0x53655b]
    /<<NIX>>/perf-linux-6.7.4/bin/perf(map__new+0x35f)[0x55884f]
    /<<NIX>>/perf-linux-6.7.4/bin/perf(machine__process_mmap2_event+0xb7)[0x557b27]
    /<<NIX>>/perf-linux-6.7.4/bin/perf(perf_tool__process_synth_event+0x7e)[0x59e86e]
    /<<NIX>>/perf-linux-6.7.4/bin/perf(perf_event__synthesize_mmap_events+0x370)[0x59f0e0]
    /<<NIX>>/perf-linux-6.7.4/bin/perf[0x59fd5c]
    /<<NIX>>/perf-linux-6.7.4/bin/perf[0x59ffcc]
    /<<NIX>>/perf-linux-6.7.4/bin/perf[0x5a0093]
    /<<NIX>>/glibc-2.38-27/lib/libc.so.6(+0x8b333)[0x7f423a0a2333]
    /<<NIX>>/glibc-2.38-27/lib/libc.so.6(+0x10defc)[0x7f423a124efc]

It's a known `gcc-12+` bug not yet fixed in `gcc-13`: https://gcc.gnu.org/PR111009

Let's demote optimizations from `-O2` down to `-O1` to disable any
VRP-related effects for affected `gcc-13`.
2024-02-08 20:52:44 +00:00
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