blob: 12d64fa2f60c16721d708a9c964b421176ad77ea [file] [log] [blame]
#include <sys/prctl.h>
constexpr int LOOP_COUNT = 100000000;
void Function1() {
for (volatile int i = 0; i < LOOP_COUNT; ++i) {
}
}
int main() {
prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("RUN_COMM1"), 0, 0, 0); // NOLINT
Function1();
prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("RUN_COMM2"), 0, 0, 0); // NOLINT
Function1();
return 0;
}