Skip to content

Commit

Permalink
fix running on linux 4.19 ~ 5.5 failed
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Jan 18, 2025
1 parent e138c81 commit 8d962c7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions bpf/bpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ load:
},
IgnoreUnknownProgram: true,
IgnoreNotSupportedProgram: true,
IgnoreUnknownVariable: true,
})
if err != nil {
log.Infof("load and assign failed: %+v", err)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ require (
)

replace (
github.com/cilium/ebpf => github.com/mozillazg/ebpf v0.17.2-0.20250118124627-3c4232e06348
github.com/cilium/ebpf => github.com/mozillazg/ebpf v0.17.2-0.20250118135027-62b13edacbea
// github.com/cilium/ebpf => ../../cilium/ebpf
github.com/gopacket/gopacket => github.com/mozillazg/gopacket v0.0.0-20241026043817-048341de5231
// github.com/gopacket/gopacket => ../../gopacket/gopacket
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ github.com/mozillazg/cri-api v0.32.0-alpha.1.0.20241019013855-3dc36f8743df h1:90
github.com/mozillazg/cri-api v0.32.0-alpha.1.0.20241019013855-3dc36f8743df/go.mod h1:ca9lKDUa9PmUGVDSSetDQqgf0dyk/NW8u+MpJo7JaYA=
github.com/mozillazg/cri-client v0.31.0-alpha.0.0.20241019023238-87687176fd67 h1:M4+V89TNUGmRgSJZcH2nvotyqnFkmDl+MGApFoZbJY0=
github.com/mozillazg/cri-client v0.31.0-alpha.0.0.20241019023238-87687176fd67/go.mod h1:pFm23AAi/gIlW9FGrWPTPnGe1xsyGHPFFO/zezc4w90=
github.com/mozillazg/ebpf v0.17.2-0.20250118124627-3c4232e06348 h1:Eszm6n/lnMT/Zzo6Rr5lETU1zMiS0zctFT4+RsPjyQk=
github.com/mozillazg/ebpf v0.17.2-0.20250118124627-3c4232e06348/go.mod h1:vay2FaYSmIlv3r8dNACd4mW/OCaZLJKJOo+IHBvCIO8=
github.com/mozillazg/ebpf v0.17.2-0.20250118135027-62b13edacbea h1:s8OLenj15Oz0UbrFwwJrTUuQD+U0j4glAsybRufNN8s=
github.com/mozillazg/ebpf v0.17.2-0.20250118135027-62b13edacbea/go.mod h1:vay2FaYSmIlv3r8dNACd4mW/OCaZLJKJOo+IHBvCIO8=
github.com/mozillazg/gopacket v0.0.0-20241026043817-048341de5231 h1:uvhf0oGPfJ24Lc5/N2ysh9sQc71Pog67zxKiLVS4/Qg=
github.com/mozillazg/gopacket v0.0.0-20241026043817-048341de5231/go.mod h1:WnFrU1Xkf5lWKV38uKNR9+yYtppn+ZYzOyNqMeH4oNE=
github.com/mozillazg/pktdump v0.0.9-0.20241102131745-63c34f34f0d1 h1:kVgiW9P9tfqPXrIU/ZKC8XwkhHkri3s439D+RqSpF6g=
Expand Down
9 changes: 8 additions & 1 deletion vendor/github.com/cilium/ebpf/collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ github.com/Microsoft/hcsshim/internal/wclayer
github.com/Microsoft/hcsshim/internal/winapi
github.com/Microsoft/hcsshim/osversion
github.com/Microsoft/hcsshim/pkg/ociwclayer
# github.com/cilium/ebpf v0.16.0 => github.com/mozillazg/ebpf v0.17.2-0.20250118124627-3c4232e06348
# github.com/cilium/ebpf v0.16.0 => github.com/mozillazg/ebpf v0.17.2-0.20250118135027-62b13edacbea
## explicit; go 1.22
github.com/cilium/ebpf
github.com/cilium/ebpf/asm
Expand Down Expand Up @@ -601,7 +601,7 @@ k8s.io/utils/exec
## explicit; go 1.12
rsc.io/binaryregexp
rsc.io/binaryregexp/syntax
# github.com/cilium/ebpf => github.com/mozillazg/ebpf v0.17.2-0.20250118124627-3c4232e06348
# github.com/cilium/ebpf => github.com/mozillazg/ebpf v0.17.2-0.20250118135027-62b13edacbea
# github.com/gopacket/gopacket => github.com/mozillazg/gopacket v0.0.0-20241026043817-048341de5231
# github.com/x-way/pktdump => github.com/mozillazg/pktdump v0.0.9-0.20241102131745-63c34f34f0d1
# k8s.io/cri-api => github.com/mozillazg/cri-api v0.32.0-alpha.1.0.20241019013855-3dc36f8743df
Expand Down

0 comments on commit 8d962c7

Please sign in to comment.