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