Re: [PATCH bpf] selftests/bpf: Fix massive output from test_maps

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

 



On Wed, 26 Aug 2020 10:17:36 +0200
Jesper Dangaard Brouer <brouer@xxxxxxxxxx> wrote:

> When stdout output from the selftests tool 'test_maps' gets redirected
> into e.g file or pipe, then the output lines increase a lot (from 21
> to 33949 lines).  This is caused by the printf that happens before the
> fork() call, and there are user-space buffered printf data that seems
> to be duplicated into the forked process.
> 
> To fix this fflush() stdout before the fork loop in __run_parallel().
> 
> Signed-off-by: Jesper Dangaard Brouer <brouer@xxxxxxxxxx>

Fixes: 1a97cf1fe503 ("selftests/bpf: speedup test_maps")

I forgot to add the fixes line to the patch, I hope patchwork[1] will
pick it up for maintainers.

[1] http://patchwork.ozlabs.org/project/netdev/patch/159842985651.1050885.2154399297503372406.stgit@firesoul/
-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer




[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