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 3954 of file mlogger.cxx.
#define CHECKSUM_NONE 0 |
Definition at line 3952 of file mlogger.cxx.
#define CHECKSUM_SHA256 3 |
Definition at line 3955 of file mlogger.cxx.
#define CHECKSUM_SHA512 4 |
Definition at line 3956 of file mlogger.cxx.
#define CHECKSUM_ZLIB 1 |
Definition at line 3953 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 3979 of file mlogger.cxx.
#define COMPRESS_LZ4 2 |
Definition at line 3978 of file mlogger.cxx.
#define COMPRESS_NONE 0 |
Definition at line 3976 of file mlogger.cxx.
#define COMPRESS_PBZIP2 4 |
Definition at line 3980 of file mlogger.cxx.
#define COMPRESS_ZLIB 1 |
Definition at line 3977 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 3996 of file mlogger.cxx.
#define OUTPUT_FTP 3 |
Definition at line 3997 of file mlogger.cxx.
#define OUTPUT_NONE 0 |
Definition at line 3994 of file mlogger.cxx.
#define OUTPUT_NULL 1 |
Definition at line 3995 of file mlogger.cxx.
#define OUTPUT_PIPE 5 |
Definition at line 3999 of file mlogger.cxx.
#define OUTPUT_ROOT 4 |
Definition at line 3998 of file mlogger.cxx.
|
static |
Definition at line 4749 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 4021 of file mlogger.cxx.
|
static |
|
static |
|
static |
Definition at line 5877 of file mlogger.cxx.
Definition at line 5832 of file mlogger.cxx.
void close_history | ( | ) |
Definition at line 5533 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 2651 of file mlogger.cxx.
Definition at line 3316 of file mlogger.cxx.
Definition at line 2826 of file mlogger.cxx.
Definition at line 2832 of file mlogger.cxx.
|
extern |
Definition at line 317 of file history_image.cxx.
Definition at line 4403 of file mlogger.cxx.
Definition at line 4001 of file mlogger.cxx.
Definition at line 57 of file mlogger.cxx.
Definition at line 4290 of file mlogger.cxx.
Definition at line 4084 of file mlogger.cxx.
Definition at line 4349 of file mlogger.cxx.
Definition at line 5677 of file mlogger.cxx.
Definition at line 5571 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 4240 of file mlogger.cxx.
Definition at line 5623 of file mlogger.cxx.
INT log_write | ( | LOG_CHN * | log_chn, |
EVENT_HEADER * | pheader | ||
) |
Definition at line 4538 of file mlogger.cxx.
void logger_init | ( | ) |
Definition at line 1618 of file mlogger.cxx.
Definition at line 6439 of file mlogger.cxx.
int maybe_check_disk_level | ( | ) |
Definition at line 4378 of file mlogger.cxx.
Definition at line 5515 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 3958 of file mlogger.cxx.
WriterInterface * NewCompression | ( | LOG_CHN * | log_chn, |
int | code, | ||
WriterInterface * | chained | ||
) |
Definition at line 3982 of file mlogger.cxx.
WriterInterface * NewWriterBzip2 | ( | LOG_CHN * | log_chn | ) |
Definition at line 3918 of file mlogger.cxx.
WriterInterface * NewWriterPbzip2 | ( | LOG_CHN * | log_chn | ) |
Definition at line 3930 of file mlogger.cxx.
Definition at line 1800 of file mlogger.cxx.
INT open_history | ( | ) |
Definition at line 4866 of file mlogger.cxx.
void receive_event | ( | HNDLE | hBuf, |
HNDLE | request_id, | ||
EVENT_HEADER * | pheader, | ||
void * | pevent | ||
) |
Definition at line 6412 of file mlogger.cxx.
Definition at line 4033 of file mlogger.cxx.
Definition at line 4050 of file mlogger.cxx.
Definition at line 4067 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 4012 of file mlogger.cxx.
|
extern |
int start_the_run | ( | ) |
Definition at line 4477 of file mlogger.cxx.
|
extern |
Definition at line 4443 of file mlogger.cxx.
Definition at line 64 of file mlogger.cxx.
Definition at line 6386 of file mlogger.cxx.
Definition at line 6398 of file mlogger.cxx.
Definition at line 5939 of file mlogger.cxx.
Definition at line 6249 of file mlogger.cxx.
Definition at line 6278 of file mlogger.cxx.
Definition at line 5921 of file mlogger.cxx.
Definition at line 5905 of file mlogger.cxx.
Definition at line 2537 of file mlogger.cxx.
Definition at line 2698 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 4747 of file mlogger.cxx.
Definition at line 313 of file mlogger.cxx.
time_t last_history_flush = 0 |
Definition at line 5513 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 4746 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.