Martin KaFai Lau
b9308ae696
bpf: btf: Check array t->size
...
This patch ensures array's t->size is 0.
The array size is decided by its individual elem's size and the
number of elements. Hence, t->size is not used and
it must be 0.
A test case is added to test_btf.c
Signed-off-by: Martin KaFai Lau <kafai@fb.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2018-06-02 11:22:36 -07:00
..
2017-05-03 09:51:25 -04:00
2017-11-02 11:10:55 +01:00
2018-05-30 12:40:14 +02:00
2017-11-02 11:10:55 +01:00
2018-05-30 12:40:14 +02:00
2018-05-14 19:11:45 -07:00
2018-02-26 20:11:23 -08:00
2017-11-02 11:10:55 +01:00
2017-11-05 23:26:51 +09:00
2017-11-05 23:26:51 +09:00
2018-05-18 21:39:39 +02:00
2018-03-31 02:16:14 +02:00
2018-03-31 02:16:14 +02:00
2017-11-05 23:26:51 +09:00
2018-05-30 12:40:14 +02:00
2018-01-18 22:54:26 +01:00
2017-12-03 00:27:58 +01:00
2018-05-28 17:41:05 +02:00
2018-05-28 17:41:05 +02:00
2018-03-19 21:14:39 +01:00
2018-03-19 21:14:39 +01:00
2018-03-19 21:14:39 +01:00
2018-01-25 16:41:15 -08:00
2018-01-25 16:41:15 -08:00
2018-04-18 23:34:17 +02:00
2018-02-26 20:11:23 -08:00
2018-04-19 21:47:42 +02:00
2018-04-19 21:47:42 +02:00
2018-06-02 11:22:36 -07:00
2018-02-26 20:11:23 -08:00
2018-04-29 08:45:54 -07:00
2017-04-01 12:45:57 -07:00
2018-02-08 00:24:55 +01:00
2017-12-17 20:34:36 +01:00
2017-05-01 12:43:49 -07:00
2018-02-09 00:24:38 +01:00
2018-02-09 00:25:12 +01:00
2018-05-30 12:40:14 +02:00
2018-05-30 12:40:14 +02:00
2018-05-30 12:40:14 +02:00
2018-02-26 20:11:23 -08:00
2018-02-26 20:11:23 -08:00
2018-05-24 11:57:36 +02:00
2018-05-24 11:57:36 +02:00
2018-03-19 21:14:39 +01:00
2017-06-09 15:15:11 -04:00
2018-01-25 21:23:09 -05:00
2017-05-17 18:45:14 -04:00
2017-08-07 10:06:27 -07:00
2018-05-24 18:18:20 -07:00
2018-05-28 17:41:05 +02:00
2018-04-19 00:16:37 +02:00
2018-04-19 00:16:37 +02:00
2018-05-16 22:00:12 +02:00
2018-05-16 22:00:12 +02:00
2018-05-16 22:00:12 +02:00
2018-06-02 06:13:56 +02:00
2018-04-29 08:45:54 -07:00
2018-04-29 08:45:54 -07:00
2018-02-26 20:11:23 -08:00
2017-05-03 09:51:25 -04:00
2018-02-22 01:19:37 +01:00
2018-02-26 20:11:23 -08:00
2018-01-25 16:41:15 -08:00
2017-12-12 08:46:40 -08:00
2018-04-27 00:11:14 +02:00
2018-04-27 00:11:14 +02:00
2018-02-26 20:11:23 -08:00
2018-05-24 22:20:51 -04:00
2017-09-26 13:36:44 -07:00
2018-02-06 11:34:42 +01:00
2017-12-17 20:34:36 +01:00
2017-08-08 18:12:50 -07:00
2018-02-06 11:34:42 +01:00
2017-05-02 07:52:01 -07:00
2018-05-24 18:18:20 -07:00
2018-05-24 18:18:20 -07:00
2018-05-14 23:29:45 +02:00