Skip to content

Commit

Permalink
fixes new syntax in cilium/ebpf v0.10.0
Browse files Browse the repository at this point in the history
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Jan 16, 2023
1 parent 3267c33 commit ee9c73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ func (m *Manager) UpdateActivatedProbes(selectors []ProbesSelector) error {
func (m *Manager) editConstants() error {
// Start with the BTF based solution
rodata := m.collectionSpec.Maps[".rodata"]
if rodata != nil && rodata.BTF != nil {
if rodata != nil && rodata.Key != nil && rodata.Value != nil {
consts := map[string]interface{}{}
for _, editor := range m.options.ConstantEditors {
consts[editor.Name] = editor.Value
Expand Down

0 comments on commit ee9c73b

Please # to comment.