brintos

brintos / linux-shallow public Read only

0
0
Text · 421 B · ce1aa51 Raw
13 lines · c
1// SPDX-License-Identifier: GPL-2.02// Copyright (c) 2019 Facebook3#define STACK_MAX_LEN 6004/* Full unroll of 600 iterations will have total5 * program size close to 298k insns and this may6 * cause BPF_JMP insn out of 16-bit integer range.7 * So limit the unroll size to 150 so the8 * total program size is around 80k insns but9 * the loop will still execute 600 times.10 */11#define UNROLL_COUNT 15012#include "pyperf.h"13