![]() |
Project
|
#include "Framework/CompilerBuiltins.h"#include <atomic>#include <array>#include <unistd.h>#include <cassert>#include <cinttypes>#include <cstddef>Go to the source code of this file.
Classes | |
| struct | o2_log_handle_t |
| struct | _o2_lock_free_stack |
| struct | _o2_activity_t |
| struct | _o2_signpost_id_t |
| struct | _o2_log_t |
Typedefs | |
| using | _o2_signpost_index_t = int |
| #define O2_DECLARE_DYNAMIC_LOG | ( | name | ) | static _o2_log_t* private_o2_log_##name = (_o2_log_t*)_o2_log_create("ch.cern.aliceo2." #name, 1) |
Dynamic logs need to be enabled via the O2_LOG_ENABLE macro. Notice this will only work for the logger based logging, since the Apple version needs instruments to enable them.
Definition at line 490 of file Signpost.h.
| #define O2_DECLARE_DYNAMIC_STACKTRACE_LOG | ( | name | ) | static _o2_log_t* private_o2_log_##name = (_o2_log_t*)_o2_log_create("ch.cern.aliceo2." #name, 64) |
For the moment we do not support logs with a stacktrace.
Definition at line 492 of file Signpost.h.
| #define O2_DECLARE_LOG | ( | name, | |
| category | |||
| ) | static _o2_log_t* private_o2_log_##name = (_o2_log_t*)_o2_log_create("ch.cern.aliceo2." #name, 1) |
Definition at line 493 of file Signpost.h.
| #define O2_DECLARE_LOG_MAC | ( | x, | |
| category | |||
| ) |
Definition at line 101 of file Signpost.h.
| #define O2_LOG_DEBUG | ( | log, | |
| ... | |||
| ) |
Definition at line 499 of file Signpost.h.
| #define O2_LOG_DEBUG_MAC | ( | log, | |
| ... | |||
| ) |
Definition at line 102 of file Signpost.h.
| #define O2_LOG_DISABLE | ( | log | ) | _o2_log_set_stacktrace(private_o2_log_##log, 0) |
Definition at line 496 of file Signpost.h.
| #define O2_LOG_ENABLE | ( | log | ) | _o2_log_set_stacktrace(private_o2_log_##log, private_o2_log_##log->defaultStacktrace) |
Definition at line 495 of file Signpost.h.
| #define O2_LOG_ENABLED | ( | log | ) | private_o2_log_##log->stacktrace |
Definition at line 111 of file Signpost.h.
| #define O2_LOG_MACRO | ( | ... | ) |
Definition at line 137 of file Signpost.h.
Definition at line 122 of file Signpost.h.
| #define O2_SIGNPOST_ACTION | ( | log, | |
| callback | |||
| ) |
Definition at line 511 of file Signpost.h.
| #define O2_SIGNPOST_ENABLED_MAC | ( | log | ) | false |
Definition at line 106 of file Signpost.h.
Definition at line 609 of file Signpost.h.
Definition at line 105 of file Signpost.h.
Definition at line 617 of file Signpost.h.
Definition at line 523 of file Signpost.h.
Definition at line 584 of file Signpost.h.
Definition at line 574 of file Signpost.h.
Definition at line 543 of file Signpost.h.
Definition at line 554 of file Signpost.h.
Definition at line 594 of file Signpost.h.
Definition at line 532 of file Signpost.h.
Definition at line 103 of file Signpost.h.
Definition at line 564 of file Signpost.h.
| #define O2_SIGNPOST_ID_FROM_POINTER | ( | name, | |
| log, | |||
| pointer | |||
| ) | _o2_signpost_id_t name = _o2_signpost_id_make_with_pointer(private_o2_log_##log, pointer) |
Definition at line 506 of file Signpost.h.
| #define O2_SIGNPOST_ID_GENERATE | ( | name, | |
| log | |||
| ) | _o2_signpost_id_t name = _o2_signpost_id_generate_local(private_o2_log_##log) |
Definition at line 507 of file Signpost.h.
Definition at line 603 of file Signpost.h.
Definition at line 104 of file Signpost.h.
| using _o2_signpost_index_t = int |
Definition at line 163 of file Signpost.h.
| bool _o2_lock_free_stack_pop | ( | _o2_lock_free_stack & | stack, |
| int & | value, | ||
| bool | spin = false |
||
| ) |
| bool _o2_lock_free_stack_push | ( | _o2_lock_free_stack & | stack, |
| const int & | value, | ||
| bool | spin = false |
||
| ) |
Definition at line 215 of file Signpost.h.
| void _o2_signpost_event_emit | ( | _o2_log_t * | log, |
| _o2_signpost_id_t | id, | ||
| char const * | name, | ||
| char const *const | format, | ||
| ... | |||
| ) |
|
inline |
Definition at line 227 of file Signpost.h.
|
inline |
Definition at line 234 of file Signpost.h.
| void _o2_signpost_interval_begin | ( | _o2_log_t * | log, |
| _o2_signpost_id_t | id, | ||
| char const * | name, | ||
| char const *const | format, | ||
| ... | |||
| ) |
| void _o2_signpost_interval_end | ( | _o2_log_t * | log, |
| _o2_signpost_id_t | id, | ||
| char const * | name, | ||
| char const *const | format, | ||
| ... | |||
| ) |
| std::atomic< o2_log_handle_t * > & o2_get_logs_tail | ( | ) |
| o2_log_handle_t * o2_walk_logs | ( | bool(*)(char const *name, void *log, void *context) | callback, |
| void * | context = nullptr |
||
| ) |
| consteval auto remove_engineering_type | ( | char const (&) | src[N] | ) |
Definition at line 31 of file Signpost.h.