feat: add userspace system logging, rename klog to syslog, rename relevant syscalls and API functions
This commit is contained in:
@@ -430,8 +430,12 @@ namespace montauk {
|
||||
}
|
||||
|
||||
// Kernel log
|
||||
inline int64_t read_klog(char* buf, uint64_t size) {
|
||||
return syscall2(montauk::abi::SYS_KLOG, (uint64_t)buf, size);
|
||||
inline int64_t read_log(char* buf, uint64_t size) {
|
||||
return syscall2(montauk::abi::SYS_LOG, (uint64_t)buf, size);
|
||||
}
|
||||
|
||||
inline int64_t write_log(const char* userspaceComponent, const char* logMessage) {
|
||||
return syscall2(montauk::abi::SYS_LOG_WRITE, (uint64_t)userspaceComponent, (uint64_t)logMessage);
|
||||
}
|
||||
|
||||
// I/O redirection
|
||||
|
||||
Reference in New Issue
Block a user