xref: /linux/tools/testing/selftests/rseq/check_optimized.c (revision e744060076871eebc2647b24420b550ff44b2b65)
1 // SPDX-License-Identifier: LGPL-2.1
2 #define _GNU_SOURCE
3 #include <assert.h>
4 #include <sched.h>
5 #include <signal.h>
6 #include <stdio.h>
7 #include <string.h>
8 #include <sys/time.h>
9 
10 #include "rseq.h"
11 
12 int main(int argc, char **argv)
13 {
14 	if (__rseq_register_current_thread(true, false))
15 		return -1;
16 	return 0;
17 }
18