Skip to content

Commit ccfb903

Browse files
committed
deprecation: adjust deprecation warnings
1 parent a8a3668 commit ccfb903

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/ebpf/probes/probes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func (p *tcProbe) attachTc(module *bpf.Module, netIface *net.Interface) error {
427427
return fmt.Errorf("could not find tc program %s", p.programName)
428428
}
429429

430-
tcOpts := bpf.TcOpts{ProgFd: int(prog.GetFd())}
430+
tcOpts := bpf.TcOpts{ProgFd: int(prog.FileDescriptor())}
431431

432432
err = hook.Attach(&tcOpts)
433433
if err != nil {

pkg/ebpf/tracee.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ func (t *Tracee) initTailCall(mapName string, mapIndexes []uint32, progName stri
486486
if err != nil {
487487
return fmt.Errorf("could not get BPF program %s: %v", progName, err)
488488
}
489-
fd := bpfProg.GetFd()
489+
fd := bpfProg.FileDescriptor()
490490
if fd < 0 {
491491
return fmt.Errorf("could not get BPF program FD for %s: %v", progName, err)
492492
}

0 commit comments

Comments
 (0)