summaryrefslogtreecommitdiff
path: root/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
* Revert "New API to retrieve disk stats in Linux"Michael Catanzaro2020-11-069-179/+1
| | | | This reverts commit 9e62440b314fbf87bbeca865a4223311314c52a3.
* Revert "Handle LVM and RAID"Michael Catanzaro2020-11-064-219/+34
| | | | This reverts commit 9cbb3b91f11ad0c4944a1428d609201c054cffab.
* Revert "Code clean up and add example"Michael Catanzaro2020-11-066-76/+14
| | | | This reverts commit 7396970afe2290488fd072612a650353dd13a16d.
* Revert "Updated config and added reference"Michael Catanzaro2020-11-061-9/+22
| | | | This reverts commit e9da95977365731a8f921f2d23b943036bf8f3d5.
* Updated config and added referenceJames Dominic P. Guana2020-11-041-22/+9
|
* Code clean up and add exampleJames Dominic P. Guana2020-11-046-14/+76
|
* Handle LVM and RAIDJames Dominic P. Guana2020-11-044-34/+219
|
* New API to retrieve disk stats in LinuxJames Dominic P. Guana2020-11-049-1/+179
|
* Support FreeBSD 13.0-CURRENT >= 1300062 vm_map_entryNeel Chauhan2019-12-151-0/+16
|
* freebsd: Support laundry memory and ZFS ARCTing-Wei Lan2018-10-251-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD 11.1 removes cache memory and adds laundry memory. The MIB of cache memory still exists, but its value is always set to zero. According to the man page of top(1), the value of laundry memory means number of dirty pages queued for laundering, suggesting that it should be added to the 'user' in libgtop because it cannot be freed immediately without writing out data. Laundry memory was part of inactive memory in older FreeBSD releases. FreeBSD systems running on ZFS usually have a large portion of memory used as ZFS ARC, which has similar purpose to buffer cache of other filesystems. ZFS ARC can usually be freed quickly when the system needs more memory, so we don't want to put it in 'user' in libgtop. However, both buffer cache and ZFS ARC are parts of wired memory, and wired memory is counted in 'user'. Therefore, we subtract the size of ZFS ARC from wired memory when calculating 'user' value, making it more useful to FreeBSD users. This patch is based on the patch submiited three years ago by Benoît Dejean <bdejean@gmail.com>. https://bugzilla.gnome.org/show_bug.cgi?id=748928 https://gitlab.gnome.org/GNOME/libgtop/issues/31
* Fixed 3 old compile warnings.Benoît Dejean2018-07-222-3/+3
|
* glibtop_get_proc_map on Linux doesn't need to be SUID.Benoît Dejean2018-03-263-11/+337
| | | | | Revert this proof of concept. Add C file with comments to document how to make a call SUID.
* Make linux build with server.Benoît Dejean2018-03-266-5/+148
| | | | | Add suid infrastructure. Demo proc_map.
* Fix build on freebsd and darwin.Benoît Dejean2018-03-072-0/+2
|
* Rename GLIBTOP_SUID_PROC_FILE to GLIBTOP_SUID_PROC_OPEN_FILES.Benoît Dejean2018-03-072-2/+2
| | | | | | | | | 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.
* Fix darwin build by adding dummy proc_io implementation.Benoît Dejean2018-02-113-1/+47
| | | | https://gitlab.gnome.org/GNOME/libgtop/issues/36
* Regenerate with gperf-3.1.Benoît Dejean2017-08-311-21/+14
|
* Fix build for FreeBSD 11.1.Benoit Dejean2017-07-291-0/+37
| | | | | The ufs struct inode has changed a requires a different code to get the device number.
* Merge branch 'wip/diskio'Robert Roth2017-05-2310-1/+216
|\
| * Implement disk_rbytes and disk_wbytes for FreeBSD.Benoit Dejean2017-05-201-1/+38
| |
| * Prepended disk io struct fields with disk_ prefixRobert Roth2017-05-121-6/+6
| |
| * Renamed procdiskio to procioRobert Roth2017-05-1210-31/+31
| |
| * Add dummy proc_diskio implementation for FreeBSD.Benoit Dejean2017-02-253-0/+45
| |
| * Set glibtop_proc_diskio.flags.Benoît Dejean2017-02-211-0/+4
| | | | | | | | Check linux version code before reading /proc/PID/io.
| * New API to retrieve process io stats, with Linux implementationRobert Roth2017-02-127-1/+130
| |
* | Add NULL pointer checker (bug found with scan-build).Benoît Dejean2017-05-011-1/+1
|/
* When parsing /proc/cpuinfo, ignore paragraphs that do not describe a CPU/core.Benoît Dejean2017-01-281-6/+14
|
* Use g_ascii_isspace instead of isspace because the later is slower and weBenoît Dejean2017-01-222-2/+2
| | | | only need to deal with ascii.
* Do not cache getpagesize(), it is already.Benoît Dejean2017-01-224-20/+2
|
* Use a dynamically allocated buffer to read /proc/cpuinfo to handle computersBenoît Dejean2017-01-221-2/+6
| | | | | | with a lot of CPUs. https://bugzilla.gnome.org/show_bug.cgi?id=323354
* Fixed indentation problemRobert Roth2016-11-271-1/+1
|
* procstate: Fill in last_processor member on linuxFlorian Müllner2016-11-271-0/+3
| | | | | | | | 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
* freebsd: Support GLIBTOP_IF_FLAGS_WIRELESS in netloadTing-Wei Lan2016-08-201-0/+17
| | | | | | | | The ioctl call used in this patch doesn't seems to be documented. It is what ifconfig(8) command uses to display the media type, and its usage can be learned by reading the source code of ifconfig(8). https://bugzilla.gnome.org/show_bug.cgi?id=770165
* freebsd: Rewrite netload implementation with getifaddrs and ioctlGleb Smirnoff2016-08-201-176/+129
| | | | | | | | | | | | | | | | | | | | | | | Instead of using a documented and official API to get information related to a network interface, the old implementation uses kvm library to access kernel memory directly, which is not easy to understand and can be easily broken by changing kernel symbols or structs. Besides, FreeBSD 11 hides severai required kernel struct definitions from userspace programs, which causes compilation error because the definition of 'struct ifaddr' is not available unless _KERNEL is defined. This patch is primarily authored by Gleb Smirnoff <glebius@FreeBSD.org>, with other simple modification made by Antoine Brodin <antoine@FreeBSD.org>, Koop Mast <kwm@FreeBSD.org> and Ting-Wei Lan <lantw@src.gnome.org> applied. It was first submitted to FreeBSD ports and has been used by FreeBSD users for more than 18 months on all supported versions of FreeBSD. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194187 https://svnweb.freebsd.org/changeset/ports/371082 https://github.com/freebsd/freebsd-ports-gnome/commit/be884cd https://github.com/freebsd/freebsd-ports-gnome/commit/422a418 https://github.com/freebsd/freebsd-ports-gnome/commit/a4b1913 https://bugzilla.gnome.org/show_bug.cgi?id=770165
* Fix building on musl-libcKylie McClain2016-02-161-2/+2
| | | | | | | | | | | | 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>
* openbsd: only PID 1 is special (init)Antoine Jacoutot2016-01-121-5/+2
|
* Add various headers to unbreak compilationJasper Lievisse Adriaanse2015-12-114-0/+7
|
* PROT_EXECUTE -> PROT_EXECJasper Lievisse Adriaanse2015-12-111-1/+1
|
* Fix compilation because glibtop_machine definition has moved.Jasper Lievisse Adriaanse2015-12-112-1/+3
|
* Fix Darwin build.Benoît Dejean2015-08-182-0/+4
| | | | | Patch by David Evans. Bug https://bugzilla.gnome.org/show_bug.cgi?id=753743 .
* Fix compilation because glibtop_machine definition has moved.Benoit Dejean2015-08-152-0/+3
|
* glibtop_machine is defined in glibtop.h.Benoit Dejean2015-08-1510-20/+0
| | | | Don't duplicate the typedef (error unless C11).
* Implement glibtop_map_entry Pss and Swap.Benoit Dejean2015-08-153-35/+32
| | | | Regenerate hash function for fast parsing.
* server->machine is now a pointer, so propagate the change from . to ->.Benoît Dejean2015-08-0875-322/+322
|
* Define glibtop_machine for Linux as empty because it's not used.Benoît Dejean2015-08-081-5/+1
| | | | Fix compilation.
* Turn glibtop::machine from a value to a pointer, allocated on init.Benoit Dejean2015-08-0814-43/+43
| | | | This hides the glibtop_machine implementation.
* No use for glibtop_machine for now, but who knows in the future.Benoit Dejean2015-08-081-5/+2
|
* Exclude the "idle" kernel process when GLIBTOP_EXCLUDE_IDLE.Benoit Dejean2015-08-081-0/+3
|
* Remove useless/meaningless calls to glibtop_init_[prs]() with ↵Benoit Dejean2015-08-0826-50/+0
| | | | sysdeps/{freebsd,linux}.
* Don't include the ':' in smaps keys.Benoit Dejean2015-08-083-62/+60
| | | | Regenerate the hashtable.