Re: [PATCH v3 bpf-next 10/10] bpf: simplify tnum output if a fully known constant

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

 



On Wed, Nov 29, 2023 at 04:04:06PM -0800, Andrii Nakryiko wrote:
> Emit tnum representation as just a constant if all bits are known.
> Use decimal-vs-hex logic to determine exact format of emitted
> constant value, just like it's done for register range values.
> For that move tnum_strn() to kernel/bpf/log.c to reuse decimal-vs-hex
> determination logic and constants.
> 
> Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

This is much easier to read, thanks1

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