Lines Matching defs:byte_sz
1582 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding)
1590 /* byte_sz must be power of 2 */
1591 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 16)
1615 t->size = byte_sz;
1617 *(__u32 *)(t + 1) = (encoding << 24) | (byte_sz * 8);
1774 * - *byte_sz* - size of the struct, in bytes;
1783 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz)
1785 return btf_add_composite(btf, BTF_KIND_STRUCT, name, byte_sz);
1791 * - *byte_sz* - size of the union, in bytes;
1801 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz)
1803 return btf_add_composite(btf, BTF_KIND_UNION, name, byte_sz);
1874 * - *byte_sz* - size of the enum, in bytes.
1884 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz)
1889 /* byte_sz must be power of 2 */
1890 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 8)
1910 t->size = byte_sz;
2245 * - *byte_sz* - data section size, in bytes.
2254 int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz)
2278 t->size = byte_sz;
2294 * - *byte_sz* - variable size, in bytes.
2300 int btf__add_datasec_var_info(struct btf *btf, int var_type_id, __u32 offset, __u32 byte_sz)
2327 v->size = byte_sz;