Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NxPKG authored Jun 22, 2024
1 parent 77db622 commit 408ba9b
Show file tree
Hide file tree
Showing 54 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
needs: build-and-lint
timeout-minutes: 15
env:
GBPF_TEST_IGNORE_KERNEL_VERSION: 'TestKprobeMulti,TestKprobeMultiErrors,TestKprobeMultiCookie,TestKprobeMultiProgramCall,TestHavgBPFLinkKprobeMulti'
EBPF_TEST_IGNORE_KERNEL_VERSION: 'TestKprobeMulti,TestKprobeMultiErrors,TestKprobeMultiCookie,TestKprobeMultiProgramCall,TestHaveBPFLinkKprobeMulti'
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
*.out
Binary file modified btf/testdata/relocs-eb.elf
Binary file not shown.
Binary file modified btf/testdata/relocs-el.elf
Binary file not shown.
Binary file modified btf/testdata/relocs_enum-eb.elf
Binary file not shown.
Binary file modified btf/testdata/relocs_enum-el.elf
Binary file not shown.
Binary file modified btf/testdata/relocs_read-eb.elf
Binary file not shown.
Binary file modified btf/testdata/relocs_read-el.elf
Binary file not shown.
Binary file modified cmd/bpf2go/testdata/minimal-eb.elf
Binary file not shown.
Binary file modified cmd/bpf2go/testdata/minimal-el.elf
Binary file not shown.
2 changes: 1 addition & 1 deletion features/prog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math"
"testing"

gbpf "github.com/khulnasoft/gbpf"
"github.com/khulnasoft/gbpf"
"github.com/khulnasoft/gbpf/asm"
"github.com/khulnasoft/gbpf/internal"
"github.com/khulnasoft/gbpf/internal/testutils"
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ require (
github.com/go-quicktest/qt v1.101.0
github.com/google/go-cmp v0.6.0
github.com/jsimonetti/rtnetlink/v2 v2.0.1
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
golang.org/x/sys v0.21.0
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2
golang.org/x/sys v0.20.0
)

require (
Expand All @@ -18,5 +18,5 @@ require (
github.com/mdlayher/socket v0.4.1 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sync v0.1.0 // indirect
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsK
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 h1:Jvc7gsqn21cJHCmAWx0LiimpP18LZmUxkT5Mp7EZ1mI=
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
2 changes: 1 addition & 1 deletion link/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func RawAttachProgram(opts RawAttachProgramOptions) error {

if flags == sys.BPF_F_REPLACE {
// Ensure that replacing a program works on old kernels.
attr.ReplacgBpfFd = fdOrID
attr.ReplaceBpfFd = fdOrID
} else {
attr.RelativeFdOrId = fdOrID
attr.AttachFlags |= flags
Expand Down
2 changes: 1 addition & 1 deletion map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ func TestCgroupPerCPUStorageMarshaling(t *testing.T) {
AttachBpfFd: uint32(prog.FD()),
AttachType: uint32(AttachCGroupInetEgress),
AttachFlags: 0,
ReplacgBpfFd: 0,
ReplaceBpfFd: 0,
}
err = sys.ProgAttach(&progAttachAttrs)
if err != nil {
Expand Down
Binary file modified testdata/btf_map_init-eb.elf
Binary file not shown.
Binary file modified testdata/btf_map_init-el.elf
Binary file not shown.
Binary file modified testdata/constants-eb.elf
Binary file not shown.
Binary file modified testdata/constants-el.elf
Binary file not shown.
2 changes: 1 addition & 1 deletion testdata/docker/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1719075092
1719076868
Binary file modified testdata/errors-eb.elf
Binary file not shown.
Binary file modified testdata/errors-el.elf
Binary file not shown.
Binary file modified testdata/fentry_fexit-eb.elf
Binary file not shown.
Binary file modified testdata/fentry_fexit-el.elf
Binary file not shown.
Binary file modified testdata/freplace-eb.elf
Binary file not shown.
Binary file modified testdata/freplace-el.elf
Binary file not shown.
Binary file modified testdata/fwd_decl-eb.elf
Binary file not shown.
Binary file modified testdata/fwd_decl-el.elf
Binary file not shown.
Binary file modified testdata/invalid-kfunc-eb.elf
Binary file not shown.
Binary file modified testdata/invalid-kfunc-el.elf
Binary file not shown.
Binary file modified testdata/invalid_map_static-eb.elf
Binary file not shown.
Binary file modified testdata/invalid_map_static-el.elf
Binary file not shown.
Binary file modified testdata/kconfig-eb.elf
Binary file not shown.
Binary file modified testdata/kconfig-el.elf
Binary file not shown.
Binary file modified testdata/kconfig_config-eb.elf
Binary file not shown.
Binary file modified testdata/kconfig_config-el.elf
Binary file not shown.
Binary file modified testdata/kfunc-eb.elf
Binary file not shown.
Binary file modified testdata/kfunc-el.elf
Binary file not shown.
Binary file modified testdata/kfunc-kmod-eb.elf
Binary file not shown.
Binary file modified testdata/kfunc-kmod-el.elf
Binary file not shown.
Binary file modified testdata/loader-clang-11-eb.elf
Binary file not shown.
Binary file modified testdata/loader-clang-11-el.elf
Binary file not shown.
Binary file modified testdata/loader-clang-14-eb.elf
Binary file not shown.
Binary file modified testdata/loader-clang-14-el.elf
Binary file not shown.
Binary file modified testdata/loader-clang-17-eb.elf
Binary file not shown.
Binary file modified testdata/loader-clang-17-el.elf
Binary file not shown.
Binary file modified testdata/manyprogs-eb.elf
Binary file not shown.
Binary file modified testdata/manyprogs-el.elf
Binary file not shown.
Binary file modified testdata/raw_tracepoint-eb.elf
Binary file not shown.
Binary file modified testdata/raw_tracepoint-el.elf
Binary file not shown.
Binary file modified testdata/strings-eb.elf
Binary file not shown.
Binary file modified testdata/strings-el.elf
Binary file not shown.
Binary file modified testdata/subprog_reloc-eb.elf
Binary file not shown.
Binary file modified testdata/subprog_reloc-el.elf
Binary file not shown.

0 comments on commit 408ba9b

Please sign in to comment.