Re: [PATCH dwarves v1 2/2] tests: verify that pfunct prints btf_decl_tags read from BTF

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

 



On Thu, 2024-12-26 at 18:14 -0300, Arnaldo Carvalho de Melo wrote:
> On Thu, Dec 26, 2024 at 06:11:57PM -0300, Arnaldo Carvalho de Melo wrote:
> > On Thu, Dec 12, 2024 at 07:50:57PM +0000, Alan Maguire wrote:
> > > On 11/12/2024 02:12, Eduard Zingerman wrote:
> > > > When using BTF as a source, pfunct should now be able to print
> > > > btf_decl_tags for programs like below:
> > > > 
> > > >   #define __tag(x) __attribute__((btf_decl_tag(#x)))
> > > >   __tag(a) __tag(b) void foo(void) {}
> > > > 
> > > > This situation arises after recent kernel changes, where tags 'kfunc'
> > > > and 'bpf_fastcall' are added to some functions. To avoid dependency on
> > > > a recent kernel version test this by compiling a small C program using
> > > > clang with --target=bpf, which would instruct clang to generate .BTF
> > > > section.
> > > > 
> > > > Signed-off-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
> > > 
> > > nit: the test is great but it would be good to print out a description
> > > even in non-verbose mode; when I run it via ./tests I see
> > > 
> > >   5: Ok
> > > 
> > > could we just echo the comment below, i.e.
> > > 
> > > 5 : Check that pfunct can print btf_decl_tags read from BTF: Ok
> > > 
> > > ?
> 
> To clarify, I'm doing as Alan suggests and adding that message when the
> test succeeds.

Sure, thank you.
Sorry, I should have reposted v2 with this small change.






[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