Loop Timing Witness
Native controller and runtime interfaces; hardware qualification pending
Loading...
Searching...
No Matches
run_policy.h File Reference
#include "../run_options.h"
#include "../refusal.h"
#include <sched.h>
#include <sys/resource.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  witness::HostPolicy
struct  witness::FreeCpuMask

Functions

HostPolicy witness::read_host_policy ()
HostPolicy witness::apply_host_policy (const RunOptions &options)
bool witness::write_host_policy (std::FILE *file, const RunOptions &options, const HostPolicy &actual)

Detailed Description

actual Linux run scheduling policy.

Definition in file run_policy.h.

Function Documentation

◆ apply_host_policy()

HostPolicy witness::apply_host_policy ( const RunOptions & options)
inline

Apply only requested calling-thread changes before device or output acquisition.

Definition at line 77 of file run_policy.h.

◆ read_host_policy()

HostPolicy witness::read_host_policy ( )
inline

Read the current allowed CPUs, expanding for kernels with large CPU masks.

Definition at line 43 of file run_policy.h.

◆ write_host_policy()

bool witness::write_host_policy ( std::FILE * file,
const RunOptions & options,
const HostPolicy & actual )
inline

Append the observed Linux policy and explicit request to native run JSON.

Definition at line 122 of file run_policy.h.