bpf: Add the get_reg_width function
authorMaxim Mikityanskiy <maxim@isovalent.com>
Mon, 8 Jan 2024 20:52:01 +0000 (22:52 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jan 2024 22:40:23 +0000 (14:40 -0800)
commit87e51ac6cb19c5d33d70d4cae9e26d2a3a5fcba0
tree2d101b89155501e3ece3705a989a57ad327b44ff
parent8e0e074aafb8fec227363ed905ddd2ac7e4575e4
bpf: Add the get_reg_width function

Put calculation of the register value width into a dedicated function.
This function will also be used in a following commit.

Signed-off-by: Maxim Mikityanskiy <maxim@isovalent.com>
Link: https://lore.kernel.org/r/20240108205209.838365-8-maxtram95@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c