tools/testing/selftests/sched_ext/rt_stall.bpf.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/sched_ext/rt_stall.bpf.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/sched_ext/rt_stall.bpf.c
Extension
.c
Size
455 bytes
Lines
24
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: GPL-2.0
/*
 * A scheduler that verified if RT tasks can stall SCHED_EXT tasks.
 *
 * Copyright (c) 2025 NVIDIA Corporation.
 */

#include <scx/common.bpf.h>

char _license[] SEC("license") = "GPL";

UEI_DEFINE(uei);

void BPF_STRUCT_OPS(rt_stall_exit, struct scx_exit_info *ei)
{
	UEI_RECORD(uei, ei);
}

SEC(".struct_ops.link")
struct sched_ext_ops rt_stall_ops = {
	.exit			= (void *)rt_stall_exit,
	.name			= "rt_stall",
};

Annotation

Implementation Notes