Menglong Dong
c317ab71fa
bpf: Compute map_btf_id during build time
...
For now, the field 'map_btf_id' in 'struct bpf_map_ops' for all map
types are computed during vmlinux-btf init:
btf_parse_vmlinux() -> btf_vmlinux_map_ids_init()
It will lookup the btf_type according to the 'map_btf_name' field in
'struct bpf_map_ops'. This process can be done during build time,
thanks to Jiri's resolve_btfids.
selftest of map_ptr has passed:
$96 map_ptr:OK
Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED
Reported-by: kernel test robot <lkp@intel.com >
Signed-off-by: Menglong Dong <imagedong@tencent.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2022-04-26 11:35:21 -07:00
..
2022-02-04 14:15:11 -08:00
2022-03-15 20:34:40 -05:00
2021-11-19 11:23:23 +00:00
2022-03-17 16:34:49 -07:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-03-07 11:40:41 +00:00
2022-04-06 13:45:26 +01:00
2022-04-25 20:26:45 -07:00
2022-02-25 09:36:06 +01:00
2022-03-23 10:32:44 -07:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-03-01 18:26:36 +01:00
2022-04-26 11:35:21 -07:00
2022-03-03 08:01:55 -08:00
2022-01-27 13:53:27 +00:00
2022-02-28 13:21:32 +00:00
2022-04-01 11:59:01 +01:00
2022-04-07 21:04:03 -07:00
2022-02-23 20:33:05 -08:00
2022-03-11 23:17:24 -08:00
2022-04-06 13:45:26 +01:00
2022-04-07 23:24:23 -07:00
2022-04-07 23:24:23 -07:00
2022-04-06 13:45:26 +01:00
2021-12-29 08:48:14 -08:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-03-15 20:20:02 -07:00
2022-03-25 16:55:41 -07:00
2022-03-15 11:50:33 +01:00
2021-10-20 14:27:40 +01:00
2022-04-07 23:24:23 -07:00
2022-04-07 21:06:41 -07:00
2022-03-23 10:53:49 -07:00
2022-01-15 08:47:31 -08:00
2022-04-08 17:07:29 -07:00
2022-03-21 10:59:11 +00:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:36:50 +01:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2021-12-16 16:13:19 -08:00
2022-03-18 13:09:17 +02:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:48:51 +01:00
2022-04-08 13:45:43 +01:00
2022-04-05 09:51:12 +02:00
2022-03-28 16:06:27 -07:00
2021-11-09 01:05:28 +01:00
2022-03-29 18:55:37 -07:00
2022-02-24 21:31:43 -08:00
2022-03-23 10:53:49 -07:00
2022-04-08 11:49:09 +01:00
2022-04-06 13:45:26 +01:00
2022-04-06 13:45:26 +01:00
2022-03-11 13:00:17 -08:00
2022-04-06 13:45:26 +01:00
2022-04-26 11:35:21 -07:00
2022-03-19 14:49:08 +00:00
2022-03-03 09:55:28 +00:00
2021-12-10 06:38:26 -08:00
2022-03-22 15:57:03 -07:00
2021-11-09 10:02:50 -08:00