diff options
author | Feng Zhou <zhoufeng.zf@bytedance.com> | 2023-04-20 11:27:34 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-04-19 21:29:39 -0700 |
commit | 2569c7b8726fc06d946a4f999fb1be15b68f3f3c (patch) | |
tree | 527655701fd522478922029e1af75d45352df4c0 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c | |
parent | 2ddade322925641ee2a75f13665c51f2e74d7791 (diff) | |
download | lwn-2569c7b8726fc06d946a4f999fb1be15b68f3f3c.tar.gz lwn-2569c7b8726fc06d946a4f999fb1be15b68f3f3c.zip |
bpf: support access variable length array of integer type
After this commit:
bpf: Support variable length array in tracing programs (9c5f8a1008a1)
Trace programs can access variable length array, but for structure
type. This patch adds support for integer type.
Example:
Hook load_balance
struct sched_domain {
...
unsigned long span[];
}
The access: sd->span[0].
Co-developed-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Feng Zhou <zhoufeng.zf@bytedance.com>
Link: https://lore.kernel.org/r/20230420032735.27760-2-zhoufeng.zf@bytedance.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions