Skip to content

Commit af5175c

Browse files
committed
[genericuprobe.go] Add exception for ExtractParam/OverwriteType for uprobes
Uprobe offsets can't be found in BTF file. Thus, if the user defines these specific parameters, they are ignored and a warning is displayed Signed-off-by: Tristan d'Audibert <[email protected]>
1 parent 55c7344 commit af5175c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/sensors/tracing/genericuprobe.go

+4
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ func addUprobe(spec *v1alpha1.UProbeSpec, ids []idtable.EntryID, in *addUprobeIn
341341
return nil, fmt.Errorf("Error add arg: ArgType %s Index %d out of bounds",
342342
a.Type, int(a.Index))
343343
}
344+
345+
if a.ExtractParam != "" || a.OverwriteType != "" {
346+
logger.GetLogger().Warnf("Extracting parameters from Uprobes is not supported, ignoring")
347+
}
344348
argTypes[a.Index] = int32(argType)
345349
argMeta[a.Index] = uint32(argMValue)
346350
argSet[a.Index] = true

0 commit comments

Comments
 (0)