diff options
| author | Yafang Shao <laoar.shao@gmail.com> | 2024-05-17 10:30:33 +0800 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2024-05-29 16:01:47 -0700 |
| commit | 4665415975b0827e9646cab91c61d02a6b364d59 (patch) | |
| tree | 9b717740936f9082b47ef0e0209816dc8de26658 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | fbe3e8473f391adbf67eb0f317305fe62c66096c (diff) | |
bpf: Add bits iterator
Add three new kfuncs for the bits iterator:
- bpf_iter_bits_new
Initialize a new bits iterator for a given memory area. Due to the
limitation of bpf memalloc, the max number of words (8-byte units) that
can be iterated over is limited to (4096 / 8).
- bpf_iter_bits_next
Get the next bit in a bpf_iter_bits
- bpf_iter_bits_destroy
Destroy a bpf_iter_bits
The bits iterator facilitates the iteration of the bits of a memory area,
such as cpumask. It can be used in any context and on any address.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240517023034.48138-2-laoar.shao@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
