We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a9f35 commit b19ded9Copy full SHA for b19ded9
collection.go
@@ -893,9 +893,10 @@ func (cl *collectionLoader) setStructOpsProgAttachTo(kernType *btf.Struct) {
893
continue
894
}
895
896
- if ps.AttachTo == "" {
897
- ps.AttachTo = fmt.Sprintf("%s:%s", kernType.Name, member)
898
- }
+ // TODO: Do we need to check if the AttachedTo property is already configured?
+ // For example, let it fail if it is already configured,
+ // since it will attach to another struct_ops.
899
+ ps.AttachTo = fmt.Sprintf("%s:%s", kernType.Name, member)
900
901
902
0 commit comments