#include <logcommon.h>
#include <zero_copy_backend.h>
+// Coverage measuring environment does not have the zlogger backend, exclude it
+//LCOV_EXCL_START
+
static int g_fd = 0;
_Thread_local volatile void *g_shm_ptr = 0;
_Thread_local uint64_t last_ts = 0;
return 0;
}
+
+//LCOV_EXCL_STOP
#include "fd_info.h"
#include "fdi_zero_copy.h"
+// Coverage test environment doesn't have zlogger backend, exclude it from measurements
+//LCOV_EXCL_START
+
static const uint64_t ZLOGGER_MONITOR_INTERVAL = 1 * NSEC_PER_SEC;
static int zero_copy_get_capacity(struct fd_info *fdi, unsigned int *capacity)
return zpd->items != NULL;
}
+//LCOV_EXCL_STOP
+
const struct fd_ops ops_zero_copy = {
.create = zero_copy_create,
.destroy = zero_copy_destroy,
* but because v1 doesn't actually support the SET_VERSION call.
* DLog doesn't actually support version 1 devices but it's
* good to have feedback on which version is in place. */
+
+ //LCOV_EXCL_START
if (errno == EINVAL)
return 1;
return -errno;
+ //LCOV_EXCL_STOP
}
/*
char key[MAX_CONF_KEY_LEN];
const int r = snprintf(key, sizeof key, "enable_%s", log_name_by_id(id));
if (r < 0)
- return plog_default;
+ return plog_default; //LCOV_EXCL_LINE
return log_config_get_boolean(conf, key, plog_default);
}
#include "translate_syslog.h"
+// Syslog isn't currently supported
+//LCOV_EXCL_START
+
/**
* @addtogroup SHARED_FUNCTIONS
* @{
/**
* @}
*/
+
+//LCOV_EXCL_STOP