diff options
| author | Andrii Nakryiko <[email protected]> | 2021-11-28 22:09:08 -0800 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-11-28 22:24:57 -0800 |
| commit | da61e9e3aeb5b2ba9569a51231b7648a865cdff3 (patch) | |
| tree | f0c2d0b6a5c93ecc665be0b838b8c9b70fca6bc0 /tools/perf/scripts/python/libxed.py | |
| parent | e32cb12ff52a2840fc1248998717f7b95c42f064 (diff) | |
| parent | baeead213e67a9554d589a2845c634b8e473d107 (diff) | |
Merge branch 'Support static initialization of BPF_MAP_TYPE_PROG_ARRAY'
Hengqi Chen says:
====================
Make libbpf support static initialization of BPF_MAP_TYPE_PROG_ARRAY
with a syntax similar to map-in-map initialization:
SEC("socket")
int tailcall_1(void *ctx)
{
return 0;
}
struct {
__uint(type, BPF_MAP_TYPE_PROG_ARRAY);
__uint(max_entries, 2);
__uint(key_size, sizeof(__u32));
__array(values, int (void *));
} prog_array_init SEC(".maps") = {
.values = {
[1] = (void *)&tailcall_1,
},
};
v1->v2:
- Add stricter checks on relos collect, some renamings (Andrii)
- Update selftest to check tailcall result (Andrii)
====================
Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions