Skip to content

Commit

Permalink
[mq] working branch - merge 6433719 on top of main at ede90e3
Browse files Browse the repository at this point in the history
{"baseBranch":"main","baseCommit":"ede90e3b16683ff442094e9e74c16e4069bddc00","createdAt":"2024-10-29T17:48:32.742513Z","headSha":"643371952bf3f71e38584c3f7e1d3f4f453cb93e","id":"24bad43a-0af9-45b2-857b-73db9c956a55","priority":"200","pullRequestNumber":"202","queuedAt":"2024-10-29T17:59:46.371370Z","status":"STATUS_QUEUED"}
  • Loading branch information
dd-mergequeue[bot] authored Oct 29, 2024
2 parents 827d872 + 6433719 commit e3c7d77
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,17 @@ func (m *Manager) GetPrograms() (map[string]*ebpf.Program, error) {
return maps.Clone(m.collection.Programs), nil
}

// GetMapSpecs - Return the list of eBPF map specs in the manager
func (m *Manager) GetMapSpecs() (map[string]*ebpf.MapSpec, error) {
m.stateLock.RLock()
defer m.stateLock.RUnlock()
if m.collectionSpec == nil || m.state < elfLoaded {
return nil, ErrManagerNotELFLoaded
}

return maps.Clone(m.collectionSpec.Maps), nil
}

// GetProgramSpecs - Return the list of eBPF program specs in the manager
func (m *Manager) GetProgramSpecs() (map[string]*ebpf.ProgramSpec, error) {
m.stateLock.RLock()
Expand Down

0 comments on commit e3c7d77

Please sign in to comment.