commit | 52df20873dd8d380977b9ae1b0645deb0750bf49 | [log] [tgz] |
---|---|---|
author | Andy Lutomirski <luto@kernel.org> | Wed Jun 15 17:22:03 2016 -0700 |
committer | Andy Lutomirski <luto@kernel.org> | Wed Jun 15 17:22:03 2016 -0700 |
tree | bcece5142c6309f4c1f3947b75986014c522eb2a | |
parent | 0d36a1499418b5b044f1909838904cbdddb86950 [diff] |
timing_test: Add arch_prctl_42
diff --git a/timing_test.cc b/timing_test.cc index 6737023..2f35f26 100644 --- a/timing_test.cc +++ b/timing_test.cc
@@ -272,6 +272,11 @@ } else if (!strcmp(mode, "raise")) { for (size_t i = 0; i < loops; ++i) raise(SIGUSR1); +#ifdef __x86_64__ + } else if (!strcmp(mode, "arch_prctl_42")) { + for (size_t i = 0; i < loops; ++i) + syscall(SYS_arch_prctl, 42, 0); +#endif } else { printf("Unknown mode %s\n", mode); return 1;