Commit 01652776 authored by Dariusz Marcinkiewicz's avatar Dariusz Marcinkiewicz Committed by Commit Bot

Add uptime to SingleDebugDaemonLogSource.

BUG=b:67364190

Change-Id: I7cd3816955683342276b585132de5fc37ed936e5
Reviewed-on: https://chromium-review.googlesource.com/718748Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Dariusz Marcinkiewicz <darekm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509706}
parent ba66a67b
...@@ -27,6 +27,8 @@ std::string GetLogName(SupportedSource source_type) { ...@@ -27,6 +27,8 @@ std::string GetLogName(SupportedSource source_type) {
return "lspci"; return "lspci";
case SupportedSource::kIfconfig: case SupportedSource::kIfconfig:
return "ifconfig"; return "ifconfig";
case SupportedSource::kUptime:
return "uptime";
} }
NOTREACHED(); NOTREACHED();
return ""; return "";
......
...@@ -28,6 +28,9 @@ class SingleDebugDaemonLogSource : public SystemLogsSource { ...@@ -28,6 +28,9 @@ class SingleDebugDaemonLogSource : public SystemLogsSource {
// For "ifconfig" command. // For "ifconfig" command.
kIfconfig, kIfconfig,
// For "/proc/uptime" entry.
kUptime,
}; };
explicit SingleDebugDaemonLogSource(SupportedSource source); explicit SingleDebugDaemonLogSource(SupportedSource source);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment