PLCnext API Documentation
22.9.0.33
|
The TraceController provides an Interface to manage and control the LTTng Tracing on the Control More...
#include <TraceController.hpp>
Public Types | |
typedef std::list< Arp::String > | SessionList |
Public Member Functions | |
bool | IsSessionDaemonAlive (void) const |
Checks if the session daemon for tracing is alive. More... | |
void | LoadTracepointLibrary (void) |
Loads the userspace Trace-Point-Library More... | |
void | UnloadTracepointLibrary (void) |
Unoads the userspace Trace-Point-Library More... | |
bool | LoadSessionConfiguration (const Arp::String &session, const Arp::String &config) |
Tries to loads a configuration file. More... | |
SessionList | ListSessions (void) |
Queries a list of loaded LTTng Sessions More... | |
bool | StartSession (const Arp::String &session) |
Starts an LTTnG Trace Session More... | |
bool | StopSession (const Arp::String &session) |
Stops an LTTnG Trace Session More... | |
bool | DestroySession (const Arp::String &session) |
Destroys/Unloads an LTTnG Trace Session More... | |
bool | TriggerSavingTraceOutputs (const bool &stopTriggerSession) |
Records/Saves all outputs of a configured session after an internal timeout delay Session in Snapshotmode: - A session snapshot will be recorded and the snapshot will then moved to the recording output directory. More... | |
bool | IsSessionInSnapshotMode (const Arp::String &session) |
Checks if a trace session is in Snapshot Mode More... | |
bool | IsSessionEnabled (const Arp::String &session) |
Checks if a trace session is already enabled/started More... | |
bool | IsSessionLoaded (const Arp::String &session) |
Checks if a trace session is already loaded More... | |
void | SetTracesSavingConfigs (const Arp::String &triggerSession, const Arp::String &outPath, const Arp::uint32 &maxDirectorySize, const Arp::uint32 &savingDelayTimeout) |
Sets the configuration of the trigger saving function More... | |
Friends | |
class | Singleton< TraceController > |
Additional Inherited Members | |
![]() | |
static Instance & | CreateInstance (Args &&... args) |
Creates this singleton instance. More... | |
static bool | IsCreated (void) |
Determines if this singleton instance is create yet. More... | |
static Instance & | GetInstance (void) |
Gets a reference of the singleton instance. More... | |
static Instance * | GetInstancePtr (void) |
Gets a pointer to the singleton instance. More... | |
static void | DisposeInstance (void) |
Disposes this singleton instance. More... | |
![]() | |
typedef Singleton< TraceController > | SingletonBase |
Defines this type to be used from derived classes. More... | |
![]() | |
Singleton (void)=default | |
The protected default constructor. More... | |
~Singleton (void)=default | |
The protected default destructor. More... | |
![]() | |
static void | SetInstance (Instance *pOther) |
Sets the singleton instance. More... | |
static void | AssignInstanceFrom (Instance &other) |
Assigns the singleton instance from another singleton instance of the same type. More... | |
The TraceController provides an Interface to manage and control the LTTng Tracing on the Control
bool Arp::System::Commons::Diagnostics::TraceController::DestroySession | ( | const Arp::String & | session | ) |
Destroys/Unloads an LTTnG Trace Session
session | Name of Session which will be destroyed/unloaded |
"VeException: when session does not exist or an lttng-error is occured."
bool Arp::System::Commons::Diagnostics::TraceController::IsSessionDaemonAlive | ( | void | ) | const |
Checks if the session daemon for tracing is alive.
bool Arp::System::Commons::Diagnostics::TraceController::IsSessionEnabled | ( | const Arp::String & | session | ) |
Checks if a trace session is already enabled/started
session | Session Name, which mode will be checked |
"VeException: when session does not exist or an lttng-error is occured."
bool Arp::System::Commons::Diagnostics::TraceController::IsSessionInSnapshotMode | ( | const Arp::String & | session | ) |
Checks if a trace session is in Snapshot Mode
session | Session Name, which mode will be checked |
"VeException: when session does not exist or an lttng-error is occured."
bool Arp::System::Commons::Diagnostics::TraceController::IsSessionLoaded | ( | const Arp::String & | session | ) |
Checks if a trace session is already loaded
session | Session Name, which mode will be checked |
"VeException: when an lttng-error is occured."
SessionList Arp::System::Commons::Diagnostics::TraceController::ListSessions | ( | void | ) |
Queries a list of loaded LTTng Sessions
"VeException: when an lttng-error is occured."
bool Arp::System::Commons::Diagnostics::TraceController::LoadSessionConfiguration | ( | const Arp::String & | session, |
const Arp::String & | config | ||
) |
Tries to loads a configuration file.
session | Session Name, which much be identical with the trace name configured in the .lttng |
path | path to the .lttng configuration file of the session |
"VeException: when session is already loaded or an lttng-error is occured."
void Arp::System::Commons::Diagnostics::TraceController::LoadTracepointLibrary | ( | void | ) |
Loads the userspace Trace-Point-Library
"InvalidConfigException: path to library does not exist." "InvalidOperationException: TracepointLib ist already loaded" "VeException: when an error occured during loading the shared library
void Arp::System::Commons::Diagnostics::TraceController::SetTracesSavingConfigs | ( | const Arp::String & | triggerSession, |
const Arp::String & | outPath, | ||
const Arp::uint32 & | maxDirectorySize, | ||
const Arp::uint32 & | savingDelayTimeout | ||
) |
Sets the configuration of the trigger saving function
triggerSession | Session Name, which will be user for the Saving Trigger |
outPath | Output path for the Saving Trigger Function |
maxDirectorySize | Max Directory Size of the Saving Trigger Output Directory |
savingDelayTimeout | Trigger Saving Delay Timeout |
bool Arp::System::Commons::Diagnostics::TraceController::StartSession | ( | const Arp::String & | session | ) |
Starts an LTTnG Trace Session
session | Name of Session which will be started |
"VeException: when session is already started, does not exist or an lttng-error is occured."
bool Arp::System::Commons::Diagnostics::TraceController::StopSession | ( | const Arp::String & | session | ) |
Stops an LTTnG Trace Session
session | Name of Session which will be stopped |
"VeException: when session is already stopped, does not exist or an lttng-error is occured."
bool Arp::System::Commons::Diagnostics::TraceController::TriggerSavingTraceOutputs | ( | const bool & | stopTriggerSession | ) |
Records/Saves all outputs of a configured session after an internal timeout delay Session in Snapshotmode: - A session snapshot will be recorded and the snapshot will then moved to the recording output directory.
void Arp::System::Commons::Diagnostics::TraceController::UnloadTracepointLibrary | ( | void | ) |
Unoads the userspace Trace-Point-Library
"VeException: error occured during unloading the lib." "InvalidConfigException: when path to the TracepointLib cannot be resolved" "InvalidOperationException: when a lttng session still running" /exception>