Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duo-buildroot-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
duo-buildroot-sdk
Commits
c5330c4a
Commit
c5330c4a
authored
Aug 30, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buildroot: enable htop
parent
e23c6539
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
0 deletions
+39
-0
buildroot-2021.05/configs/milkv_duo_musl_riscv64_defconfig
buildroot-2021.05/configs/milkv_duo_musl_riscv64_defconfig
+1
-0
buildroot-2021.05/dl/htop/.lock
buildroot-2021.05/dl/htop/.lock
+0
-0
buildroot-2021.05/dl/htop/htop-3.0.5.tar.gz
buildroot-2021.05/dl/htop/htop-3.0.5.tar.gz
+0
-0
buildroot-2021.05/package/htop/0001-Correctly-detect-failure-to-initialize-boottime.patch
...001-Correctly-detect-failure-to-initialize-boottime.patch
+38
-0
No files found.
buildroot-2021.05/configs/milkv_duo_musl_riscv64_defconfig
View file @
c5330c4a
...
...
@@ -391,6 +391,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE=y
#
# emlog needs a Linux kernel to be built
#
BR2_PACKAGE_HTOP=y
BR2_PACKAGE_INITSCRIPTS=y
#
...
...
buildroot-2021.05/dl/htop/.lock
0 → 100644
View file @
c5330c4a
buildroot-2021.05/dl/htop/htop-3.0.5.tar.gz
0 → 100644
View file @
c5330c4a
File added
buildroot-2021.05/package/htop/0001-Correctly-detect-failure-to-initialize-boottime.patch
0 → 100644
View file @
c5330c4a
From 7433bf4b18278080fb2ac22c5828490883066570 Mon Sep 17 00:00:00 2001
From: Nathan Scott <nathans@redhat.com>
Date: Mon, 15 Feb 2021 19:32:55 +1100
Subject: [PATCH] Correctly detect failure to initialize boottime
A zero value for btime (boottime) in /proc/stat is a
real situation that happens, so deal with this case.
Resolves https://github.com/htop-dev/htop/issues/527
---
linux/LinuxProcessList.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index 3a0feae0..69e5b75f 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -65,7 +65,7 @@
in the source distribution for its full text.
# define O_PATH 010000000
#endif
-static long long btime;
+static long long btime = -1;
static long jiffy;
@@ -241,7 +241,7 @@
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
}
fclose(statfile);
- if (!btime)
+ if (btime == -1)
CRT_fatalError("No btime in " PROCSTATFILE);
}
--
2.25.1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment