-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
bcc: 0.24.0 -> 0.25.0; bpftrace: 0.15.0 -> 0.16.0 #189078
Conversation
@ofborg build bpftrace linuxPackages.oci-seccomp-bpf-hook |
It appears that
Also |
ah, I had missed the binutils patch had already been merged as I'm on slightly older tree to spare my tiny nix-store disk for tests... And it obviously didn't merge conflict... Thanks for the heads up. Also made me take another look and we no longer need the mass rename for man pages, and quite some more cleanup was possible so here's an update for this. I've never looked at |
adf0131
to
6267b0d
Compare
Ok so that's the same problem bpftrace 0.15.0 had, bcc changed the arguments to containers/oci-seccomp-bpf-hook#100 has been opened there I'll help a bit on it... |
So should we wait a bit with the upgrade? Looks like iovisor/gobpf#311 might have chance of being merged soon. |
Yeah, this isn't in any real hurry -- after looking there really isn't much to do that isn't either already done or horrible, so I've subscribed to both this and the oci-seccomp-bpf-hook issues and will update this when either have moved. There doesn't seem to be any "on hold" kind of label, if I missed it feel free to add it :) (and I'll remove the fetchpatch input as pointed out by @SuperSandro2000 with the hook fix) |
you didn't push it though |
There's no hook fix yet. I don't see any point in making ofborg rebuild everything for something we're not merging. |
Updated to also use libbpf_1 ; didn't retest but iirc I tested back then and it should be ok. the gobpf issue hasn't moved in over a month though with no comment from the maintainer (schu) at all, and no new commits for over a year. |
(marked as draft until oci-seccomp-bpf-hook gets fixed -- the libbpfgo issue got fixed so just need that update used now...) |
I got oci-seccomp-bpf-hook updated with the unreleased gobpf, and they released a new version with that -- updating it in nixpkgs at least builds but I have no way of checking. @saschagrunert could you give it a spin? afaik the update could be done separately as unlike bpftrace the newer oci-seccomp-bpf-hook should work with bcc 0.24; happy to split the PR if that helps but it'll need checking with new bcc anyway... Note I also moved it away from linuxPackages -- it doesn't depend on kernel (I assume that's a leftover from when bcc used to); I've added an inherit like bcc/bpftrace for backwards compatibility. I don't really care about this so happy to drop that commit if someone has strong feelings either way. With this I see no problem with bcc 0.25, so I've removed the draft. |
@martinetd the hook should work with bcc 0.25.0: containers/oci-seccomp-bpf-hook#104 I had no chance to test this out yet, though. |
Well, yes, I'm the author of that PR ;) But I don't have any setup to test/have no idea how the hook should actually work... From the "change default to libbpf_1" draft PR discussion it doesn't look like we'll be moving this forward before the 22.11 branch, so we've got a bit of time here to test this if you can/have time. |
Oops, I did not notice that! 😁
Yes, I think that should be feasible in this case. |
note bcc 0.25.0 breaks bpftrace 0.15.0, so this needs to be together with bcc upgrade
the default llvm on linux is llvm11, which works but is old and has some deprecation warnings when building bcc (and possibly some features disabled for bpftrace). Just use the latest current version
fixes compatibility with bcc 0.25
oci-seccomp-bpf-hook does not depend on kernel and does not need to be a linuxPackage attribute. keep inherited attribute for backwards compability
at the moment the used go-epbf version not compatible with our bcc version.
Thanks! Hadn't realized grafana also had an ebpf exporter mode... (I've now rebased #199830 making libbpf_1 the default and marked it ready) |
Description of changes
upgrade to latest bcc/bpftrace (bcc upgrade breaks older bpftrace, so PR grouped together)
I've tested the tools still work with default llvm 11, but it's old so upgrading it makes more sense to have better tested code paths
I've also tested the PR with #187978 (libbpf 1.0) -- the tools work with either version of libbpf
Things done
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)