13 lines
421 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2019 Facebook
#define STACK_MAX_LEN 600
2026-01-29 22:25:33 +08:00
/* Full unroll of 600 iterations will have total
* program size close to 298k insns and this may
* cause BPF_JMP insn out of 16-bit integer range.
* So limit the unroll size to 150 so the
* total program size is around 80k insns but
* the loop will still execute 600 times.
2026-01-21 18:59:54 +08:00
*/
2026-01-29 22:25:33 +08:00
#define UNROLL_COUNT 150
2026-01-21 18:59:54 +08:00
#include "pyperf.h"