Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EBPF] refactored gpu probe to decouple init and start phases #30615

Merged
merged 15 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/system-probe/modules/gpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ var GPUMonitoring = module.Factory{
return nil, fmt.Errorf("unable to initialize NVML library: %v", ret)
}

t, err := gpu.NewProbe(c, probeDeps)
p, err := gpu.NewProbe(c, probeDeps)
if err != nil {
return nil, fmt.Errorf("unable to start GPU monitoring: %w", err)
return nil, fmt.Errorf("unable to start %s: %w", config.GPUMonitoringModule, err)
}

return &GPUMonitoringModule{
Probe: t,
Probe: p,
lastCheck: atomic.NewInt64(0),
}, nil
},
Expand Down
1 change: 0 additions & 1 deletion pkg/gpu/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func (c *cudaEventConsumer) Stop() {
if c == nil {
return
}
c.eventHandler.Stop()
c.once.Do(func() {
close(c.closed)
})
Expand Down
Loading
Loading