Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 2.3 KB

bpf_get_func_arg.md

File metadata and controls

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

Helper function bpf_get_func_arg

:octicons-tag-24: v5.17

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Get n-th argument register (zero based) of the traced function (for tracing programs) returned in value.

Returns

0 on success. -EINVAL if n >= argument register count of traced function.

#!c static long (* const bpf_get_func_arg)(void *ctx, __u32 n, __u64 *value) = (void *) 183;

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