Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ebpf-exporter: init at 2.4.1 and add module #301253

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jpds
Copy link
Contributor

@jpds jpds commented Apr 3, 2024

Description of changes

Adds https://github.com/cloudflare/ebpf_exporter at 2.4.1, tested with biolatency eBPF program from upstream.

Also adds a module for the exporter.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Apr 3, 2024
@Sigmanificient
Copy link
Member

Result of nixpkgs-review pr 301253 run on x86_64-linux 1

@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch 4 times, most recently from 0d9f010 to 39d9b8a Compare April 3, 2024 18:27
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-linux: 1-10 10.rebuild-linux: 1 and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Apr 3, 2024
@Ma27
Copy link
Member

Ma27 commented Apr 7, 2024

A module (and ideally a test) for that would be nice.

@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch from 39d9b8a to 245650a Compare May 14, 2024 20:27
@github-actions github-actions bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label May 14, 2024
@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch from 245650a to 74cea77 Compare May 14, 2024 20:30
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels May 14, 2024
@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch from 3de7b69 to edfc840 Compare May 14, 2024 21:06
@jpds jpds changed the title ebpf-exporter: init at 2.4.0 ebpf-exporter: init at 2.4.1 and add module May 14, 2024
@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch 3 times, most recently from 5ee60c0 to d4b2e0d Compare May 14, 2024 21:26
@github-actions github-actions bot added 8.has: documentation This PR adds or changes documentation 8.has: changelog labels May 14, 2024
@jpds
Copy link
Contributor Author

jpds commented May 14, 2024

@Ma27 Should be good to go now.

@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch 2 times, most recently from 4b1b145 to 3162f60 Compare May 19, 2024 11:40
@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch from 3162f60 to de20d0c Compare May 19, 2024 12:01
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 22, 2024
@h7x4 h7x4 added 8.has: module (new) This PR adds a module in `nixos/` 8.has: tests This PR has tests labels Jun 1, 2024
@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch from de20d0c to 4f28a4a Compare June 2, 2024 16:55
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 2, 2024
@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch from 4f28a4a to 859e6ca Compare June 24, 2024 09:48
@github-actions github-actions bot removed the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Jun 24, 2024
vendorHash = "sha256-2PokkJjsDKdM6QZq/qbZ9DOeeIWUsTbShmnop70xJhM=";

postPatch = ''
substituteInPlace examples/Makefile \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why exactly are examples compiled in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because these are the BPF programs which make the exporter useful.

@jpds jpds force-pushed the ebpf-exporter-2.4.0 branch from 859e6ca to 51f30d6 Compare June 30, 2024 09:31
Copy link
Member

@LostAttractor LostAttractor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't build on latest nixpkgs since #316761 get merged.

clang: error: unsupported option '-fzero-call-used-regs=used-gpr' for target 'bpf'

zerocallusedregs is not available for bpf target
It should be disabled by adding hardeningDisable = [ "zerocallusedregs" ];

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 10, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: documentation This PR adds or changes documentation 8.has: module (new) This PR adds a module in `nixos/` 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 8.has: tests This PR has tests 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants