/openbmc/linux/fs/proc/ |
H A D | uptime.c | 14 struct timespec64 uptime; in uptime_proc_show() local 28 ktime_get_boottime_ts64(&uptime); in uptime_proc_show() 29 timens_add_boottime(&uptime); in uptime_proc_show() 34 (unsigned long) uptime.tv_sec, in uptime_proc_show() 35 (uptime.tv_nsec / (NSEC_PER_SEC / 100)), in uptime_proc_show() 45 pde = proc_create_single("uptime", 0, NULL, uptime_proc_show); in proc_uptime_init()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-test/cmocka/ |
H A D | cmocka_1.1.7.bb | 27 install -d ${D}${libdir}/${BPN}/example/mock/uptime 31 install -m 0755 ${B}/example/mock/uptime/uptime ${D}/${libdir}/${BPN}/example/mock/uptime 32 install -m 0755 ${B}/example/mock/uptime/test_uptime ${D}/${libdir}/${BPN}/example/mock/uptime 33 …install -m 0644 ${B}/example/mock/uptime/libproc_uptime.so ${D}/${libdir}/${BPN}/example/mock/libp…
|
/openbmc/linux/tools/testing/selftests/timens/ |
H A D | procfs.c | 68 static int read_proc_uptime(struct timespec *uptime) in read_proc_uptime() argument 73 proc = fopen("/proc/uptime", "r"); in read_proc_uptime() 75 pr_perror("Unable to open /proc/uptime"); in read_proc_uptime() 84 pr_err("failed to parse /proc/uptime"); in read_proc_uptime() 89 uptime->tv_sec = up_sec; in read_proc_uptime() 90 uptime->tv_nsec = up_nsec; in read_proc_uptime() 141 pr_fail("uptime in /proc/uptime: old %ld, new %ld [%ld]", in check_uptime() 147 ksft_test_result_pass("Passed for /proc/uptime\n"); in check_uptime()
|
/openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/ |
H A D | uptime | 4 # @brief: Collect uptime information. 9 desc="uptime" 10 file_name="uptime.log" 11 command="uptime"
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-uptime-001.c | 16 // Test that boottime value in /proc/uptime and CLOCK_BOOTTIME increment 26 #include "proc-uptime.h" 33 fd = open("/proc/uptime", O_RDONLY); in main() 44 /* Is /proc/uptime monotonic ? */ in main() 50 /* Is CLOCK_BOOTTIME VS /proc/uptime monotonic ? */ in main()
|
H A D | proc-uptime-002.c | 16 // Test that boottime value in /proc/uptime and CLOCK_BOOTTIME increment 33 #include "proc-uptime.h" 62 fd = open("/proc/uptime", O_RDONLY); in main() 78 /* Is /proc/uptime monotonic ? */ in main() 84 /* Is CLOCK_BOOTTIME VS /proc/uptime monotonic ? */ in main()
|
H A D | .gitignore | 16 /proc-uptime-001 17 /proc-uptime-002
|
H A D | Makefile | 19 TEST_GEN_PROGS += proc-uptime-001 20 TEST_GEN_PROGS += proc-uptime-002
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/collectd/collectd/ |
H A D | 0001-Remove-including-sys-sysctl.h-on-glibc-based-systems.patch | 21 src/uptime.c | 2 +- 37 diff --git a/src/uptime.c b/src/uptime.c 39 --- a/src/uptime.c 40 +++ b/src/uptime.c
|
/openbmc/openbmc-test-automation/ffdc/ |
H A D | ffdc_config.yaml | 34 - 'echo -e "\n++++++++++ uptime;cat /proc/uptime ++++++++++" >> 36 - "uptime >> /tmp/OPENBMC_general.txt" 37 - "cat /proc/uptime >> /tmp/OPENBMC_general.txt" 228 - 'echo "\n++++++++++ uptime ++++++++++" >> /tmp/UBUNTU_general.txt' 229 - "uptime >> /tmp/UBUNTU_general.txt" 273 - 'echo -e "\n++++++++++ uptime ++++++++++" >> /tmp/RHEL_general.txt' 274 - "uptime >> /tmp/RHEL_general.txt" 317 - 'echo "\n++++++++++ uptime ++++++++++" >> /tmp/SLES_general.txt' 318 - "uptime >> /tmp/SLES_general.txt" 357 - 'echo "\n++++++++++ uptime ++++++++++" >> /tmp/AIX_general.txt' [all …]
|
/openbmc/openbmc-test-automation/redfish/extended/ |
H A D | test_basic_ci.robot | 66 Verify Uptime Average Against Threshold 73 ... 1 min 30 sec Check BMC Uptime Journald 93 Check BMC Uptime Journald 94 [Documentation] Check BMC journald uptime entry.
|
/openbmc/openbmc-test-automation/redfish/events/ |
H A D | test_bmc_snmp_config.robot | 175 # Reboot BMC to reset system uptime. 178 ${uptime}= Generate Error And Verify System Up Time 180 # Check if uptime is reset after reboot. 181 Should Be True ${uptime} <= 1 msg=SNMP SysUpTime is not reset on reboot 219 # Get system uptime on BMC. 220 # Example output of uptime: 223 ${cmd_output} ${stderr} ${rc}= BMC Execute Command cat /proc/uptime
|
H A D | test_bmc_snmp_trap.robot | 140 # Reboot BMC to reset system uptime. 143 ${uptime}= Generate Error And Verify System Up Time 145 # Check if uptime is reset after reboot. 146 Should Be True ${uptime} <= 1 msg=SNMP SysUpTime is not reset on reboot 310 # Get system uptime on BMC. 311 # Example output of uptime: 314 ${cmd_output} ${stderr} ${rc}= BMC Execute Command cat /proc/uptime
|
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/ |
H A D | disable-version-check.patch | 18 -my $uptime = &get_system_uptime(); 23 - $uptime && $now - $st[9] > $uptime) {
|
/openbmc/qemu/tests/functional/ |
H A D | test_arm_aspeed_ast1030.py | 72 'kernel uptime', 74 'kernel uptime', 76 'kernel uptime',
|
/openbmc/openbmc-test-automation/lib/ |
H A D | state.py | 131 "uptime", 232 "uptime", 419 "int(float(state['uptime'])) < int(state['elapsed_boot_time'])" 421 In this example, if the state dictionary's 'uptime' entry 554 "uptime", 670 uptime = "" 713 if "uptime" in req_states: 714 # Sometimes reading uptime results in a blank value. Call with 717 "bash -c 'read uptime filler 2>/dev/null < /proc/uptime" 718 + ' && [ ! -z "${uptime}" ] && echo ${uptime}\'' [all …]
|
H A D | openbmc_ffdc.py | 59 state = st.get_state(req_states=["ping", "uptime", interface]) 70 if state["uptime"] == "": 74 if not int(state[interface]) and state["uptime"] == "":
|
/openbmc/openbmc/poky/meta/recipes-extended/procps/ |
H A D | procps_4.0.4.bb | 54 bindir_progs = "free pkill pmap pgrep pwdx skill snice top uptime w" 63 ALTERNATIVE:${PN}-doc = "kill.1 uptime.1" 65 ALTERNATIVE_LINK_NAME[uptime.1] = "${mandir}/man1/uptime.1"
|
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/ |
H A D | README.md | 9 2. Uptime: uptime in wall clock time, idle process across all cores
|
H A D | metric.cpp | 358 double uptime = 0; in getUptimeMetric() local 360 auto data = readFileThenGrepIntoString("/proc/uptime"); in getUptimeMetric() 362 if (!parseProcUptime(data, uptime, idleProcessTime)) in getUptimeMetric() 364 log<level::ERR>("Error parsing /proc/uptime"); in getUptimeMetric() 367 ret.uptime = uptime; in getUptimeMetric() 380 static_cast<double>(btm.powerOnSecCounterTime) - uptime; in getUptimeMetric()
|
H A D | metricblob.proto | 26 float uptime = 1; // Uptime (wall clock time) field
|
H A D | util.cpp | 222 bool parseProcUptime(const std::string_view content, double& uptime, in parseProcUptime() argument 225 double t0, t1; // Attempts to parse uptime and idleProcessTime in parseProcUptime() 229 uptime = t0; in parseProcUptime() 266 * counter(start) uptime(start) 271 * |------------------------------| <--- firmwareTime(Actually is firmware+loader)=counter-uptime \
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | data_interface_test.cpp | 33 std::string uptime = dataIntf.getBMCUptime(seconds); in TEST() local 35 EXPECT_EQ(uptime, retUptime); in TEST()
|
/openbmc/linux/Documentation/hwmon/ |
H A D | corsair-psu.rst | 98 uptime Session uptime of the psu 99 uptime_total Total uptime of the psu
|
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/test/ |
H A D | util_test.cpp | 135 double uptime, idleProcessTime; in TEST() local 136 EXPECT_EQ(metric_blob::parseProcUptime(content, uptime, idleProcessTime), in TEST() 138 EXPECT_LT(abs(uptime - 266923.67), eps); in TEST()
|