diff options
| author | Joey Jiao <quic_jiangenj@quicinc.com> | 2024-06-11 10:53:25 +0800 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-06-17 08:56:33 +0000 |
| commit | 1f11cfd7279ff3046e6e7f871eeb195c48ccbfa9 (patch) | |
| tree | 55aa542603741d637db9be636fa48210f6383c59 /pkg/vminfo/vminfo.go | |
| parent | c1349e08b8ce2abf7e86375364268d8f696d077c (diff) | |
all: always use KernelModule ptr to unify usage
Diffstat (limited to 'pkg/vminfo/vminfo.go')
| -rw-r--r-- | pkg/vminfo/vminfo.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/vminfo/vminfo.go b/pkg/vminfo/vminfo.go index 103ee0a18..a880f2f5b 100644 --- a/pkg/vminfo/vminfo.go +++ b/pkg/vminfo/vminfo.go @@ -57,7 +57,7 @@ func New(cfg *mgrconfig.Config) *Checker { } } -func (checker *Checker) MachineInfo(fileInfos []*flatrpc.FileInfo) ([]cover.KernelModule, []byte, error) { +func (checker *Checker) MachineInfo(fileInfos []*flatrpc.FileInfo) ([]*cover.KernelModule, []byte, error) { files := createVirtualFilesystem(fileInfos) modules, err := checker.parseModules(files) if err != nil { @@ -106,7 +106,7 @@ type machineInfoFunc func(files filesystem, w io.Writer) (string, error) type checker interface { RequiredFiles() []string checkFiles() []string - parseModules(files filesystem) ([]cover.KernelModule, error) + parseModules(files filesystem) ([]*cover.KernelModule, error) machineInfos() []machineInfoFunc syscallCheck(*checkContext, *prog.Syscall) string } @@ -166,7 +166,7 @@ func (stub) checkFiles() []string { return nil } -func (stub) parseModules(files filesystem) ([]cover.KernelModule, error) { +func (stub) parseModules(files filesystem) ([]*cover.KernelModule, error) { return nil, nil } |
