xref: /linux/tools/testing/selftests/rseq/check_optimized.c (revision 7f0023215262221ca08d56be2203e8a4770be033)
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 
main(int argc,char ** argv)12 int main(int argc, char **argv)
13 {
14 	if (__rseq_register_current_thread(true, false))
15 		return -1;
16 	return 0;
17 }
18