From: Alexei Starovoitov veristat reads the statistics at the end of the verifier log. They have one line for each subprog. Two sizes in veristat are too small now that a prog can have 1024 subprogs. size old new problem with the old size ---------------------- ---- ----- ---------------------------------- log buffer 64K 1M 777 subprogs make 82K of stats. The load fails with ENOSPC. lines that veristat 300 1100 With more than 296 subprogs it parses, from the end does not find 'verification time'. The duration is 0. Signed-off-by: Alexei Starovoitov --- tools/testing/selftests/bpf/veristat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/bpf/veristat.c b/tools/testing/selftests/bpf/veristat.c index 9cfc9b4b41c1..6b295e7d6f32 100644 --- a/tools/testing/selftests/bpf/veristat.c +++ b/tools/testing/selftests/bpf/veristat.c @@ -1013,10 +1013,11 @@ static void free_verif_stats(struct verif_stats *stats, size_t stat_cnt) free(stats); } -static char verif_log_buf[64 * 1024]; +/* the stats have a line for every subprog, with its name */ +static char verif_log_buf[1024 * 1024]; -/* Keep room for all 256 subprogram records and trailing statistics. */ -#define MAX_PARSED_LOG_LINES 300 +/* Keep room for all 1024 subprogram records and trailing statistics. */ +#define MAX_PARSED_LOG_LINES 1100 static int parse_verif_log(char * const buf, size_t buf_sz, struct verif_stats *s) { -- 2.55.0