tools/testing/selftests/rseq/check_optimized.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/rseq/check_optimized.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/rseq/check_optimized.c
Extension
.c
Size
307 bytes
Lines
18
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

// 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;
}

Annotation

Implementation Notes