162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci// Copyright (c) 2019 Facebook
362306a36Sopenharmony_ci#define STACK_MAX_LEN 600
462306a36Sopenharmony_ci/* Full unroll of 600 iterations will have total
562306a36Sopenharmony_ci * program size close to 298k insns and this may
662306a36Sopenharmony_ci * cause BPF_JMP insn out of 16-bit integer range.
762306a36Sopenharmony_ci * So limit the unroll size to 150 so the
862306a36Sopenharmony_ci * total program size is around 80k insns but
962306a36Sopenharmony_ci * the loop will still execute 600 times.
1062306a36Sopenharmony_ci */
1162306a36Sopenharmony_ci#define UNROLL_COUNT 150
1262306a36Sopenharmony_ci#include "pyperf.h"
13