diff options
author | Martin KaFai Lau <kafai@fb.com> | 2017-06-05 22:15:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 22:41:24 +0300 |
commit | 783d28dd11f68fb25d1f2e0de7c42336394ef128 (patch) | |
tree | ccbd420f78dba2d72eb9a697e9b251b8bdd80ebd /include | |
parent | bd5f5f4ecb78e2698dad655645b6d6a2f7012a8c (diff) | |
download | linux-783d28dd11f68fb25d1f2e0de7c42336394ef128.tar.xz |
bpf: Add jited_len to struct bpf_prog
Add jited_len to struct bpf_prog. It will be
useful for the struct bpf_prog_info which will
be added in the later patch.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/filter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index a20ba40fcb73..1e2dddf21f3b 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -432,6 +432,7 @@ struct bpf_prog { kmemcheck_bitfield_end(meta); enum bpf_prog_type type; /* Type of BPF program */ u32 len; /* Number of filter blocks */ + u32 jited_len; /* Size of jited insns in bytes */ u8 tag[BPF_TAG_SIZE]; struct bpf_prog_aux *aux; /* Auxiliary fields */ struct sock_fprog_kern *orig_prog; /* Original BPF program */ |