Lines Matching refs:cmd
20 static unsigned long cmd = GUP_FAST_BENCHMARK; variable
26 static char *cmd_to_str(unsigned long cmd) in cmd_to_str() argument
28 switch (cmd) { in cmd_to_str()
51 if ((cmd == PIN_FAST_BENCHMARK) || (cmd == GUP_FAST_BENCHMARK) || in gup_thread()
52 (cmd == PIN_LONGTERM_BENCHMARK)) { in gup_thread()
55 if (ioctl(gup_fd, cmd, &gup)) in gup_thread()
60 cmd_to_str(cmd), gup.get_delta_usec, in gup_thread()
69 if (ioctl(gup_fd, cmd, &gup)) { in gup_thread()
75 printf("%s: done\n", cmd_to_str(cmd)); in gup_thread()
96 cmd = PIN_FAST_BENCHMARK; in main()
99 cmd = PIN_BASIC_TEST; in main()
102 cmd = PIN_LONGTERM_BENCHMARK; in main()
105 cmd = DUMP_USER_PAGES_TEST; in main()
142 cmd = GUP_BASIC_TEST; in main()
145 cmd = GUP_FAST_BENCHMARK; in main()