MIDAS
|
#include "midas.h"
#include "msystem.h"
#include "hardware.h"
#include "mstrlcpy.h"
#include <errno.h>
#include <assert.h>
#include <string>
#include "mdsupport.h"
#include <zlib.h>
#include "crc32c.h"
#include "sha256.h"
#include "sha512.h"
#include "mlz4frame.h"
#include "history.h"
Go to the source code of this file.
Classes | |
struct | CHN_SETTINGS |
struct | CHN_STATISTICS |
struct | LOG_CHN |
struct | hist_log_s |
struct | MIDAS_INFO |
class | WriterInterface |
class | WriterNull |
class | WriterFile |
class | WriterGzip |
class | WriterPopen |
class | WriterCRC32Zlib |
class | WriterCRC32C |
class | WriterSHA256 |
class | WriterSHA512 |
class | WriterLZ4 |
class | WriterFtp |
struct | EVENT_DEF |
Macros | |
#define | HAVE_LOGGING |
#define | CHN_TREE_STR(_name) |
#define | CHN_SETTINGS_STR(_name) |
#define | CHN_STATISTICS_STR(_name) |
#define | DISK_CHECK_INTERVAL_MILLISEC 10000 |
#define | MEMZERO(obj) memset(&(obj), 0, sizeof(obj)) |
#define | FREE(ptr) if (ptr) free(ptr); (ptr)=NULL; |
#define | DELETE(ptr) if (ptr) delete (ptr); (ptr)=NULL; |
#define | EVENT_DEF_CACHE_SIZE 30 |
#define | CHECKSUM_NONE 0 |
#define | CHECKSUM_ZLIB 1 |
#define | CHECKSUM_CRC32C 2 |
#define | CHECKSUM_SHA256 3 |
#define | CHECKSUM_SHA512 4 |
#define | COMPRESS_NONE 0 |
#define | COMPRESS_ZLIB 1 |
#define | COMPRESS_LZ4 2 |
#define | COMPRESS_BZIP2 3 |
#define | COMPRESS_PBZIP2 4 |
#define | OUTPUT_NONE 0 |
#define | OUTPUT_NULL 1 |
#define | OUTPUT_FILE 2 |
#define | OUTPUT_FTP 3 |
#define | OUTPUT_ROOT 4 |
#define | OUTPUT_PIPE 5 |
Variables | |
INT | local_state |
BOOL | in_stop_transition = FALSE |
BOOL | tape_message = TRUE |
BOOL | verbose = FALSE |
BOOL | stop_requested = FALSE |
BOOL | start_requested = FALSE |
DWORD | auto_restart = 0 |
DWORD | run_start_time |
DWORD | subrun_start_time |
double | stop_try_later = 0 |
std::vector< LOG_CHN * > | log_channels |
static int | hist_log_size = 0 |
static int | hist_log_max = 0 |
static struct hist_log_s * | hist_log = NULL |
static HNDLE | hDB |
static std::vector< MidasHistoryInterface * > | mh |
static std::vector< std::string > | history_events |
time_t | last_history_flush = 0 |
#define CHECKSUM_CRC32C 2 |
Definition at line 3943 of file mlogger.cxx.
#define CHECKSUM_NONE 0 |
Definition at line 3941 of file mlogger.cxx.
#define CHECKSUM_SHA256 3 |
Definition at line 3944 of file mlogger.cxx.
#define CHECKSUM_SHA512 4 |
Definition at line 3945 of file mlogger.cxx.
#define CHECKSUM_ZLIB 1 |
Definition at line 3942 of file mlogger.cxx.
Definition at line 202 of file mlogger.cxx.
Definition at line 242 of file mlogger.cxx.
Definition at line 98 of file mlogger.cxx.
#define COMPRESS_BZIP2 3 |
Definition at line 3968 of file mlogger.cxx.
#define COMPRESS_LZ4 2 |
Definition at line 3967 of file mlogger.cxx.
#define COMPRESS_NONE 0 |
Definition at line 3965 of file mlogger.cxx.
#define COMPRESS_PBZIP2 4 |
Definition at line 3969 of file mlogger.cxx.
#define COMPRESS_ZLIB 1 |
Definition at line 3966 of file mlogger.cxx.
Definition at line 368 of file mlogger.cxx.
#define DISK_CHECK_INTERVAL_MILLISEC 10000 |
Definition at line 310 of file mlogger.cxx.
#define EVENT_DEF_CACHE_SIZE 30 |
Definition at line 367 of file mlogger.cxx.
#define HAVE_LOGGING |
Definition at line 22 of file mlogger.cxx.
#define OUTPUT_FILE 2 |
Definition at line 3985 of file mlogger.cxx.
#define OUTPUT_FTP 3 |
Definition at line 3986 of file mlogger.cxx.
#define OUTPUT_NONE 0 |
Definition at line 3983 of file mlogger.cxx.
#define OUTPUT_NULL 1 |
Definition at line 3984 of file mlogger.cxx.
#define OUTPUT_PIPE 5 |
Definition at line 3988 of file mlogger.cxx.
#define OUTPUT_ROOT 4 |
Definition at line 3987 of file mlogger.cxx.
|
static |
Definition at line 4738 of file mlogger.cxx.
int check_add | ( | int | v, |
int | n, | ||
const std::string & | val, | ||
const char * | str, | ||
bool | bdef, | ||
std::string * | def, | ||
std::string * | sel | ||
) |
Definition at line 4010 of file mlogger.cxx.
|
static |
|
static |
|
static |
Definition at line 5862 of file mlogger.cxx.
Definition at line 5817 of file mlogger.cxx.
void close_history | ( | ) |
Definition at line 5518 of file mlogger.cxx.
void create_runlog_ascii_tree | ( | ) |
Definition at line 2492 of file mlogger.cxx.
void create_runlog_json_tree | ( | ) |
Definition at line 2647 of file mlogger.cxx.
Definition at line 3312 of file mlogger.cxx.
Definition at line 2822 of file mlogger.cxx.
Definition at line 2828 of file mlogger.cxx.
|
extern |
Definition at line 317 of file history_image.cxx.
Definition at line 4392 of file mlogger.cxx.
Definition at line 3990 of file mlogger.cxx.
Definition at line 57 of file mlogger.cxx.
Definition at line 4279 of file mlogger.cxx.
Definition at line 4073 of file mlogger.cxx.
Definition at line 4338 of file mlogger.cxx.
Definition at line 5662 of file mlogger.cxx.
Definition at line 5556 of file mlogger.cxx.
Definition at line 1785 of file mlogger.cxx.
Definition at line 1758 of file mlogger.cxx.
Definition at line 1698 of file mlogger.cxx.
Definition at line 1727 of file mlogger.cxx.
Definition at line 4229 of file mlogger.cxx.
Definition at line 5608 of file mlogger.cxx.
INT log_write | ( | LOG_CHN * | log_chn, |
EVENT_HEADER * | pheader | ||
) |
Definition at line 4527 of file mlogger.cxx.
void logger_init | ( | ) |
Definition at line 1618 of file mlogger.cxx.
Definition at line 6433 of file mlogger.cxx.
int maybe_check_disk_level | ( | ) |
Definition at line 4367 of file mlogger.cxx.
Definition at line 5500 of file mlogger.cxx.
Definition at line 300 of file mlogger.cxx.
WriterInterface * NewChecksum | ( | LOG_CHN * | log_chn, |
int | code, | ||
int | level, | ||
WriterInterface * | chained | ||
) |
Definition at line 3947 of file mlogger.cxx.
WriterInterface * NewCompression | ( | LOG_CHN * | log_chn, |
int | code, | ||
WriterInterface * | chained | ||
) |
Definition at line 3971 of file mlogger.cxx.
WriterInterface * NewWriterBzip2 | ( | LOG_CHN * | log_chn | ) |
Definition at line 3907 of file mlogger.cxx.
WriterInterface * NewWriterPbzip2 | ( | LOG_CHN * | log_chn | ) |
Definition at line 3919 of file mlogger.cxx.
Definition at line 1800 of file mlogger.cxx.
INT open_history | ( | ) |
Definition at line 4855 of file mlogger.cxx.
void receive_event | ( | HNDLE | hBuf, |
HNDLE | request_id, | ||
EVENT_HEADER * | pheader, | ||
void * | pevent | ||
) |
Definition at line 6406 of file mlogger.cxx.
Definition at line 4022 of file mlogger.cxx.
Definition at line 4039 of file mlogger.cxx.
Definition at line 4056 of file mlogger.cxx.
void set_value | ( | HNDLE | hDB, |
HNDLE | hDir, | ||
const char * | name, | ||
const std::string & | set, | ||
const std::string & | def | ||
) |
Definition at line 4001 of file mlogger.cxx.
|
extern |
int start_the_run | ( | ) |
Definition at line 4466 of file mlogger.cxx.
|
extern |
Definition at line 4432 of file mlogger.cxx.
Definition at line 64 of file mlogger.cxx.
Definition at line 6380 of file mlogger.cxx.
Definition at line 6392 of file mlogger.cxx.
Definition at line 5924 of file mlogger.cxx.
Definition at line 6243 of file mlogger.cxx.
Definition at line 6272 of file mlogger.cxx.
Definition at line 5906 of file mlogger.cxx.
Definition at line 5890 of file mlogger.cxx.
Definition at line 2537 of file mlogger.cxx.
Definition at line 2694 of file mlogger.cxx.
Definition at line 372 of file mlogger.cxx.
DWORD auto_restart = 0 |
Definition at line 318 of file mlogger.cxx.
|
static |
Definition at line 338 of file mlogger.cxx.
|
static |
Definition at line 336 of file mlogger.cxx.
|
static |
Definition at line 335 of file mlogger.cxx.
|
static |
Definition at line 334 of file mlogger.cxx.
|
static |
Definition at line 4736 of file mlogger.cxx.
Definition at line 313 of file mlogger.cxx.
time_t last_history_flush = 0 |
Definition at line 5498 of file mlogger.cxx.
INT local_state |
Definition at line 312 of file mlogger.cxx.
std::vector<LOG_CHN*> log_channels |
Definition at line 322 of file mlogger.cxx.
|
static |
Definition at line 4735 of file mlogger.cxx.
DWORD run_start_time |
Definition at line 319 of file mlogger.cxx.
Definition at line 317 of file mlogger.cxx.
Definition at line 316 of file mlogger.cxx.
double stop_try_later = 0 |
Definition at line 320 of file mlogger.cxx.
DWORD subrun_start_time |
Definition at line 319 of file mlogger.cxx.
Definition at line 314 of file mlogger.cxx.
Definition at line 315 of file mlogger.cxx.