Libbpf userspace function btf__add_datasec_var_info
Append new data section variable information entry for current DATASEC
type.
Definition
int btf__add_datasec_var_info(struct btf *btf, int var_type_id, __u32 offset, __u32 byte_sz);
Parameters
btf
: pointer to astruct btf
objectvar_type_id
: type ID describing the type of the variable;offset
: variable offset within data section, in bytes;byte_sz
: variable size, in bytes.
Return
0
, on success; <0
, on error.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome