3 constexpr int LOOP_COUNT = 100000000;
6 for (volatile int i = 0; i < LOOP_COUNT; ++i) {
11 // Run the test in an infinite loop, so if we profile the test manually, the process
12 // doesn't exit before we attach to it. This scheme also allows simpleperf to control
13 // how long to profile.
15 prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("RUN_COMM1"), 0, 0, 0); // NOLINT
17 prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("RUN_COMM2"), 0, 0, 0); // NOLINT