summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/pyperf600.c
blob: ce1aa5189cc4909efc3f9f29a7d40ec5f936ef1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2019 Facebook
#define STACK_MAX_LEN 600
/* 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.
 */
#define UNROLL_COUNT 150
#include "pyperf.h"