![]() |
MOS Source Code
|
#include "mos/syslog/debug.hpp"#include "mos/syslog/syslog.hpp"#include <mos/mos_global.h>#include <mos/types.hpp>#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 | |
| void | print_to_console (Console *con, LogLevel loglevel, const char *message, size_t len) |
| void | lvprintk (LogLevel loglevel, const char *fmt, va_list args) |
| void | printk (const char *format,...) |
| void | lprintk (LogLevel loglevel, const char *format,...) |
| bool | printk_unquiet (void) |
| void | printk_set_quiet (bool quiet) |
| #define pr_fmt | ( | fmt | ) |
Definition at line 13 of file printk.hpp.
| #define emit_syslog | ( | level, | |
| feat, | |||
| fmt, | |||
| ... ) |
Definition at line 16 of file printk.hpp.
| #define emit_syslog_nofeat | ( | level, | |
| fmt, | |||
| ... ) |
Definition at line 17 of file printk.hpp.
| #define lprintk_debug_wrapper | ( | feat, | |
| level, | |||
| fmt, | |||
| ... ) |
Definition at line 19 of file printk.hpp.
| #define pr_dinfo2 | ( | feat, | |
| fmt, | |||
| ... ) |
Definition at line 27 of file printk.hpp.
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_ref(), dentry_ref_up_to(), dentry_unref_one_norelease(), dispatch_syscall(), dmabuf_allocate(), dmabuf_free(), dmabuf_share(), dmabuf_unshare(), do_handle_sdt_header(), do_invoke_setup(), enter_scheduler(), extract_exact_range(), handle_kernel_panic(), inode_try_drop(), ioapic_enable_with_mode(), ioapic_init(), 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(), naive_sched_init(), naive_sched_remove_thread(), naive_sched_select_next(), 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(), reschedule(), scheduler_wake_thread(), signal_do_ignore(), signal_exit_to_user_prepare(), signal_exit_to_user_prepare(), signal_on_returned(), thread_destroy(), thread_new(), tmpfs_create_inode(), try_merge(), unblock_scheduler(), x86_cpu_setup_xsave_area(), and x86_setup_direct_map().
| #define pr_dinfo | ( | feat, | |
| fmt, | |||
| ... ) |
Definition at line 28 of file printk.hpp.
Referenced by ap_entry(), create_idle_task(), naive_sched_add_thread(), naive_sched_select_next(), setup_sane_environment(), and thread_exit_locked().
| #define pr_demph | ( | feat, | |
| fmt, | |||
| ... ) |
Definition at line 29 of file printk.hpp.
| #define pr_dwarn | ( | feat, | |
| fmt, | |||
| ... ) |
Definition at line 30 of file printk.hpp.
Referenced by madt_parse_table(), MOS_SETUP(), scheduler_init(), and try_handle_kernel_panics().
| #define pr_demerg | ( | feat, | |
| fmt, | |||
| ... ) |
Definition at line 31 of file printk.hpp.
| #define pr_dfatal | ( | feat, | |
| fmt, | |||
| ... ) |
Definition at line 32 of file printk.hpp.
| #define pr_dcont | ( | feat, | |
| fmt, | |||
| ... ) |
Definition at line 33 of file printk.hpp.
Referenced by dispatch_syscall(), x86_cpu_setup_xsave_area(), x86_xrstor_thread(), and x86_xsave_thread().
| #define pr_info | ( | fmt, | |
| ... ) |
Definition at line 35 of file printk.hpp.
Referenced by buddy_dump_all(), dump_fdt_node(), dump_process(), handle_kernel_panic(), hexdump(), ioapic_init(), lapic_memory_setup(), mm_dump_pagetable(), MOS_STATIC_ASSERT(), pagetable_do_dump(), platform_ap_entry(), platform_dump_regs(), platform_dump_stack(), pmm_dump_lists(), power_shutdown(), riscv64_trap_handler(), x86_dump_stack_at(), and x86_keyboard_handler().
| #define pr_info2 | ( | fmt, | |
| ... ) |
Definition at line 36 of file printk.hpp.
Referenced by acpi_find_rsdp(), dump_process(), io_poll(), limine_entry(), mos_start_kernel(), pagetable_do_dump(), platform_dump_regs(), platform_startup_early(), process_dump_mmaps(), and stat_receiver().
| #define pr_emph | ( | fmt, | |
| ... ) |
Definition at line 37 of file printk.hpp.
Referenced by handle_kernel_panic(), mm_dump_current_pagetable(), MOS_SETUP(), mos_test_engine_run_tests(), platform_dump_regs(), platform_dump_thread_kernel_stack(), and x86_handle_nmi().
| #define pr_warn | ( | fmt, | |
| ... ) |
Definition at line 38 of file printk.hpp.
Referenced by cpio_mount(), dentry_check_refstat(), do_invoke_setup(), dump_process(), 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(), platform_ap_entry(), platform_arch_syscall(), platform_dump_thread_kernel_stack(), process_do_execveat(), process_wait_for_pid(), sysfs_register_file(), thread_get(), thread_new(), thread_wait_for_tid(), vfs_write_pagecache(), vm_protect(), waitlist_close(), x86_dump_stack_at(), and x86_interrupt_entry().
| #define pr_emerg | ( | fmt, | |
| ... ) |
Definition at line 39 of file printk.hpp.
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(), do_signal_exit_to_user_prepare(), handle_kernel_panic(), io_poll(), is_fatal_signal(), log_location(), Console::on_read(), process_do_execveat(), signal_get_next_pending(), signal_send_to_process(), signal_send_to_thread(), thread_new(), userfs_manager_server_exec(), x86_dump_stack_at(), x86_handle_exception(), and Thread::~Thread().
| #define pr_fatal | ( | fmt, | |
| ... ) |
Definition at line 40 of file printk.hpp.
Referenced by handle_kernel_panic(), and kthread_create_no_sched().
| #define pr_cont | ( | fmt, | |
| ... ) |
Definition at line 41 of file printk.hpp.
Referenced by dump_fdt_node(), dump_list(), handle_kernel_panic(), hexdump(), limine_entry(), and print_property_value().
Definition at line 68 of file printk.cpp.
Referenced by lvprintk(), and SyslogStreamWriter::~SyslogStreamWriter().
Definition at line 78 of file printk.cpp.
Referenced by lprintk(), and printk().
| void printk | ( | const char * | format, |
| ... ) |
Definition at line 104 of file printk.cpp.
Referenced by do_print_syslog(), mos_kwarn(), and test_engine_warning_handler().
Definition at line 92 of file printk.cpp.
Referenced by handle_kernel_panic().
Definition at line 99 of file printk.cpp.