Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 2.28 KB

bpf_get_func_ret.md

File metadata and controls

58 lines (41 loc) · 2.28 KB
title description
Helper Function 'bpf_get_func_ret'
This page documents the 'bpf_get_func_ret' eBPF helper function, including its defintion, usage, program types that can use it, and examples.

Helper function bpf_get_func_ret

:octicons-tag-24: v5.17

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.

#!c static long (* const bpf_get_func_ret)(void *ctx, __u64 *value) = (void *) 184;

Usage

!!! example "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

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome