Skip to content

Helper function bpf_trace_vprintk

v5.16

Definition

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

Behaves like bpf_trace_printk() helper, but takes an array of u64 to format and can handle more format args as a result.

Arguments are to be used as in bpf_seq_printf() helper.

Returns

The number of bytes written to the buffer, or a negative error in case of failure.

static long (* const bpf_trace_vprintk)(const char *fmt, __u32 fmt_size, const void *data, __u32 data_len) = (void *) 177;

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