• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NVIDIA / nvrc / 20316091725

17 Dec 2025 08:19PM UTC coverage: 36.443% (+0.08%) from 36.364%
20316091725

Pull #80

github

web-flow
Merge 5d0e89226 into 2078f9129
Pull Request #80: Remove hotplug

0 of 16 new or added lines in 3 files covered. (0.0%)

5 existing lines in 3 files now uncovered.

125 of 343 relevant lines covered (36.44%)

0.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/kmsg.rs
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright (c) NVIDIA CORPORATION
3

4
use anyhow::{Context, Result};
5
use std::fs::{self, File, OpenOptions};
6

UNCOV
7
pub fn kernlog_setup() -> Result<()> {
×
8
    kernlog::init().context("kernel log init")?;
×
9
    log::set_max_level(log::LevelFilter::Off);
×
10
    // Write large buffer size to related kernel params
11
    for path in [
×
12
        "/proc/sys/net/core/rmem_default",
13
        "/proc/sys/net/core/wmem_default",
14
        "/proc/sys/net/core/rmem_max",
15
        "/proc/sys/net/core/wmem_max",
16
    ] {
17
        fs::write(path, b"16777216").with_context(|| format!("write {}", path))?;
×
18
    }
19
    Ok(())
×
20
}
21

22
pub fn kmsg() -> Result<File> {
×
23
    let path = if log_enabled!(log::Level::Debug) {
×
24
        "/dev/kmsg"
×
25
    } else {
26
        "/dev/null"
×
27
    };
28
    OpenOptions::new()
×
29
        .write(true)
30
        .open(path)
×
31
        .with_context(|| format!("open {}", path))
×
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc