import upstream maccel baseline
Tests / test_core_function (push) Failing after 12s

This commit is contained in:
2026-03-24 12:10:31 +00:00
parent 6e948d7b39
commit 5f1254d11a
108 changed files with 18930 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifdef DEBUG
#define DEBUG_TEST 1
#else
#define DEBUG_TEST 0
#endif
#ifdef __KERNEL__
#include <linux/printk.h>
#define dbg(fmt, ...) dbg_k(fmt, __VA_ARGS__)
#else
#include <stdio.h>
#define dbg(fmt, ...) dbg_std(fmt, __VA_ARGS__)
#endif
#if defined __KERNEL__ && defined __clang__
#define dbg_k(fmt, ...) \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wstatic-local-in-inline\"") do { \
if (DEBUG_TEST) \
printk(KERN_INFO "%s:%d:%s(): " #fmt "\n", __FILE__, __LINE__, __func__, \
__VA_ARGS__); \
} \
while (0) \
_Pragma("clang diagnostic pop")
#elif defined __KERNEL__
#define dbg_k(fmt, ...) \
do { \
if (DEBUG_TEST) \
printk(KERN_INFO "%s:%d:%s(): " #fmt "\n", __FILE__, __LINE__, __func__, \
__VA_ARGS__); \
} while (0)
#else
#define dbg_std(fmt, ...) \
do { \
if (DEBUG_TEST) \
fprintf(stderr, "%s:%d:%s(): " fmt "\n", __FILE__, __LINE__, __func__, \
__VA_ARGS__); \
} while (0)
#endif