187 bool was_started_{
false};
190 bool wait_os_{
false};
Class for Process Events (see BTF Specification Chapter 2.3.2).
Definition: process.h:16
static Events stringToEvent(const std::string &str)
Converts a string into the enum Events.
Definition: process.cpp:230
Process(States state=States::unknown)
Constructor of the class Process.
Definition: process.cpp:9
static EntityTypes getSourceType(Events ev)
Gets the source type of the event.
Definition: process.cpp:306
static bool isEventDeallocatingCore(Events ev)
Checks, if the event will lead to an deallocation from the core.
Definition: process.cpp:365
bool waitOSevent() const
Checks, if the current process is waiting for an OS event.
Definition: process.cpp:404
static bool isEventAllocatingCore(Events ev)
Checks, if the event will lead to an allocation on the core.
Definition: process.cpp:336
bool wasStarted() const
Checks, if the current process got a start event at some point.
Definition: process.cpp:399
Events
Possible types of Process events.
Definition: process.h:22
@ release
The release event indicates that at least one OS-Event a process (target) is passively waiting for is...
@ terminate
The terminate event indicates that a process (target) has finished its execution.
@ interrupt_suspended
The interrupt_suspended event indicates that the stated interrupt service routine instance (target) i...
@ mtalimitexceeded
The mtalimitexceeded event indicates that the maximum allowed number of concurrent activations of thi...
@ resume
The resume event indicates that a process (target) that has been removed from a core by a scheduler g...
@ preempt
The preempt event indicates that a process (target) that is executing on a core (source) gets removed...
@ run
The run event indicates that a process (target) that is actively waiting for a resource on a core (so...
@ poll
The poll event indicates that a request resource is not available and the process (target) starts wai...
@ activate
The activate event indicates that a process transitions from TERMINATED to ACTIVE state.
@ start
The start event indicates that a process (target) that is active for execution gets scheduled and all...
@ park
The park event indicates that a process (target) that is actively waiting for a resource is suspended...
States
Possible types of Process states.
Definition: process.h:85
@ parking
The process instance has been preempted while actively waiting for a resource that is not available.
@ running
The process instance executes on a core.
@ ready
The process instance has been preempted.
@ active
The process instance is ready for execution.
@ waiting
The process instance has called the system service to wait for an OS-Event which is not set and waits...
@ terminated
The process instance has finished its execution or hasn’t been activated yet.
@ polling
The process instance has requested a not available resource and waits actively.
bool isTerminated() const
Checks, if the current process state is terminated.
Definition: process.cpp:394
static std::string eventToString(Events ev)
Converts the enum Events into string.
Definition: process.cpp:187
void setwaitOSevent(bool wait)
Allows to set the OS wait state of the process.
Definition: process.cpp:409
ErrorCodes doStateTransition(Events ev)
Transitions the current state depending on the event.
Definition: process.cpp:13
EntityTypes
All types of entities that are supported by the btf lib.
Definition: btf_entity_types.h:13
ErrorCodes
Error Codes for the btf library.
Definition: common.h:13