tests: logging: log_api: Remove v1 support

Remove support for logging v1 from the test.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-06-14 06:50:15 +02:00 committed by Carles Cufí
parent ad12e4be32
commit 61532e93b4
5 changed files with 93 additions and 588 deletions

View file

@ -7,12 +7,9 @@ CONFIG_LOG=y
CONFIG_LOG_PRINTK=n
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_BUFFER_SIZE=768
CONFIG_LOG_STRDUP_BUF_COUNT=1
CONFIG_LOG_STRDUP_MAX_STRING=8
CONFIG_KERNEL_LOG_LEVEL_OFF=y
CONFIG_SOC_LOG_LEVEL_OFF=y
CONFIG_ARCH_LOG_LEVEL_OFF=y
CONFIG_LOG_FUNC_NAME_PREFIX_DBG=n
CONFIG_LOG_PROCESS_THREAD=n
CONFIG_ASSERT=y
CONFIG_LOG_STRDUP_POOL_PROFILING=y

View file

@ -24,12 +24,12 @@ LOG_MODULE_REGISTER(test, CONFIG_SAMPLE_MODULE_LOG_LEVEL);
#ifdef CONFIG_LOG2_USE_TAGGED_ARGUMENTS
/* The extra sizeof(int) is the end of arguments tag. */
#define LOG2_SIMPLE_MSG_LEN \
#define LOG_SIMPLE_MSG_LEN \
ROUND_UP(sizeof(struct log_msg2_hdr) + \
sizeof(struct cbprintf_package_hdr_ext) + \
sizeof(int), sizeof(long long))
#else
#define LOG2_SIMPLE_MSG_LEN \
#define LOG_SIMPLE_MSG_LEN \
ROUND_UP(sizeof(struct log_msg2_hdr) + \
sizeof(struct cbprintf_package_hdr_ext), sizeof(long long))
#endif
@ -170,7 +170,6 @@ ZTEST(test_log_api, test_log_various_messages)
log_setup(false);
#ifdef CONFIG_LOG2
unsigned long long ull = 0x1122334455667799;
long long ll = -12313213214454545;
@ -208,35 +207,6 @@ ZTEST(test_log_api, test_log_various_messages)
LOG_INF(TEST_MSG_1, f, 100, d);
#endif /* CONFIG_FPU */
#else /* CONFIG_LOG2 */
#define TEST_MSG_0 "%hhd"
#define TEST_MSG_0_PREFIX "%s: %hhd"
#define TEST_MSG_1 "%p"
if (dbg_enabled()) {
/* If prefix is enabled, add function name prefix */
if (IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_DBG)) {
snprintk(str, sizeof(str),
TEST_MSG_0_PREFIX, __func__, i);
} else {
snprintk(str, sizeof(str), TEST_MSG_0, i);
}
mock_log_frontend_record(LOG_CURRENT_MODULE_ID(), LOG_LEVEL_DBG, str);
mock_log_backend_record(&backend1, LOG_CURRENT_MODULE_ID(),
CONFIG_LOG_DOMAIN_ID, LOG_LEVEL_DBG,
exp_timestamp++, str);
}
LOG_DBG(TEST_MSG_0, i);
snprintk(str, sizeof(str), TEST_MSG_1, &i);
mock_log_frontend_record(LOG_CURRENT_MODULE_ID(), LOG_LEVEL_INF, str);
mock_log_backend_record(&backend1, LOG_CURRENT_MODULE_ID(),
CONFIG_LOG_DOMAIN_ID, LOG_LEVEL_INF,
exp_timestamp++, str);
LOG_INF(TEST_MSG_1, &i);
#endif
snprintk(str, sizeof(str), "wrn %s", dstr);
mock_log_frontend_record(LOG_CURRENT_MODULE_ID(), LOG_LEVEL_WRN, str);
mock_log_backend_record(&backend1, LOG_CURRENT_MODULE_ID(),
@ -364,14 +334,7 @@ ZTEST(test_log_api, test_log_backend_runtime_filtering)
static size_t get_max_hexdump(void)
{
if (IS_ENABLED(CONFIG_LOG2)) {
return CONFIG_LOG_BUFFER_SIZE - sizeof(struct log_msg2_hdr);
}
uint32_t msgs_in_buf = CONFIG_LOG_BUFFER_SIZE/sizeof(union log_msg_chunk);
return LOG_MSG_HEXDUMP_BYTES_HEAD_CHUNK +
HEXDUMP_BYTES_CONT_MSG * (msgs_in_buf - 1);
return CONFIG_LOG_BUFFER_SIZE - sizeof(struct log_msg2_hdr);
}
#if defined(CONFIG_ARCH_POSIX)
@ -382,31 +345,29 @@ static size_t get_max_hexdump(void)
static size_t get_long_hexdump(void)
{
if (IS_ENABLED(CONFIG_LOG2)) {
size_t extra_msg_sz = 0;
size_t extra_hexdump_sz = 0;
size_t extra_msg_sz = 0;
size_t extra_hexdump_sz = 0;
if (IS_ENABLED(CONFIG_LOG2_USE_TAGGED_ARGUMENTS)) {
/* First message with 2 arguments => 2 tags */
extra_msg_sz = 2 * sizeof(int);
if (IS_ENABLED(CONFIG_LOG2_USE_TAGGED_ARGUMENTS)) {
/* First message with 2 arguments => 2 tags */
extra_msg_sz = 2 * sizeof(int);
/*
* Hexdump with an implicit "%s" and the "hexdump" string
* as argument => 1 tag.
*/
extra_hexdump_sz = sizeof(int);
}
return CONFIG_LOG_BUFFER_SIZE -
/* First message */
ROUND_UP(LOG2_SIMPLE_MSG_LEN + 2 * sizeof(int) + STR_SIZE("test %d %d") +
extra_msg_sz,
sizeof(long long)) -
/* Hexdump message excluding data */
ROUND_UP(LOG2_SIMPLE_MSG_LEN + STR_SIZE("hexdump") + extra_hexdump_sz,
sizeof(long long)) - 2 * sizeof(int);
/*
* Hexdump with an implicit "%s" and the "hexdump" string
* as argument => 1 tag.
*/
extra_hexdump_sz = sizeof(int);
}
return CONFIG_LOG_BUFFER_SIZE -
/* First message */
ROUND_UP(LOG_SIMPLE_MSG_LEN + 2 * sizeof(int) + STR_SIZE("test %d %d") +
extra_msg_sz,
sizeof(long long)) -
/* Hexdump message excluding data */
ROUND_UP(LOG_SIMPLE_MSG_LEN + STR_SIZE("hexdump") + extra_hexdump_sz,
sizeof(long long)) - 2 * sizeof(int);
uint32_t msgs_in_buf = (uint32_t)CONFIG_LOG_BUFFER_SIZE / sizeof(union log_msg_chunk);
return LOG_MSG_HEXDUMP_BYTES_HEAD_CHUNK +
@ -473,20 +434,13 @@ ZTEST(test_log_api, test_log_overflow)
mock_log_frontend_record(LOG_CURRENT_MODULE_ID(), LOG_LEVEL_INF, "test");
mock_log_frontend_generic_record(LOG_CURRENT_MODULE_ID(), CONFIG_LOG_DOMAIN_ID,
LOG_LEVEL_INF, "test", data, hexdump_len + 1);
if (IS_ENABLED(CONFIG_LOG2_DEFERRED)) {
/* Log2 allocation is not destructive if request exceeds the
* capacity.
*/
mock_log_backend_record(&backend1, LOG_CURRENT_MODULE_ID(),
CONFIG_LOG_DOMAIN_ID, LOG_LEVEL_INF,
exp_timestamp, "test");
mock_log_backend_drop_record(&backend1, 1);
} else {
/* Expect big message to be dropped because it does not fit in.
* First message is also dropped in the process of finding free space.
*/
mock_log_backend_drop_record(&backend1, 2);
}
/* Log2 allocation is not destructive if request exceeds the
* capacity.
*/
mock_log_backend_record(&backend1, LOG_CURRENT_MODULE_ID(),
CONFIG_LOG_DOMAIN_ID, LOG_LEVEL_INF,
exp_timestamp, "test");
mock_log_backend_drop_record(&backend1, 1);
LOG_INF("test");
LOG_HEXDUMP_INF(data, hexdump_len + 1, "test");
@ -633,17 +587,10 @@ ZTEST(test_log_api, test_log_from_declared_module)
*/
static size_t get_short_msg_capacity(bool *remainder)
{
if (IS_ENABLED(CONFIG_LOG2)) {
*remainder = (CONFIG_LOG_BUFFER_SIZE % LOG2_SIMPLE_MSG_LEN) ?
true : false;
return (CONFIG_LOG_BUFFER_SIZE - sizeof(int)) / LOG2_SIMPLE_MSG_LEN;
}
*remainder = (CONFIG_LOG_BUFFER_SIZE % sizeof(struct log_msg)) ?
*remainder = (CONFIG_LOG_BUFFER_SIZE % LOG_SIMPLE_MSG_LEN) ?
true : false;
return CONFIG_LOG_BUFFER_SIZE / sizeof(struct log_msg);
return (CONFIG_LOG_BUFFER_SIZE - sizeof(int)) / LOG_SIMPLE_MSG_LEN;
}
static void log_n_messages(uint32_t n_msg, uint32_t exp_dropped)
@ -876,8 +823,6 @@ static void *log_api_suite_setup(void)
(IS_ENABLED(CONFIG_LOG_MODE_IMMEDIATE) ? "Immediate" : "Deferred"));
PRINT("\t Frontend: %s\n",
IS_ENABLED(CONFIG_LOG_FRONTEND) ? "Yes" : "No");
PRINT("\t Version: %s\n",
IS_ENABLED(CONFIG_LOG2) ? "v2" : "v1");
PRINT("\t Runtime filtering: %s\n",
IS_ENABLED(CONFIG_LOG_RUNTIME_FILTERING) ? "yes" : "no");
PRINT("\t Overwrite: %s\n",

View file

@ -104,159 +104,6 @@ void mock_log_backend_validate(const struct log_backend *backend, bool panic)
zassert_equal(mock->panic, panic, NULL);
}
static void fmt_cmp(struct log_msg *msg, char *exp_str)
{
char str[128];
const char *fmt = msg->str;
uint32_t nargs = log_msg_nargs_get(msg);
log_arg_t *args = alloca(sizeof(log_arg_t)*nargs);
for (int i = 0; i < nargs; i++) {
args[i] = log_msg_arg_get(msg, i);
}
switch (log_msg_nargs_get(msg)) {
case 0:
snprintk(str, sizeof(str), fmt, NULL);
break;
case 1:
snprintk(str, sizeof(str), fmt, args[0]);
break;
case 2:
snprintk(str, sizeof(str), fmt, args[0], args[1]);
break;
case 3:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2]);
break;
case 4:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3]);
break;
case 5:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4]);
break;
case 6:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5]);
break;
case 7:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6]);
break;
case 8:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7]);
break;
case 9:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7],
args[8]);
break;
case 10:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7],
args[8], args[9]);
break;
case 11:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7],
args[8], args[9], args[10]);
break;
case 12:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7],
args[8], args[9], args[10], args[11]);
break;
case 13:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7],
args[8], args[9], args[10], args[11], args[12]);
break;
case 14:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7],
args[8], args[9], args[10], args[11], args[12],
args[13]);
break;
case 15:
snprintk(str, sizeof(str), fmt, args[0], args[1], args[2],
args[3], args[4], args[5], args[6], args[7],
args[8], args[9], args[10], args[11], args[12],
args[13], args[14]);
break;
default:
/* Unsupported number of arguments. */
__ASSERT_NO_MSG(true);
break;
}
zassert_equal(0, strcmp(str, exp_str), NULL);
}
static void hexdump_cmp(struct log_msg *msg, uint8_t *exp_data,
uint32_t exp_len, bool skip_data_check)
{
uint32_t len = msg->hdr.params.hexdump.length;
size_t offset = 0;
size_t l;
zassert_equal(len, exp_len, "Got: %u, expected: %u", len, exp_len);
if (skip_data_check) {
return;
}
do {
uint8_t d;
l = 1;
log_msg_hexdump_data_get(msg, &d, &l, offset);
if (l) {
zassert_equal(d, exp_data[offset],
"Got:%02x, Expected:%02x", d, exp_data[offset]);
}
offset += l;
} while (l > 0);
zassert_equal(offset, exp_len, NULL);
}
static void put(const struct log_backend *const backend,
struct log_msg *msg)
{
struct mock_log_backend *mock = backend->cb->ctx;
struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_proc_idx];
if (!mock->do_check) {
return;
}
mock->msg_proc_idx++;
if (!exp->check) {
return;
}
zassert_equal(msg->hdr.timestamp, exp->timestamp,
"Got: %u, expected: %u", msg->hdr.timestamp, exp->timestamp);
zassert_equal(msg->hdr.ids.level, exp->level, NULL);
zassert_equal(msg->hdr.ids.source_id, exp->source_id, NULL);
zassert_equal(msg->hdr.ids.domain_id, exp->domain_id, NULL);
if (msg->hdr.params.generic.type == LOG_MSG_TYPE_STD) {
zassert_equal(exp->data_len, 0, NULL);
fmt_cmp(msg, exp->str);
} else {
zassert_equal(0, strcmp(msg->str, exp->str), NULL);
hexdump_cmp(msg, exp->data, exp->data_len,
exp->data_len > sizeof(exp->data));
}
}
struct test_str {
char *str;
int cnt;
@ -352,73 +199,9 @@ static void dropped(const struct log_backend *const backend, uint32_t cnt)
mock->drop_cnt += cnt;
}
static void sync_string(const struct log_backend *const backend,
struct log_msg_ids src_level, uint32_t timestamp,
const char *fmt, va_list ap)
{
struct mock_log_backend *mock = backend->cb->ctx;
struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_proc_idx];
if (!mock->do_check) {
return;
}
mock->msg_proc_idx++;
if (!exp->check) {
return;
}
zassert_equal(timestamp, exp->timestamp,
"Got: %u, expected: %u", timestamp, exp->timestamp);
zassert_equal(src_level.level, exp->level, NULL);
zassert_equal(src_level.source_id, exp->source_id, NULL);
zassert_equal(src_level.domain_id, exp->domain_id, NULL);
zassert_equal(exp->data_len, 0, NULL);
char str[128];
vsnprintk(str, sizeof(str), fmt, ap);
zassert_equal(0, strcmp(str, exp->str), NULL);
}
static void sync_hexdump(const struct log_backend *const backend,
struct log_msg_ids src_level, uint32_t timestamp,
const char *metadata, const uint8_t *data, uint32_t length)
{
struct mock_log_backend *mock = backend->cb->ctx;
struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_proc_idx];
if (!mock->do_check) {
return;
}
mock->msg_proc_idx++;
if (!exp->check) {
return;
}
zassert_equal(timestamp, exp->timestamp,
"Got: %u, expected: %u", timestamp, exp->timestamp);
zassert_equal(src_level.level, exp->level, NULL);
zassert_equal(src_level.source_id, exp->source_id, NULL);
zassert_equal(src_level.domain_id, exp->domain_id, NULL);
zassert_equal(0, strcmp(metadata, exp->str), NULL);
zassert_equal(length, exp->data_len, NULL);
if (length <= sizeof(exp->data)) {
zassert_equal(memcmp(data, exp->data, length), 0, NULL);
}
}
const struct log_backend_api mock_log_backend_api = {
.process = IS_ENABLED(CONFIG_LOG2) ? process : NULL,
.put = IS_ENABLED(CONFIG_LOG1_DEFERRED) ? put : NULL,
.put_sync_string = IS_ENABLED(CONFIG_LOG1_IMMEDIATE) ?
sync_string : NULL,
.put_sync_hexdump = IS_ENABLED(CONFIG_LOG1_IMMEDIATE) ?
sync_hexdump : NULL,
.process = process,
.panic = panic,
.init = mock_init,
.dropped = IS_ENABLED(CONFIG_LOG_MODE_IMMEDIATE) ? NULL : dropped,

View file

@ -83,77 +83,6 @@ static int out(int c, void *ctx)
return c;
}
static void log_frontend_n(struct log_msg_ids src_level, const char *fmt, ...)
{
struct mock_log_backend_msg *exp_msg = &mock.exp_msgs[mock.msg_proc_idx];
char str[128];
va_list ap;
if (mock.do_check == false) {
return;
}
mock.msg_proc_idx++;
if (!exp_msg->check) {
return;
}
zassert_equal(src_level.level, exp_msg->level, NULL);
zassert_equal(src_level.source_id, exp_msg->source_id, NULL);
zassert_equal(src_level.domain_id, exp_msg->domain_id, NULL);
va_start(ap, fmt);
vsnprintk(str, sizeof(str), fmt, ap);
va_end(ap);
zassert_equal(0, strcmp(str, exp_msg->str), NULL);
}
void log_frontend_hexdump(const char *str,
const uint8_t *data,
uint32_t length,
struct log_msg_ids src_level)
{
struct mock_log_backend_msg *exp_msg = &mock.exp_msgs[mock.msg_proc_idx];
if (mock.do_check == false) {
return;
}
zassert_equal(exp_msg->data_len, length, NULL);
if (exp_msg->data_len <= sizeof(exp_msg->data)) {
zassert_equal(memcmp(data, exp_msg->data, length), 0, NULL);
}
log_frontend_n(src_level, str);
}
void log_frontend_0(const char *str, struct log_msg_ids src_level)
{
if (mock.do_check == false) {
return;
}
log_frontend_n(src_level, str);
}
void log_frontend_1(const char *str, log_arg_t arg0, struct log_msg_ids src_level)
{
log_frontend_n(src_level, str, arg0);
}
void log_frontend_2(const char *str, log_arg_t arg0, log_arg_t arg1, struct log_msg_ids src_level)
{
if (mock.do_check == false) {
return;
}
log_frontend_n(src_level, str, arg0, arg1);
}
void log_frontend_msg(const void *source,
const struct log_msg2_desc desc,
uint8_t *package, const void *data)

View file

@ -7,104 +7,35 @@ common:
- native_posix
tests:
logging.log_api_deferred_overflow_rt_filter:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
- CONFIG_LOG_RUNTIME_FILTERING=y
logging.log_api_deferred_overflow:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
logging.log_api_deferred_no_overflow:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=n
logging.log_api_deferred_static_filter:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
logging.log_api_deferred_func_prefix:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
- CONFIG_LOG_DETECT_MISSED_STRDUP=n
logging.log_api_immediate:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_IMMEDIATE=y
logging.log_api_immediate_rt_filter:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_LOG_RUNTIME_FILTERING=y
logging.log_api_immediate_static_filter:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
logging.log_api_frontend_dbg:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_FRONTEND=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
logging.log_api_frontend:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_FRONTEND=y
logging.log_api_frontend_no_backends:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_FRONTEND=y
- CONFIG_LOG_BACKEND_UART=n
- CONFIG_LOG_BACKEND_RTT=n
- CONFIG_LOG_BACKEND_NATIVE_POSIX=n
- CONFIG_LOG_BACKEND_XTENSA_SIM=n
extra_args: EXTRA_CPPFLAGS=-DNO_BACKENDS=1
logging.log2_api_deferred_overflow_rt_filter:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
- CONFIG_LOG_RUNTIME_FILTERING=y
logging.log2_api_deferred_overflow:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
logging.log2_api_deferred_no_overflow:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=n
logging.log2_api_deferred_static_filter:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
logging.log2_api_deferred_printk:
logging.log_api_deferred_printk:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -114,7 +45,7 @@ tests:
#When LOG_PRINTK is enabled, thread must process otherwise test output would be lost.
- CONFIG_LOG_PROCESS_THREAD=y
logging.log2_api_deferred_func_prefix:
logging.log_api_deferred_func_prefix:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -122,14 +53,14 @@ tests:
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
logging.log2_api_deferred_64b_timestamp:
logging.log_api_deferred_64b_timestamp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_TIMESTAMP_64BIT=y
logging.log2_api_deferred_override_level:
logging.log_api_deferred_override_level:
# Testing on selected platforms as it enables all logs in the application
# and it cannot be handled on many platforms.
platform_allow: qemu_cortex_m3 qemu_cortex_a9 native_posix
@ -137,7 +68,7 @@ tests:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_OVERRIDE_LEVEL=4
logging.log2_api_deferred_override_level_rt_filtering:
logging.log_api_deferred_override_level_rt_filtering:
# Testing on selected platforms as it enables all logs in the application
# and it cannot be handled on many platforms.
platform_allow: qemu_cortex_m3 qemu_cortex_a9 native_posix
@ -146,34 +77,34 @@ tests:
- CONFIG_LOG_RUNTIME_FILTERING=y
- CONFIG_LOG_OVERRIDE_LEVEL=4
logging.log2_api_immediate:
logging.log_api_immediate:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_IMMEDIATE=y
logging.log2_api_immediate_printk:
logging.log_api_immediate_printk:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_LOG_PRINTK=y
logging.log2_api_immediate_rt_filter:
logging.log_api_immediate_rt_filter:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_LOG_RUNTIME_FILTERING=y
logging.log2_api_immediate_static_filter:
logging.log_api_immediate_static_filter:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
logging.log2_api_immediate_64b_timestamp:
logging.log_api_immediate_64b_timestamp:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -211,7 +142,7 @@ tests:
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_LOG_OVERRIDE_LEVEL=4
logging.log2_api_deferred_override_level_rt_filtering:
logging.log_api_deferred_override_level_rt_filtering:
# Testing on selected platforms as it enables all logs in the application
# and it cannot be handled on many platforms.
platform_allow: qemu_cortex_m3 qemu_cortex_a9 native_posix
@ -240,111 +171,31 @@ tests:
extra_args: EXTRA_CPPFLAGS=-DNO_BACKENDS=1
logging.log_api_deferred_overflow_rt_filter_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
- CONFIG_LOG_RUNTIME_FILTERING=y
- CONFIG_CPLUSPLUS=y
logging.log_api_deferred_overflow_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
- CONFIG_CPLUSPLUS=y
logging.log_api_deferred_no_overflow_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=n
- CONFIG_CPLUSPLUS=y
logging.log_api_deferred_static_filter_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_CPLUSPLUS=y
logging.log_api_deferred_func_prefix_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
- CONFIG_LOG_DETECT_MISSED_STRDUP=n
- CONFIG_CPLUSPLUS=y
logging.log_api_immediate_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_CPLUSPLUS=y
logging.log_api_immediate_rt_filter_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_LOG_RUNTIME_FILTERING=y
- CONFIG_CPLUSPLUS=y
logging.log_api_immediate_static_filter_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_CPLUSPLUS=y
logging.log_api_frontend_dbg_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_FRONTEND=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_CPLUSPLUS=y
logging.log_api_frontend_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_FRONTEND=y
- CONFIG_CPLUSPLUS=y
logging.log_api_frontend_no_backends_cpp:
extra_configs:
- CONFIG_LOG1=y
- CONFIG_LOG_FRONTEND=y
- CONFIG_LOG_BACKEND_UART=n
- CONFIG_LOG_BACKEND_RTT=n
- CONFIG_LOG_BACKEND_NATIVE_POSIX=n
- CONFIG_LOG_BACKEND_XTENSA_SIM=n
- CONFIG_CPLUSPLUS=y
extra_args: EXTRA_CPPFLAGS=-DNO_BACKENDS=1
logging.log2_api_deferred_overflow_rt_filter_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
- CONFIG_LOG_RUNTIME_FILTERING=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_deferred_overflow_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_deferred_no_overflow_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_LOG_MODE_OVERFLOW=n
- CONFIG_CPLUSPLUS=y
logging.log2_api_deferred_static_filter_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -352,7 +203,7 @@ tests:
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_deferred_printk_cpp:
logging.log_api_deferred_printk_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -363,7 +214,7 @@ tests:
- CONFIG_LOG_PROCESS_THREAD=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_deferred_func_prefix_cpp:
logging.log_api_deferred_func_prefix_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -372,7 +223,7 @@ tests:
- CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_deferred_64b_timestamp_cpp:
logging.log_api_deferred_64b_timestamp_cpp:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -380,14 +231,14 @@ tests:
- CONFIG_LOG_TIMESTAMP_64BIT=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_immediate_cpp:
logging.log_api_immediate_cpp:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_immediate_printk_cpp:
logging.log_api_immediate_printk_cpp:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -395,7 +246,7 @@ tests:
- CONFIG_LOG_PRINTK=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_immediate_rt_filter_cpp:
logging.log_api_immediate_rt_filter_cpp:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -403,7 +254,7 @@ tests:
- CONFIG_LOG_RUNTIME_FILTERING=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_immediate_static_filter_cpp:
logging.log_api_immediate_static_filter_cpp:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -411,7 +262,7 @@ tests:
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_CPLUSPLUS=y
logging.log2_api_immediate_64b_timestamp_cpp:
logging.log_api_immediate_64b_timestamp_cpp:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
@ -465,7 +316,7 @@ tests:
- CONFIG_CPLUSPLUS=y
extra_args: EXTRA_CPPFLAGS=-DNO_BACKENDS=1
logging.log2_api_deferred_overflow_rt_filter.tagged_args:
logging.log_api_deferred_overflow_rt_filter.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -475,7 +326,7 @@ tests:
- CONFIG_LOG_RUNTIME_FILTERING=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_overflow.tagged_args:
logging.log_api_deferred_overflow.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -484,7 +335,7 @@ tests:
- CONFIG_LOG_MODE_OVERFLOW=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_no_overflow.tagged_args:
logging.log_api_deferred_no_overflow.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -493,7 +344,7 @@ tests:
- CONFIG_LOG_MODE_OVERFLOW=n
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_static_filter.tagged_args:
logging.log_api_deferred_static_filter.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -502,7 +353,7 @@ tests:
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_printk.tagged_args:
logging.log_api_deferred_printk.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -514,7 +365,7 @@ tests:
- CONFIG_LOG_PROCESS_THREAD=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_func_prefix.tagged_args:
logging.log_api_deferred_func_prefix.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -524,7 +375,7 @@ tests:
- CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_64b_timestamp.tagged_args:
logging.log_api_deferred_64b_timestamp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -533,7 +384,7 @@ tests:
- CONFIG_LOG_TIMESTAMP_64BIT=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_override_level.tagged_args:
logging.log_api_deferred_override_level.tagged_args:
# Testing on selected platforms as it enables all logs in the application
# and it cannot be handled on many platforms.
platform_allow: qemu_cortex_m3 qemu_cortex_a9
@ -543,7 +394,7 @@ tests:
- CONFIG_LOG_OVERRIDE_LEVEL=4
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_override_level_rt_filtering.tagged_args:
logging.log_api_deferred_override_level_rt_filtering.tagged_args:
# Testing on selected platforms as it enables all logs in the application
# and it cannot be handled on many platforms.
platform_allow: qemu_cortex_m3 qemu_cortex_a9
@ -554,7 +405,7 @@ tests:
- CONFIG_LOG_OVERRIDE_LEVEL=4
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate.tagged_args:
logging.log_api_immediate.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -562,7 +413,7 @@ tests:
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_printk.tagged_args:
logging.log_api_immediate_printk.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -571,7 +422,7 @@ tests:
- CONFIG_LOG_PRINTK=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_rt_filter.tagged_args:
logging.log_api_immediate_rt_filter.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -580,7 +431,7 @@ tests:
- CONFIG_LOG_RUNTIME_FILTERING=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_static_filter.tagged_args:
logging.log_api_immediate_static_filter.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -589,7 +440,7 @@ tests:
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_64b_timestamp.tagged_args:
logging.log_api_immediate_64b_timestamp.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -598,7 +449,7 @@ tests:
- CONFIG_LOG_TIMESTAMP_64BIT=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_overflow_rt_filter_cpp.tagged_args:
logging.log_api_deferred_overflow_rt_filter_cpp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -609,7 +460,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_overflow_cpp.tagged_args:
logging.log_api_deferred_overflow_cpp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -619,7 +470,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_no_overflow_cpp.tagged_args:
logging.log_api_deferred_no_overflow_cpp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -629,7 +480,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_static_filter_cpp.tagged_args:
logging.log_api_deferred_static_filter_cpp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -639,7 +490,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_printk_cpp.tagged_args:
logging.log_api_deferred_printk_cpp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -652,7 +503,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_func_prefix_cpp.tagged_args:
logging.log_api_deferred_func_prefix_cpp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -663,7 +514,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_deferred_64b_timestamp_cpp.tagged_args:
logging.log_api_deferred_64b_timestamp_cpp.tagged_args:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -673,7 +524,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_cpp.tagged_args:
logging.log_api_immediate_cpp.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -682,7 +533,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_printk_cpp.tagged_args:
logging.log_api_immediate_printk_cpp.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -692,7 +543,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_rt_filter_cpp.tagged_args:
logging.log_api_immediate_rt_filter_cpp.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -702,7 +553,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_static_filter_cpp.tagged_args:
logging.log_api_immediate_static_filter_cpp.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc
@ -712,7 +563,7 @@ tests:
- CONFIG_CPLUSPLUS=y
- CONFIG_LOG2_USE_TAGGED_ARGUMENTS=y
logging.log2_api_immediate_64b_timestamp_cpp.tagged_args:
logging.log_api_immediate_64b_timestamp_cpp.tagged_args:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
toolchain_exclude: xcc