dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx_log.h File Reference
#include "dx_platform.h"
#include "dx_circular.h"
#include "dx_serialize.h"
Include dependency graph for dx_log.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  dx::log
 the whole log setting in two 32 bit words: the level - a dx::log::level per dx::log::scope per dx::log::module, four bits each - and the pipes (dx::log::pipe), where the lines go. The words are what a driver, a kernel, a host and a firmware exchange and compare; the named members are the same bits, and to/from name them for a preference, a command line or a property. The serialization macro hands the member list to the tree sink of dx_serialize.h, so a store - the plugin property's dictionary as a cf::store among them - holds the log resolved rather than the words. More...
struct  dx::log::circular
 the log's lines from any number of writers, lock free: a writer reserves its entry at tx - a length word and the line, padded to the word - and writes the length word last; the one reader takes the entries whose length word stands and clears them behind it, so a zero length is a line not written yet The ring's size is a multiple of the word, so a length word never wraps. More...
struct  dx::log::from
struct  dx::log::module
 the parts of a driver a message is attributed to, each with its own dx::log::scope More...
struct  dx::log::module::from
struct  dx::log::module::to
union  dx::log::pipe
 where the std streams' lines go: the dx::log::pipe::sinks of each - a stream naming no sink of the process drops its lines More...
union  dx::log::pipe::sinks
 a stream's sinks, a bit each in the order of name More...
struct  dx::log::scope
 the phases a module is logged apart in - a device's setup may be traced while its operation stays quiet More...
struct  dx::log::scope::from
struct  dx::log::scope::to
struct  dx::log::to

Namespaces

namespace  dx
 dynax driver framework interface namespace

Macros

#define DX_MEMBERS_LOG(X)
 the preference holds the log resolved: a key per module, a value per scope naming the level
#define DX_MEMBERS_LOG_PIPE(X)
#define DX_MEMBERS_LOG_SCOPE(X)
#define DX_MEMBERS_LOG_SINKS(X)

Macro Definition Documentation

◆ DX_MEMBERS_LOG

#define DX_MEMBERS_LOG(X)
Value:
X##_nested(bus) X##_nested(streaming) X##_nested(interface) X##_nested(vendor) X##_nested(pipes)
#define interface
Definition dx_asio_client_driver.h:30

the preference holds the log resolved: a key per module, a value per scope naming the level

◆ DX_MEMBERS_LOG_PIPE

#define DX_MEMBERS_LOG_PIPE(X)
Value:
X##_nested(err) X##_nested(log) X##_nested(out)

◆ DX_MEMBERS_LOG_SCOPE

#define DX_MEMBERS_LOG_SCOPE(X)
Value:
X##_level(setup) X##_level(operation)

◆ DX_MEMBERS_LOG_SINKS

#define DX_MEMBERS_LOG_SINKS(X)
Value:
X##_value(stdio) X##_value(system) X##_value(file) X##_value(debugger) X##_value(client) X##_value(notification)