Replies: 1 comment
|
A middle ground could be using |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In
NewCollectionWithOptions[1], if a program fails to load, the entire collection will be discarded. However, there are scenarios that require a "best-effort" approach, where the failed program is skipped, and a collection containing only the successfully loaded programs is returned.Our use case involves a monitoring program for various LSM tracepoints. Before loading the collection, we do not know if the current kernel supports all the tracepoints. We want to skip those programs not supported by the kernel and continue using the remaining ones.
To achieve this, it might be necessary to add a field "AcceptFailure" to the
CollectionOptions. This field would indicate whether each program in theCollectionSpeccan be skipped if it fails to load.What do you think about this?
Cc: @alban
[1] https://github.com/cilium/ebpf/blob/main/collection.go#L385
All reactions