Skip to content
projects
/
linux
·
blob
master ·
refs
linux
tools
testing
selftests
rseq
check_optimized.c
…
History
History
·
Raw
Raw
·
Diff
Diff
·
Blob
Blob
17 lines · 307 B
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
}