1b061017fSAlexei Starovoitov // SPDX-License-Identifier: GPL-2.0 2b061017fSAlexei Starovoitov // Copyright (c) 2019 Facebook 3b061017fSAlexei Starovoitov #define STACK_MAX_LEN 600 4*8c89b5dbSYonghong Song /* Full unroll of 600 iterations will have total 5*8c89b5dbSYonghong Song * program size close to 298k insns and this may 6*8c89b5dbSYonghong Song * cause BPF_JMP insn out of 16-bit integer range. 7*8c89b5dbSYonghong Song * So limit the unroll size to 150 so the 8*8c89b5dbSYonghong Song * total program size is around 80k insns but 9*8c89b5dbSYonghong Song * the loop will still execute 600 times. 10b061017fSAlexei Starovoitov */ 11*8c89b5dbSYonghong Song #define UNROLL_COUNT 150 12b061017fSAlexei Starovoitov #include "pyperf.h" 13