MOS Source Code
|
#include "mos/syslog/debug.h"
#include "mos/syslog/syslog.h"
#include <mos/mos_global.h>
#include <mos/types.h>
#include <stdarg.h>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) |
#define | emit_syslog(level, feat, fmt, ...) |
#define | emit_syslog_nofeat(level, fmt, ...) |
#define | lprintk_debug_wrapper(feat, level, fmt, ...) |
#define | pr_dinfo2(feat, fmt, ...) |
#define | pr_dinfo(feat, fmt, ...) |
#define | pr_demph(feat, fmt, ...) |
#define | pr_dwarn(feat, fmt, ...) |
#define | pr_demerg(feat, fmt, ...) |
#define | pr_dfatal(feat, fmt, ...) |
#define | pr_dcont(feat, fmt, ...) |
#define | pr_info(fmt, ...) |
#define | pr_info2(fmt, ...) |
#define | pr_emph(fmt, ...) |
#define | pr_warn(fmt, ...) |
#define | pr_emerg(fmt, ...) |
#define | pr_fatal(fmt, ...) |
#define | pr_cont(fmt, ...) |
Functions | |
__BEGIN_DECLS void | lvprintk (loglevel_t loglevel, const char *fmt, va_list args) |
void | printk (const char *format,...) |
void | lprintk (loglevel_t loglevel, const char *format,...) |
bool | printk_unquiet (void) |
void | printk_set_quiet (bool quiet) |
#define pr_fmt | ( | fmt | ) |
#define emit_syslog | ( | level, | |
feat, | |||
fmt, | |||
... ) |
#define emit_syslog_nofeat | ( | level, | |
fmt, | |||
... ) |
#define lprintk_debug_wrapper | ( | feat, | |
level, | |||
fmt, | |||
... ) |
#define pr_dinfo2 | ( | feat, | |
fmt, | |||
... ) |
Definition at line 27 of file printk.h.
Referenced by __destroy_page_table(), _pmm_ref_phyframes(), _pmm_unref_phyframes(), acpi_find_rsdp(), acpi_parse_rsdt(), add_to_memmap(), blocked_reschedule(), break_the_order(), break_this_pfn(), buddy_alloc_n_exact(), buddy_free_n(), buddy_init(), buddy_reserve_n(), cpio_i_iterate_dir(), cpio_mount(), create_idle_task(), dentry_check_refstat(), dentry_lookup_child(), dentry_ref(), dentry_ref_up_to(), dentry_resolve(), dentry_resolve_follow_symlink(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), dentry_unref_one_norelease(), dispatch_syscall(), dmabuf_allocate(), dmabuf_free(), dmabuf_share(), dmabuf_unshare(), do_handle_sdt_header(), do_invoke_setup(), do_pagecache_flush(), elf_do_fill_process(), elf_map_segment(), elf_setup_main_thread(), enter_scheduler(), extract_exact_range(), futex_wait(), futex_wake(), inode_try_drop(), invoke_constructors(), io_init(), io_mmap(), io_munmap(), io_pread(), io_read(), io_ref(), io_seek(), io_tell(), io_unref(), io_write(), ioapic_enable_with_mode(), ioapic_init(), ipc_connect_to_server(), ipc_server_accept(), ipc_server_create(), kmemcache_alloc(), kmemcache_free(), kthread_create_no_sched(), lapic_memory_setup(), lapic_read32(), lapic_read64(), lapic_write32(), lapic_write64(), limine_entry(), madt_parse_table(), mm_clone_vmap_locked(), mm_do_unmap(), mm_flag_pages_locked(), mm_map_kernel_pages(), mm_map_user_pages(), mm_replace_page_locked(), mmap_anonymous(), mos_cmdline_init(), MOS_SETUP(), mos_start_kernel(), naive_sched_init(), naive_sched_remove_thread(), naive_sched_select_next(), pipe_read(), pipe_write(), pipeio_io_close(), platform_ap_entry(), platform_arch_syscall(), platform_startup_late(), pmm_allocate_frames(), pmm_find_reserved_region(), pmm_free_frames(), pmm_init(), pmm_reserve_frames(), populate_freelist(), process_destroy(), process_do_fork(), process_exit(), process_new(), process_register_signal_handler(), process_wait_for_pid(), reschedule(), scheduler_wake_thread(), signal_do_ignore(), signal_exit_to_user_prepare_syscall(), slab_allocate_mem(), slab_init(), slab_init_one(), sysfs_fops_release(), sysfs_register(), thread_destroy(), thread_new(), tmpfs_create_inode(), try_handle_kernel_panics_at(), try_merge(), unblock_scheduler(), vfs_chdirat(), vfs_do_open(), vfs_fchmodat(), vfs_fstatat(), vfs_fsync(), vfs_list_dir(), vfs_mkdir(), vfs_mount(), vfs_openat(), vfs_register_filesystem(), vfs_rmdir(), vfs_symlink(), vfs_unlinkat(), x86_cpu_setup_xsave_area(), and x86_setup_direct_map().
#define pr_dinfo | ( | feat, | |
fmt, | |||
... ) |
Definition at line 28 of file printk.h.
Referenced by ap_entry(), create_idle_task(), ipc_connect_to_server(), ipc_server_accept(), ipc_server_create(), naive_sched_add_thread(), naive_sched_select_next(), and thread_exit_locked().
#define pr_demph | ( | feat, | |
fmt, | |||
... ) |
Definition at line 29 of file printk.h.
Referenced by mm_handle_fault(), process_allocate(), and process_do_fork().
#define pr_dwarn | ( | feat, | |
fmt, | |||
... ) |
Definition at line 30 of file printk.h.
Referenced by ipc_connect_to_server(), ipc_server_create(), madt_parse_table(), MOS_SETUP(), scheduler_init(), try_handle_kernel_panics(), userfs_inode_cache_fill_cache(), userfs_inode_cache_flush_page(), userfs_iop_iterate_dir(), userfs_iop_mkdir(), userfs_iop_newfile(), userfs_iop_readlink(), userfs_iop_unlink(), and userfs_sync_inode().
#define pr_demerg | ( | feat, | |
fmt, | |||
... ) |
#define pr_dfatal | ( | feat, | |
fmt, | |||
... ) |
#define pr_dcont | ( | feat, | |
fmt, | |||
... ) |
Definition at line 33 of file printk.h.
Referenced by dispatch_syscall(), kmemcache_alloc(), mm_handle_fault(), x86_cpu_setup_xsave_area(), x86_xrstor_thread(), and x86_xsave_thread().
#define pr_info | ( | fmt, | |
... ) |
Definition at line 35 of file printk.h.
Referenced by buddy_dump_all(), dump_fdt_node(), dump_process(), hexdump(), invalid_page_fault(), ioapic_init(), lapic_memory_setup(), mm_dump_pagetable(), mos_start_kernel(), MOS_STATIC_ASSERT(), pagetable_do_dump(), platform_ap_entry(), platform_dump_regs(), platform_dump_stack(), pmm_dump_lists(), power_shutdown(), process_dump_mmaps(), riscv64_trap_handler(), try_handle_kernel_panics_at(), x86_dump_stack_at(), and x86_keyboard_handler().
#define pr_info2 | ( | fmt, | |
... ) |
Definition at line 36 of file printk.h.
Referenced by acpi_find_rsdp(), dump_process(), io_mmap_perm_check(), io_poll(), io_pread(), io_read(), io_seek(), io_write(), limine_entry(), mos_start_kernel(), pagetable_do_dump(), platform_dump_regs(), platform_startup_early(), process_dump_mmaps(), stat_receiver(), and vfs_unmount().
#define pr_emph | ( | fmt, | |
... ) |
Definition at line 37 of file printk.h.
Referenced by mm_dump_current_pagetable(), MOS_SETUP(), mos_start_kernel(), mos_test_engine_run_tests(), platform_dump_regs(), platform_dump_thread_kernel_stack(), try_handle_kernel_panics_at(), and x86_handle_nmi().
#define pr_warn | ( | fmt, | |
... ) |
Definition at line 38 of file printk.h.
Referenced by cpio_mount(), dentry_check_refstat(), do_invoke_setup(), dump_process(), elf_do_fill_process(), file_get_ops(), inode_try_drop(), io_write(), kwarn_handler_remove(), kwarn_handler_set(), madt_parse_table(), mm_do_unmap(), mmap_file(), mmap_verify_arguments(), mmstat_sysfs_pagetable_show(), mmstat_sysfs_phyframe_stat_show(), mmstat_sysfs_phyframe_stat_store(), mmstat_sysfs_store_pid(), mmstat_sysfs_vmaps_show(), mos_cmdline_init(), MOS_SETUP(), MOS_SETUP(), munmap(), pipe_close_one_end(), pipe_read(), pipe_write(), platform_ap_entry(), platform_arch_syscall(), platform_dump_thread_kernel_stack(), process_do_execveat(), process_wait_for_pid(), sysfs_register_file(), thread_new(), thread_wait_for_tid(), userfs_ensure_connected(), userfs_fsop_mount(), userfs_inode_cache_fill_cache(), userfs_inode_cache_flush_page(), userfs_iop_iterate_dir(), userfs_iop_lookup(), userfs_iop_mkdir(), userfs_iop_newfile(), userfs_iop_readlink(), userfs_iop_unlink(), userfs_sync_inode(), vfs_mount(), vfs_write_pagecache(), vm_protect(), vmap_destroy(), waitlist_close(), x86_dump_stack_at(), and x86_interrupt_entry().
#define pr_emerg | ( | fmt, | |
... ) |
Definition at line 39 of file printk.h.
Referenced by __ubsan_handle_add_overflow(), __ubsan_handle_builtin_unreachable(), __ubsan_handle_divrem_overflow(), __ubsan_handle_invalid_builtin(), __ubsan_handle_load_invalid_value(), __ubsan_handle_mul_overflow(), __ubsan_handle_negate_overflow(), __ubsan_handle_out_of_bounds(), __ubsan_handle_pointer_overflow(), __ubsan_handle_shift_out_of_bounds(), __ubsan_handle_sub_overflow(), __ubsan_handle_type_mismatch(), __ubsan_handle_vla_bound_not_positive(), buddy_alloc_n_exact(), console_io_read(), console_register(), elf_do_fill_process(), elf_fill_process(), elf_map_interpreter(), invalid_page_fault(), io_poll(), log_location(), memfd_create(), memfd_init(), mm_get_free_page_raw(), mm_get_free_pages(), platform_arch_syscall(), platform_cpu_idle(), platform_dump_current_stack(), platform_dump_regs(), platform_dump_stack(), platform_dump_thread_kernel_stack(), platform_get_time(), platform_halt_cpu(), platform_interrupt_disable(), platform_interrupt_enable(), platform_invalidate_tlb(), platform_ipi_send(), process_allocate(), process_do_execveat(), process_do_fork(), signal_get_next_pending(), signal_send_to_process(), signal_send_to_thread(), try_handle_kernel_panics_at(), userfs_manager_server_exec(), x86_dump_stack_at(), and x86_handle_exception().
#define pr_fatal | ( | fmt, | |
... ) |
#define pr_cont | ( | fmt, | |
... ) |
Definition at line 41 of file printk.h.
Referenced by dump_fdt_node(), dump_list(), hexdump(), invalid_page_fault(), limine_entry(), mos_start_kernel(), print_property_value(), and try_handle_kernel_panics_at().
__BEGIN_DECLS void lvprintk | ( | loglevel_t | loglevel, |
const char * | fmt, | ||
va_list | args ) |
void printk | ( | const char * | format, |
... ) |
void lprintk | ( | loglevel_t | loglevel, |
const char * | format, | ||
... ) |
Definition at line 111 of file printk.c.
Referenced by do_syslog(), mos_kwarn(), and test_engine_warning_handler().
Definition at line 99 of file printk.c.
Referenced by try_handle_kernel_panics_at().