btftoolchain
btf::Scheduler Class Reference

Class for Scheduler (SCHED) Events (see BTF Specification Chapter 2.3.4). More...

#include <scheduler.h>

Public Types

enum class  Events { schedule , schedulepoint , unknown }
 Possible types of Scheduler events. More...
 

Static Public Member Functions

static std::string eventToString (Events ev)
 Converts the enum Events into string. More...
 
static Events stringToEvent (const std::string &str)
 Converts a string into the enum Events. More...
 

Detailed Description

Class for Scheduler (SCHED) Events (see BTF Specification Chapter 2.3.4).

The scheduler (SCHED) is part of the operating system and manages one or multiple cores. It is responsible for the execution order of all mapped processes on those cores.

Member Enumeration Documentation

◆ Events

Possible types of Scheduler events.

Enumerator
schedule 

The schedule event indicates that the scheduler (target and source) makes a scheduling decision.

schedulepoint 

The schedulepoint event indicates that a scheduler (target) is requested by a task (source)
at a cooperative schedule point.

unknown 

Default value.

Member Function Documentation

◆ eventToString()

std::string btf::Scheduler::eventToString ( Events  ev)
static

Converts the enum Events into string.

Parameters
[in]evEvents enum that will be converted.
Returns
String if Events type is valid, else a fatal error is triggered.
Here is the caller graph for this function:

◆ stringToEvent()

Scheduler::Events btf::Scheduler::stringToEvent ( const std::string &  str)
static

Converts a string into the enum Events.

Parameters
[in]strString that will be converted.
Returns
Events enum.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: