summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/rseq/check_optimized.c
blob: a13e3f2c8fc62f6a4015cafe2a078c1fe3a7590a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: LGPL-2.1
#define _GNU_SOURCE
#include <assert.h>
#include <sched.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>

#include "rseq.h"

int main(int argc, char **argv)
{
	if (__rseq_register_current_thread(true, false))
		return -1;
	return 0;
}