xref: /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/pyperf600.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun // Copyright (c) 2019 Facebook
3*4882a593Smuzhiyun #define STACK_MAX_LEN 600
4*4882a593Smuzhiyun /* clang will not unroll the loop 600 times.
5*4882a593Smuzhiyun  * Instead it will unroll it to the amount it deemed
6*4882a593Smuzhiyun  * appropriate, but the loop will still execute 600 times.
7*4882a593Smuzhiyun  * Total program size is around 90k insns
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun #include "pyperf.h"
10