Jiri Olsa
5a2798ab32
bpf: Add BTF_ID_LIST/BTF_ID/BTF_ID_UNUSED macros
...
Adding support to generate .BTF_ids section that will hold BTF
ID lists for verifier.
Adding macros that will help to define lists of BTF ID values
placed in .BTF_ids section. They are initially filled with zeros
(during compilation) and resolved later during the linking phase
by resolve_btfids tool.
Following defines list of one BTF ID value:
BTF_ID_LIST(bpf_skb_output_btf_ids)
BTF_ID(struct, sk_buff)
It also defines following variable to access the list:
extern u32 bpf_skb_output_btf_ids[];
The BTF_ID_UNUSED macro defines 4 zero bytes. It's used when we
want to define 'unused' entry in BTF_ID_LIST, like:
BTF_ID_LIST(bpf_skb_output_btf_ids)
BTF_ID(struct, sk_buff)
BTF_ID_UNUSED
BTF_ID(struct, task_struct)
Suggested-by: Andrii Nakryiko <andriin@fb.com >
Signed-off-by: Jiri Olsa <jolsa@kernel.org >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
Tested-by: Andrii Nakryiko <andriin@fb.com >
Acked-by: Andrii Nakryiko <andriin@fb.com >
Link: https://lore.kernel.org/bpf/20200711215329.41165-4-jolsa@kernel.org
2020-07-13 10:42:02 -07:00
..
2020-03-21 09:41:46 +01:00
2020-02-17 20:12:17 +01:00
2015-06-23 13:35:49 +09:00
2017-11-02 11:10:55 +01:00
2019-06-03 12:32:56 +02:00
2020-03-21 09:41:42 +01:00
2020-01-07 07:47:23 -08:00
2019-05-24 17:27:11 +02:00
2017-11-02 11:10:55 +01:00
2018-01-30 19:07:54 -08:00
2017-11-02 11:10:55 +01:00
2007-05-11 05:38:25 -04:00
2017-11-15 13:28:48 -08:00
2020-04-16 12:28:34 +01:00
2020-03-06 11:06:19 +01:00
2017-11-02 11:10:55 +01:00
2020-06-11 15:14:36 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-08 11:05:58 -07:00
2020-05-29 16:11:50 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-29 15:42:20 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:37:16 +02:00
2019-09-17 14:30:30 -07:00
2017-11-02 11:10:55 +01:00
2018-12-13 21:06:18 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-08-07 13:52:43 +01:00
2019-05-24 17:27:11 +02:00
2019-12-16 10:35:33 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-14 15:05:45 -08:00
2019-06-24 09:16:47 +10:00
2019-06-19 17:09:55 +02:00
2020-03-27 23:58:55 -04:00
2019-08-03 07:02:01 -07:00
2020-02-10 12:58:36 +01:00
2017-11-02 11:10:55 +01:00
2020-06-20 22:14:53 +10:00
2009-06-11 21:02:42 +02:00
2020-06-03 15:13:47 -07:00
2017-11-02 11:10:55 +01:00
2018-06-07 17:34:38 -07:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2020-01-06 09:45:59 +01:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-04-23 10:50:26 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-06 18:40:44 +01:00
2009-06-11 21:02:37 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-02-09 21:18:52 +01:00
2017-11-02 11:10:55 +01:00
2020-01-23 10:41:16 -08:00
2015-07-17 16:39:53 -07:00
2019-04-08 11:59:39 +01:00
2019-04-08 11:59:39 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-04-11 17:19:07 +01:00
2017-11-02 11:10:55 +01:00
2019-02-22 21:53:25 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-09 23:19:56 +01:00
2018-05-07 07:15:41 +02:00
2020-01-31 11:15:59 -08:00
2019-09-26 10:10:44 -07:00
2020-04-07 10:43:39 -07:00
2019-12-01 06:29:19 -08:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2019-07-31 19:03:34 +02:00
2018-02-06 10:28:58 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:55 +02:00
2020-05-19 15:47:20 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-14 19:52:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2009-06-11 21:02:37 +02:00
2019-05-24 17:27:11 +02:00
2019-05-30 11:29:21 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-04-07 10:43:37 -07:00
2017-11-02 11:10:55 +01:00
2020-05-28 11:35:41 -07:00
2017-11-02 11:10:55 +01:00
2019-04-23 21:51:41 +02:00
2017-11-02 11:10:55 +01:00
2011-03-01 15:49:39 +01:00
2020-04-23 10:50:26 +09:00
2017-11-02 11:10:55 +01:00
2020-07-13 10:42:02 -07:00
2013-09-30 14:31:02 -07:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:27:13 +02:00