Commit db9622b1 authored by songlinfeng's avatar songlinfeng 💬
Browse files

support hy-smi --showpids in docker

parent 4929d1c1
......@@ -108,6 +108,17 @@ func NewCommonHCUDiscoverer(logger logger.Interface, dtkCDIHookPath string, driv
directory,
)
debug := NewMounts(
logger,
lookup.NewDirectoryLocator(
lookup.WithLogger(logger),
lookup.WithCount(1),
lookup.WithSearchPaths(""),
),
"/",
[]string{"/sys/kernel/debug"},
)
var linkHook Hook
info, err := os.Stat("/usr/local/hyhal")
......@@ -137,6 +148,7 @@ func NewCommonHCUDiscoverer(logger logger.Interface, dtkCDIHookPath string, driv
libraries,
NewUserGroupDiscover(logger),
linkHook,
debug,
)
} else {
d = Merge(
......@@ -145,6 +157,7 @@ func NewCommonHCUDiscoverer(logger logger.Interface, dtkCDIHookPath string, driv
NewUserGroupDiscover(logger),
linkHook,
trackHook,
debug,
)
}
return d, nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment