MOS Source Code
|
#include "mos/assert.h"
#include "mos/misc/kallsyms.h"
#include "mos/platform/platform.h"
#include "mos/tasks/process.h"
#include "mos/tasks/task_types.h"
#include "mos/tasks/thread.h"
#include <mos/types.h>
#include <mos_stdio.h>
Go to the source code of this file.
Macros | |
#define | current (**pformat) |
#define | peek_next (*(*pformat + 1)) |
#define | shift_next ((void) ((*pformat)++)) |
#define | unshift_next ((void) ((*pformat)--)) |
#define | wrap_print(...) |
#define | wrap_printed(x) |
#define | null_check() |
Functions | |
static size_t | do_print_vmflags (char *buf, size_t size, vm_flags flags) |
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. | |
#define current (**pformat) |
Referenced by vsnprintf_do_pointer_kernel().
#define peek_next (*(*pformat + 1)) |
Referenced by vsnprintf_do_pointer_kernel().
#define shift_next ((void) ((*pformat)++)) |
Referenced by vsnprintf_do_pointer_kernel().
#define unshift_next ((void) ((*pformat)--)) |
#define wrap_print | ( | ... | ) |
Referenced by vsnprintf_do_pointer_kernel().
#define wrap_printed | ( | x | ) |
Referenced by vsnprintf_do_pointer_kernel().
#define null_check | ( | ) |
Referenced by vsnprintf_do_pointer_kernel().
Definition at line 13 of file stdio_kernel_ext.c.
Referenced by vsnprintf_do_pointer_kernel().
Kernel's extension to vsnprintf, 'p' format specifier.
Supported extensions are listed below:
'ps' prints a kernel symbol name, with offset if applicable. e.g. "do_fork (+0x123)" 'pt' prints a thread_t object. e.g.: "[p123:my_process]" 'pp' prints a process_t object. e.g.: "[t123:my_thread]" 'pvf' prints vm_flags_t flag, only the r/w/x bits are printed for general purpose. e.g.: "rwx" / "r--" / "rw-" / "--x" 'pvm' prints a vmap_t object. e.g.: "{ 0x123000-0x123fff, rwx, on_fault=0x12345678 }" 'pio' prints an io_t object. e.g.: "{ 'file.txt', offset=0x12345678 }"
Definition at line 41 of file stdio_kernel_ext.c.
Referenced by vsnprintf().