KFunc bpf_session_is_return
Check if the bpf program is executed from the exit probe of the kprobe multi link attached in wrapper mode.
Definition
Returns
Returns true if the bpf program is executed from the exit probe of the kprobe multi link attached in wrapper mode. It returns false otherwise.
Signature
bool bpf_session_is_return(void *ctx)
Note
In v7.0 the signature of this kfunc has been changed. It used to be bool bpf_session_is_return(). Weak symbols and bpf_ksym_exists can be used to write fallback logic for older kernels.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
The following program types can make use of this kfunc:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome