Commit 262cfb7
libbpf: Init btf_{key,value}_type_id on internal map open
For internal and user maps, look up the key and value btf
types on open() and not load(), so that `bpf_map_btf_value_type_id`
is usable in `bpftool gen`.
Signed-off-by: Delyan Kratunov <delyank@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/78dbe4e457b4a05e098fc6c8f50014b680c86e4e.1647473511.git.delyank@fb.com1 parent bc380eb commit 262cfb7
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1517 | 1517 | | |
1518 | 1518 | | |
1519 | 1519 | | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
1520 | 1523 | | |
1521 | 1524 | | |
1522 | 1525 | | |
| |||
1564 | 1567 | | |
1565 | 1568 | | |
1566 | 1569 | | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
1567 | 1573 | | |
1568 | 1574 | | |
1569 | 1575 | | |
| |||
2046 | 2052 | | |
2047 | 2053 | | |
2048 | 2054 | | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
2049 | 2058 | | |
2050 | 2059 | | |
2051 | 2060 | | |
| |||
2534 | 2543 | | |
2535 | 2544 | | |
2536 | 2545 | | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
2537 | 2550 | | |
2538 | 2551 | | |
2539 | 2552 | | |
| |||
4873 | 4886 | | |
4874 | 4887 | | |
4875 | 4888 | | |
4876 | | - | |
| 4889 | + | |
4877 | 4890 | | |
4878 | 4891 | | |
4879 | 4892 | | |
| |||
0 commit comments