28 #include <l4/sys/kdebug.h>
37 enum { TBUF_LOG = 0x201 };
38 return l4_error(__kdebug_text(TBUF_LOG, text, __builtin_strlen(text)));
45 enum { TBUF_LOG_3VAL = 0x204 };
46 return l4_error(__kdebug_3_text(TBUF_LOG_3VAL, text,
47 __builtin_strlen(text), v1, v2, v3));
53 enum { TBUF_CLEAR = 0x202 };
54 __kdebug_op(TBUF_CLEAR);
60 enum { TBUF_DUMP = 0x203 };
61 __kdebug_op(TBUF_DUMP);
67 enum { TBUF_LOG_BIN = 0x208 };
68 return l4_error(__kdebug_text(TBUF_LOG_BIN, (
const char *)data, 24));
l4_umword_t fiasco_tbuf_log(const char *text)
Create new trace-buffer entry with describing <text>.
void fiasco_tbuf_clear(void)
Clear trace-buffer.
l4_umword_t fiasco_tbuf_log_3val(const char *text, l4_umword_t v1, l4_umword_t v2, l4_umword_t v3)
Create new trace-buffer entry with describing <text> and three additional values.
l4_umword_t fiasco_tbuf_log_binary(const unsigned char *data)
Create new trace-buffer entry with binary data.
void fiasco_tbuf_dump(void)
Dump trace-buffer to kernel console.
unsigned long l4_umword_t
Unsigned machine word.
long l4_error(l4_msgtag_t tag) L4_NOTHROW
Return error code of a system call return message tag or the tag label.
Common L4 ABI Data Types.