Skip to content

Commit 7876993

Browse files
author
chaoyuepan
committed
improve AttachUretprobe
1 parent a7590e2 commit 7876993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebpf/uretprobe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func AttachUretprobe(attachSymbol string, prog *ebpf.Program, ex *link.Executabl
4545
return nil, errors.New("executable cannot be nil")
4646
}
4747

48-
attachPath := reflect.ValueOf(ex).Elem().FieldByName("path").Elem().String()
48+
attachPath := reflect.ValueOf(ex).Elem().FieldByName("path").String()
4949

5050
funcs, err := getFunctions(attachPath, map[string]struct{}{attachSymbol: {}})
5151
if err != nil {

0 commit comments

Comments
 (0)