diff options
author | Ihor Solodrai <ihor.solodrai@linux.dev> | 2025-01-30 12:12:34 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2025-02-05 16:17:59 -0800 |
commit | 51d1b1d42841c557dabde5b140ae20774591e6dc (patch) | |
tree | d240b93fc34bd7db41970dbe247fe0db6e823e42 /tools/perf/scripts/python/task-analyzer.py | |
parent | 03f3aa4a6b664270d502c7fb44c634cbe250261e (diff) |
libbpf: Introduce kflag for type_tags and decl_tags in BTF
Add the following functions to libbpf API:
* btf__add_type_attr()
* btf__add_decl_attr()
These functions allow to add to BTF the type tags and decl tags with
info->kflag set to 1. The kflag indicates that the tag directly
encodes an __attribute__ and not a normal tag.
See Documentation/bpf/btf.rst changes in the subsequent patch for
details on the semantics.
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250130201239.1429648-2-ihor.solodrai@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions