44#define current (**pformat)
45#define peek_next (*(*pformat + 1))
46#define shift_next ((void) ((*pformat)++))
47#define unshift_next ((void) ((*pformat)--))
49#define wrap_print(...) wrap_printed(snprintf(buf, *size, __VA_ARGS__))
50#define wrap_printed(x) \
53 const size_t _printed = x; \
54 buf += _printed, ret += _printed; \
63 if (unlikely(ptr == 0)) \
65 wrap_print("(null)"); \
96 default:
return false;
189 default:
return false;
192 default:
return false;
#define MOS_ASSERT_X(cond, msg,...)
#define MOS_UNREACHABLE()
#define MOS_PATH_MAX_LENGTH
void io_get_name(const io_t *io, char *buf, size_t size)
const kallsyms_t * kallsyms_get_symbol(ptr_t addr)
int snprintf(char *__restrict str, size_t size, const char *__restrict format,...)
should_inline bool process_is_valid(const process_t *process)
size_t vsnprintf_do_pointer_kernel(char *buf, size_t *size, const char **pformat, ptr_t ptr)
Kernel's extension to vsnprintf, 'p' format specifier.
static size_t do_print_vmflags(char *buf, size_t size, vm_flags flags)
vmfault_handler_t on_fault
should_inline bool thread_is_valid(const thread_t *thread)