Re: [PATCH v6 bpf-next 12/17] bpf: generalize is_branch_taken() to work with two registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 01, 2023 at 08:37:54PM -0700, Andrii Nakryiko wrote:
> While still assuming that second register is a constant, generalize
> is_branch_taken-related code to accept two registers instead of register
> plus explicit constant value. This also, as a side effect, allows to
> simplify check_cond_jmp_op() by unifying BPF_K case with BPF_X case, for
> which we use a fake register to represent BPF_K's imm constant as
> a register.
> 
> Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
> Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

Acked-by: Shung-Hsi Yu <shung-hsi.yu@xxxxxxxx>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux