Skip to content

Commit

Permalink
pkg: fix undefined: isCOntainerSched (typecheck)
Browse files Browse the repository at this point in the history
Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Dec 23, 2023
1 parent 218405f commit a5b99fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 6 additions & 0 deletions pkg/util/ebpf/bpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ var (
"CONFIG_UPROBES",
"CONFIG_ARCH_SUPPORTS_UPROBES",
}

configPaths = []string{
"/proc/config.gz",
"/boot/config",
"/boot/config-%s",
}
)

type UnameInfo struct {
Expand Down
6 changes: 0 additions & 6 deletions pkg/util/ebpf/bpf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ var (
"/usr/lib/debug/boot/vmlinux-%s.debug",
"/usr/lib/debug/lib/modules/%s/vmlinux",
}

configPaths = []string{
"/proc/config.gz",
"/boot/config",
"/boot/config-%s",
}
)

func GetSystemConfig() (map[string]string, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/ebpf/bpf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func TestIsContainerCgroup(t *testing.T) {
}

func TestIsContainerSched(t *testing.T) {
isContainer, err := isCOntainerSched()
isContainer, err := isContainerSched()
if err != nil {
t.Fatalf("TestIsContainerSched :: IsContainer error:%s", err.Error())
}
Expand Down

0 comments on commit a5b99fb

Please sign in to comment.