diff options
author | Paul Moore <pmoore@redhat.com> | 2013-04-19 16:13:42 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-04-19 16:13:42 -0400 |
commit | 208772e98813a589cf0326e00d10ab48517858dc (patch) | |
tree | 3b46db1d08e14fccb49214afcc07bf6ccfcc1450 /src/gen_bpf.h | |
parent | b29fcac12735967f594223389cd06e41d3d07b48 (diff) | |
download | libseccomp-208772e98813a589cf0326e00d10ab48517858dc.tar.gz |
all: improved structure ordering/alignment
Shuffle some structure fields to improve packing and cacheline ordering.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/gen_bpf.h')
-rw-r--r-- | src/gen_bpf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen_bpf.h b/src/gen_bpf.h index 43f337e..954ce7f 100644 --- a/src/gen_bpf.h +++ b/src/gen_bpf.h @@ -29,8 +29,8 @@ #include "system.h" struct bpf_program { - uint16_t blk_cnt; bpf_instr_raw *blks; + uint16_t blk_cnt; }; #define BPF_PGM_SIZE(x) \ ((x)->blk_cnt * sizeof(*((x)->blks))) |