Stanislav Fomichev
00442143a2
bpf: convert cgroup_bpf.progs to hlist
This lets us reclaim some space to be used by new cgroup lsm slots.
Before:
struct cgroup_bpf {
struct bpf_prog_array * effective[23]; /* 0 184 */
/* --- cacheline 2 boundary (128 bytes) was 56 bytes ago --- */
struct list_head progs[23]; /* 184 368 */
/* --- cacheline 8 boundary (512 bytes) was 40 bytes ago --- */
u32 flags[23]; /* 552 92 */
/* XXX 4 bytes hole, try to pack */
/* --- cacheline 10 boundary (640 bytes) was 8 bytes ago --- */
struct list_head storages; /* 648 16 */
struct bpf_prog_array * inactive; /* 664 8 */
struct percpu_ref refcnt; /* 672 16 */
struct work_struct release_work; /* 688 32 */
/* size: 720, cachelines: 12, members: 7 */
/* sum members: 716, holes: 1, sum holes: 4 */
/* last cacheline: 16 bytes */
};
After:
struct cgroup_bpf {
struct bpf_prog_array * effective[23]; /* 0 184 */
/* --- cacheline 2 boundary (128 bytes) was 56 bytes ago --- */
struct hlist_head progs[23]; /* 184 184 */
/* --- cacheline 5 boundary (320 bytes) was 48 bytes ago --- */
u8 flags[23]; /* 368 23 */
/* XXX 1 byte hole, try to pack */
/* --- cacheline 6 boundary (384 bytes) was 8 bytes ago --- */
struct list_head storages; /* 392 16 */
struct bpf_prog_array * inactive; /* 408 8 */
struct percpu_ref refcnt; /* 416 16 */
struct work_struct release_work; /* 432 72 */
/* size: 504, cachelines: 8, members: 7 */
/* sum members: 503, holes: 1, sum holes: 1 */
/* last cacheline: 56 bytes */
};
Suggested-by: Jakub Sitnicki <jakub@cloudflare.com>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Reviewed-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20220628174314.1216643-3-sdf@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2022-06-29 13:21:51 -07:00
..
2022-06-29 13:21:51 -07:00
2022-05-25 11:47:25 -07:00
2022-04-06 19:56:29 +02:00
2022-05-26 17:13:43 -07:00
2022-06-02 07:17:59 +02:00
2022-06-08 09:16:31 -07:00
2022-06-17 19:35:19 -07:00
2022-05-25 16:18:27 -07:00
2021-12-02 17:25:21 +09:00
2022-05-23 16:58:49 -07:00
2022-05-25 11:32:53 -07:00
2022-06-02 08:55:01 -07:00
2022-05-26 16:57:20 -07:00
2022-06-02 12:44:33 -07:00
2022-05-27 21:24:19 -07:00
2022-05-27 13:04:46 +02:00
2022-05-26 16:57:20 -07:00
2022-06-05 10:42:40 -07:00
2022-06-03 16:13:25 -07:00
2022-06-20 17:04:03 -07:00
2021-05-02 00:43:35 +09:00
2022-04-06 13:43:44 -07:00
2022-02-03 11:20:34 -08:00
2022-04-25 14:37:18 +02:00
2022-04-25 14:37:28 +02:00
2022-04-25 14:37:12 +02:00
2022-01-25 13:22:51 -05:00
2022-02-22 13:51:40 -05:00
2022-01-11 13:08:21 -08:00
2022-05-17 15:03:36 -04:00
2022-03-09 10:32:06 -08:00
2022-06-13 09:18:46 -07:00
2021-09-08 15:32:35 -07:00
2021-08-16 18:55:32 +02:00
2022-05-23 17:51:12 -07:00
2022-05-27 11:22:03 -07:00
2022-03-15 10:32:44 +01:00
2022-06-01 15:55:25 -07:00
2022-03-28 17:29:53 -07:00
2022-02-16 23:25:12 +11:00
2022-06-03 16:03:05 -07:00
2021-06-18 11:43:08 +02:00
2022-05-08 03:16:59 +09:00
2022-05-27 11:22:03 -07:00
2022-04-15 14:49:55 -07:00
2021-07-05 10:46:20 +02:00
2022-05-10 14:42:06 -07:00
2021-08-17 17:50:51 +02:00
2022-03-31 10:36:55 +02:00
2022-05-25 13:05:42 -07:00
2022-05-27 11:22:03 -07:00
2022-05-31 14:10:54 -07:00
2021-09-08 15:32:34 -07:00
2021-05-07 00:26:33 -07:00
2022-05-29 10:31:36 -07:00
2022-03-23 19:00:33 -07:00
2022-05-02 14:06:20 -06:00
2022-04-21 11:40:59 -07:00
2022-06-06 08:06:00 +02:00
2022-05-19 19:30:30 +02:00
2021-09-03 09:58:12 -07:00
2022-01-31 11:21:46 +11:00
2022-05-26 16:57:20 -07:00
2021-12-28 11:26:18 +01:00
2022-04-29 14:38:00 -07:00
2021-10-14 13:29:18 +02:00
2022-06-06 08:06:00 +02:00
2022-01-08 12:43:57 -06:00
2022-06-03 16:13:25 -07:00
2022-06-07 19:42:31 +02:00
2022-05-12 20:38:37 -07:00
2022-03-23 19:00:35 -07:00
2022-02-02 13:11:34 +01:00
2022-04-11 17:07:29 -07:00
2022-03-24 19:06:48 -07:00
2022-05-03 14:11:58 -07:00
2022-06-03 16:13:25 -07:00
2022-05-24 11:11:13 -07:00
2022-04-12 14:13:01 +02:00
2022-05-01 10:03:43 +02:00
2022-05-08 01:33:09 -07:00
2022-02-25 09:36:06 +01:00
2022-04-05 09:59:38 +02:00
2022-04-05 09:59:38 +02:00
2022-05-24 11:11:13 -07:00
2022-01-15 16:30:30 +02:00
2022-04-22 18:50:54 +01:00
2021-06-23 16:41:24 -06:00
2022-05-26 16:57:20 -07:00
2022-04-30 08:39:32 -06:00
2022-04-29 14:38:03 -07:00
2022-02-01 17:24:39 -08:00
2021-08-16 11:39:51 -04:00
2022-04-29 14:38:03 -07:00
2022-02-17 09:11:57 -06:00
2022-05-06 14:49:44 -05:00
2021-05-09 13:07:03 -07:00
2022-02-25 10:40:14 -06:00
2021-09-08 11:50:27 -07:00
2022-05-19 23:25:47 -04:00
2022-04-02 10:37:39 -07:00
2022-04-22 21:30:58 +02:00
2022-05-27 11:22:03 -07:00
2021-08-17 07:49:10 -10:00
2022-06-07 07:07:14 -10:00