| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reverts commit 9e62440b314fbf87bbeca865a4223311314c52a3.
|
|
|
|
| |
This reverts commit 9cbb3b91f11ad0c4944a1428d609201c054cffab.
|
|
|
|
| |
This reverts commit 7396970afe2290488fd072612a650353dd13a16d.
|
|
|
|
| |
This reverts commit e9da95977365731a8f921f2d23b943036bf8f3d5.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Revert this proof of concept.
Add C file with comments to document how to make a call SUID.
|
|
|
|
|
| |
Add suid infrastructure.
Demo proc_map.
|
|
|
|
|
|
|
|
|
| |
The previous name is incorrect and inconsistent with the code generated
by lib.pl.
Also add missing hooks.
This symbol, although exposed in public headers is not part of the API
and is only used internally.
|
| |
|
| |
|
| |
|
|
|
|
| |
Check linux version code before reading /proc/PID/io.
|
| |
|
| |
|
|
|
|
| |
only need to deal with ascii.
|
| |
|
|
|
|
|
|
| |
with a lot of CPUs.
https://bugzilla.gnome.org/show_bug.cgi?id=323354
|
| |
|
|
|
|
|
|
|
|
| |
The field was added almost 20 years ago, but has only been set on
Solaris so far. It turns out we have a use for it now in the new
"Usage" application, so also fill it in on Linux.
https://bugzilla.gnome.org/show_bug.cgi?id=775182
|
|
|
|
|
|
|
|
|
|
|
|
| |
libgtop fails to build on musl libc, due to the header
resulting in the headers that would be loaded for libc 5 being
loaded on musl libc.
musl defines headers which are also defined in linux-headers'
in.h, causing redefinition errors.
https://bugzilla.gnome.org/show_bug.cgi?id=760655
Signed-off-by: Benoît Dejean <bdejean@gmail.com>
|
|
|
|
| |
Don't duplicate the typedef (error unless C11).
|
|
|
|
| |
Regenerate hash function for fast parsing.
|
|
|
|
| |
Fix compilation.
|
| |
|
|
|
|
| |
sysdeps/{freebsd,linux}.
|
|
|
|
| |
Regenerate the hashtable.
|
| |
|
|
|
|
| |
This matches exactly `free`.
|
| |
|
|
|
|
|
|
| |
Since linux 3.0, a valid version can have two digits
Signed-off-by: Ionut Biru <ibiru@archlinux.org>
|
|
|
|
|
|
|
|
| |
estimated amount of memory available for applications.
Use this to compute glibtop_mem::user.
https://bugzilla.gnome.org/show_bug.cgi?id=727543.
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/fs/proc/meminfo.c?id=34e431b0ae398fc54ea69ff85ec700722c9da773
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=721514
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From: Jason Xing <xinggang861@gmail.com>
In 'Bug 323354 - Support a dynamic number of CPUs', there will be a
solution which can dynamically allocate memory for large number of
CPUs. As libgtop supports multiple operating systems, this work
may take some time.
This patch is a temporary patch, which worked before the whole
solution comes out. It only supports linux platform with CPU number
up to 1024.
There are two Macroes which limit the statistics of CPU. One is
GLIBTOP_NCPU. The other is a buffer size. This buffer used to read
/proc/stat contents into.
https://bugzilla.gnome.org/show_bug.cgi?id=323354
https://bugzilla.gnome.org/show_bug.cgi?id=681632
|
|
|
|
|
|
|
|
|
|
|
| |
libgtop processor count has been simply determined by the number
of sections in /proc/cpuinfo split by \n\n. On PPC processors
supporting SMP after the per-cpu description for each core a
new section is listed (after \n\n) with the common attributes
of the cores [1]. Work around this by only counting a section
as describing a CPU if it contains "processor" to fix bug #621831 [0]
[0] https://bugzilla.gnome.org/show_bug.cgi?id=621831
[1] https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/powerpc/kernel/setup-common.c?id=9fc2105aeaaf56b0cf75296a84702d0f9e64437b#n319
|
|
|
|
|
|
| |
When doing stat on a FS and failing, log the error message based
on the errno set to help the user find the reason.
https://bugzilla.gnome.org/show_bug.cgi?id=685172
|
| |
|
|
|
|
|
|
|
|
|
| |
When fsusage scans mtab, it matches on the first entry, but since 'rootfs'
isn't of the expected format '/dev/<blah>' it bails out.
Match early on any rootfs entries and skip them.
Fixes #685897
|
| |
|
|
|
|
|
|
| |
Bug #581725.
Signed-off-by: Benoît Dejean <benoit@placenet.org>
|
| |
|
|
|
|
| |
I've commited the wrong patch, got lost in the svn->git change.
|
|
|
|
|
| |
bsearch.
Brings a 25% boost.
|
|
|
|
| |
That's more code but it brings a 20% speed improvement.
|
|
|
|
|
|
| |
See #577537.
svn path=/trunk/; revision=2816
|
|
|
|
|
|
|
| |
Fixed read(2) usage.
Closes #468495.
svn path=/trunk/; revision=2801
|
|
|
|
|
|
|
| |
Patch by Vincent Untz <vuntz@gnome.org>.
Closes #566611.
svn path=/trunk/; revision=2787
|