feat: identify userspace logs by user and image
This commit is contained in:
@@ -239,7 +239,7 @@ namespace montauk::abi {
|
||||
static constexpr uint64_t SYS_SETENVIRON = 172;
|
||||
static constexpr uint64_t SYS_SPAWN_ENV = 173;
|
||||
|
||||
static constexpr uint64_t SYS_LOG_WRITE = 176; // (componentName, logMessage) -> 0
|
||||
static constexpr uint64_t SYS_LOG_WRITE = 176; // (logMessage) -> 0
|
||||
|
||||
// Tunable parameters (for SYS_SDR_SETPARAM / SYS_SDR_GETPARAM).
|
||||
static constexpr int SDR_PARAM_FREQ = 0; // center frequency, Hz
|
||||
|
||||
@@ -434,8 +434,8 @@ namespace montauk {
|
||||
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);
|
||||
inline int64_t write_log(const char* logMessage) {
|
||||
return syscall1(montauk::abi::SYS_LOG_WRITE, (uint64_t)logMessage);
|
||||
}
|
||||
|
||||
// I/O redirection
|
||||
|
||||
Reference in New Issue
Block a user