Helper function bpf_get_func_ret
Definition
Copyright (c) 2015 The Libbpf Authors. All rights reserved.
Get return value of the traced function (for tracing programs) in value.
Returns
0 on success. -EOPNOTSUPP for tracing programs other than BPF_TRACE_FEXIT or BPF_MODIFY_RETURN.
static long (* const bpf_get_func_ret)(void *ctx, __u64 *value) = (void *) 184;
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
This helper call can be used in the following program types:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome