diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2020-08-26 11:17:36 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-08-28 14:58:19 +0300 |
commit | fa4505675e093e895b7ec49a76d44f6b5ad9602e (patch) | |
tree | bddd75fbe80efe818d4d2ada27ba2823095bcd2b /tools/laptop | |
parent | 7787b6fc938e16aa418613c4a765c1dbb268ed9f (diff) | |
download | linux-fa4505675e093e895b7ec49a76d44f6b5ad9602e.tar.xz |
selftests/bpf: Fix massive output from test_maps
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().
Fixes: 1a97cf1fe503 ("selftests/bpf: speedup test_maps")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/159842985651.1050885.2154399297503372406.stgit@firesoul
Diffstat (limited to 'tools/laptop')
0 files changed, 0 insertions, 0 deletions