MOS Source Code
Loading...
Searching...
No Matches
printk.h File Reference
#include "mos/syslog/debug.h"
#include "mos/syslog/syslog.h"
#include <mos/mos_global.h>
#include <mos/types.h>
#include <stdarg.h>
+ Include dependency graph for printk.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)
 

Macro Definition Documentation

◆ pr_fmt

#define pr_fmt ( fmt)
Value:
u32 const char * fmt
Definition assert.h:36

Definition at line 13 of file printk.h.

◆ emit_syslog

#define emit_syslog ( level,
feat,
fmt,
... )
Value:
do_syslog(level, current_thread, __FILE_NAME__, __func__, __LINE__, &mos_debug_info.feat, fmt, ##__VA_ARGS__)
#define current_thread
Definition platform.h:30
long do_syslog(loglevel_t level, thread_t *thread, const char *file, const char *func, int line, debug_info_entry *feat, const char *fmt,...)
Definition syslog.c:16

Definition at line 16 of file printk.h.

◆ emit_syslog_nofeat

#define emit_syslog_nofeat ( level,
fmt,
... )
Value:
do_syslog(level, current_thread, __FILE_NAME__, __func__, __LINE__, NULL, fmt, ##__VA_ARGS__)
#define NULL
Definition pb_syshdr.h:46

Definition at line 17 of file printk.h.

◆ lprintk_debug_wrapper

#define lprintk_debug_wrapper ( feat,
level,
fmt,
... )
Value:
do \
{ \
if (mos_debug_enabled(feat)) \
emit_syslog(level, feat, fmt, ##__VA_ARGS__); \
} while (0)
#define mos_debug_enabled(name)
Definition debug.h:71

Definition at line 19 of file printk.h.

◆ pr_dinfo2

#define pr_dinfo2 ( feat,
fmt,
... )
Value:
#define pr_fmt(fmt)
Definition printk.h:13
#define lprintk_debug_wrapper(feat, level, fmt,...)
Definition printk.h:19
@ MOS_LOG_INFO2
Definition syslog.h:15

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().

◆ pr_dinfo

#define pr_dinfo ( feat,
fmt,
... )

◆ pr_demph

#define pr_demph ( feat,
fmt,
... )
Value:
@ MOS_LOG_EMPH
Definition syslog.h:13

Definition at line 29 of file printk.h.

Referenced by mm_handle_fault(), process_allocate(), and process_do_fork().

◆ pr_dwarn

◆ pr_demerg

#define pr_demerg ( feat,
fmt,
... )
Value:
@ MOS_LOG_EMERG
Definition syslog.h:11

Definition at line 31 of file printk.h.

◆ pr_dfatal

#define pr_dfatal ( feat,
fmt,
... )
Value:
@ MOS_LOG_FATAL
Definition syslog.h:10

Definition at line 32 of file printk.h.

◆ pr_dcont

#define pr_dcont ( feat,
fmt,
... )
Value:
do { if (mos_debug_enabled(feat)) pr_cont(fmt, ##__VA_ARGS__); } while (0)
#define pr_cont(fmt,...)
Definition printk.h:41

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().

◆ pr_info

◆ pr_info2

◆ pr_emph

◆ pr_warn

◆ pr_emerg

◆ pr_fatal

#define pr_fatal ( fmt,
... )
Value:

Definition at line 40 of file printk.h.

Referenced by try_handle_kernel_panics_at().

◆ pr_cont

#define pr_cont ( fmt,
... )

Function Documentation

◆ lvprintk()

__BEGIN_DECLS void lvprintk ( loglevel_t loglevel,
const char * fmt,
va_list args )

Definition at line 78 of file printk.c.

Referenced by lprintk(), and printk().

+ Here is the call graph for this function:

◆ printk()

void printk ( const char * format,
... )

Definition at line 119 of file printk.c.

+ Here is the call graph for this function:

◆ lprintk()

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().

+ Here is the call graph for this function:

◆ printk_unquiet()

bool printk_unquiet ( void )

Definition at line 99 of file printk.c.

Referenced by try_handle_kernel_panics_at().

◆ printk_set_quiet()

void printk_set_quiet ( bool quiet)

Definition at line 106 of file printk.c.