• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <sys/prctl.h>
2 
3 constexpr int LOOP_COUNT = 100000000;
4 
Function1()5 void Function1() {
6   for (volatile int i = 0; i < LOOP_COUNT; ++i) {
7   }
8 }
9 
main()10 int main() {
11   prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("RUN_COMM1"), 0, 0, 0);
12   Function1();
13   prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("RUN_COMM2"), 0, 0, 0);
14   Function1();
15   return 0;
16 }
17