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