Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Add dummy proc_diskio implementation for FreeBSD. | Benoit Dejean | 2017-02-25 | 3 | -0/+45 | |
| | | ||||||
| * | Set glibtop_proc_diskio.flags. | Benoît Dejean | 2017-02-21 | 1 | -0/+4 | |
| | | | | | | | | Check linux version code before reading /proc/PID/io. | |||||
| * | New API to retrieve process io stats, with Linux implementation | Robert Roth | 2017-02-12 | 7 | -1/+130 | |
| | | ||||||
* | | Add NULL pointer checker (bug found with scan-build). | Benoît Dejean | 2017-05-01 | 1 | -1/+1 | |
|/ | ||||||
* | When parsing /proc/cpuinfo, ignore paragraphs that do not describe a CPU/core. | Benoît Dejean | 2017-01-28 | 1 | -6/+14 | |
| | ||||||
* | Use g_ascii_isspace instead of isspace because the later is slower and we | Benoît Dejean | 2017-01-22 | 2 | -2/+2 | |
| | | | | only need to deal with ascii. | |||||
* | Do not cache getpagesize(), it is already. | Benoît Dejean | 2017-01-22 | 4 | -20/+2 | |
| | ||||||
* | Use a dynamically allocated buffer to read /proc/cpuinfo to handle computers | Benoît Dejean | 2017-01-22 | 1 | -2/+6 | |
| | | | | | | with a lot of CPUs. https://bugzilla.gnome.org/show_bug.cgi?id=323354 | |||||
* | Fixed indentation problem | Robert Roth | 2016-11-27 | 1 | -1/+1 | |
| | ||||||
* | procstate: Fill in last_processor member on linux | Florian Müllner | 2016-11-27 | 1 | -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 netload | Ting-Wei Lan | 2016-08-20 | 1 | -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 ioctl | Gleb Smirnoff | 2016-08-20 | 1 | -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-libc | Kylie McClain | 2016-02-16 | 1 | -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 Jacoutot | 2016-01-12 | 1 | -5/+2 | |
| | ||||||
* | Add various headers to unbreak compilation | Jasper Lievisse Adriaanse | 2015-12-11 | 4 | -0/+7 | |
| | ||||||
* | PROT_EXECUTE -> PROT_EXEC | Jasper Lievisse Adriaanse | 2015-12-11 | 1 | -1/+1 | |
| | ||||||
* | Fix compilation because glibtop_machine definition has moved. | Jasper Lievisse Adriaanse | 2015-12-11 | 2 | -1/+3 | |
| | ||||||
* | Fix Darwin build. | Benoît Dejean | 2015-08-18 | 2 | -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 Dejean | 2015-08-15 | 2 | -0/+3 | |
| | ||||||
* | glibtop_machine is defined in glibtop.h. | Benoit Dejean | 2015-08-15 | 10 | -20/+0 | |
| | | | | Don't duplicate the typedef (error unless C11). | |||||
* | Implement glibtop_map_entry Pss and Swap. | Benoit Dejean | 2015-08-15 | 3 | -35/+32 | |
| | | | | Regenerate hash function for fast parsing. | |||||
* | server->machine is now a pointer, so propagate the change from . to ->. | Benoît Dejean | 2015-08-08 | 75 | -322/+322 | |
| | ||||||
* | Define glibtop_machine for Linux as empty because it's not used. | Benoît Dejean | 2015-08-08 | 1 | -5/+1 | |
| | | | | Fix compilation. | |||||
* | Turn glibtop::machine from a value to a pointer, allocated on init. | Benoit Dejean | 2015-08-08 | 14 | -43/+43 | |
| | | | | This hides the glibtop_machine implementation. | |||||
* | No use for glibtop_machine for now, but who knows in the future. | Benoit Dejean | 2015-08-08 | 1 | -5/+2 | |
| | ||||||
* | Exclude the "idle" kernel process when GLIBTOP_EXCLUDE_IDLE. | Benoit Dejean | 2015-08-08 | 1 | -0/+3 | |
| | ||||||
* | Remove useless/meaningless calls to glibtop_init_[prs]() with ↵ | Benoit Dejean | 2015-08-08 | 26 | -50/+0 | |
| | | | | sysdeps/{freebsd,linux}. | |||||
* | Don't include the ':' in smaps keys. | Benoit Dejean | 2015-08-08 | 3 | -62/+60 | |
| | | | | Regenerate the hashtable. | |||||
* | More debug messages to trace euid/egid changes. | Benoit Dejean | 2015-08-08 | 1 | -0/+4 | |
| | ||||||
* | Add some debug code to trace effective GID changes. | Benoit Dejean | 2015-08-08 | 1 | -0/+4 | |
| | ||||||
* | Don't install glibtop_private.h. | Benoit Dejean | 2015-07-18 | 1 | -1/+3 | |
| | ||||||
* | Fix utime/stime/cutime/cstime computation. | Benoit Dejean | 2015-07-18 | 1 | -7/+16 | |
| | ||||||
* | Do the math correctly to avoid loss of precision for rtime. | Benoit Dejean | 2015-07-18 | 1 | -3/+1 | |
| | | | | | I've noticed this with system-monitor where all processes got a perfectly round CPU time to the second. | |||||
* | Rework logic by turning two dark while into fors. | Benoit Dejean | 2015-07-15 | 1 | -28/+20 | |
| | | | | Also, if kvm_read fail, exit rather than looping forever. | |||||
* | Print message to stderr at once, to avoid mixups. | Benoit Dejean | 2015-07-15 | 1 | -27/+29 | |
| | ||||||
* | Check getloadavg() return value and call the function directly | Benoit Dejean | 2015-07-15 | 1 | -7/+2 | |
| | | | | on the glibtop_loadavg buffer member. | |||||
* | Convert lots of fprintf(stderr, ...) to glibtop_debug*(). | Benoit Dejean | 2015-07-15 | 1 | -3/+1 | |
| | ||||||
* | Define glibtop_debug(_r) as macros, eventually calling real C function. | Benoit Dejean | 2015-07-15 | 1 | -1/+1 | |
| | | | | | | | Keep these as macros so that if debug is not enable, although the debug message is parsed, it's not run. It's better this way because the debug message is always parsed and checked instead of being deleted by the preprocessor. | |||||
* | Print client and server pids in messages. | Benoit Dejean | 2015-07-15 | 1 | -2/+11 | |
| | ||||||
* | Add a level (DEBUG, WARNING, ERROR) to printing functions. | Benoit Dejean | 2015-07-15 | 1 | -8/+31 | |
| | ||||||
* | Add proper (and private) debug functions glibtop_debug* | Benoit Dejean | 2015-07-15 | 1 | -0/+19 | |
| | ||||||
* | For processes with threads, only reports the pid once. | Benoit Dejean | 2015-07-15 | 1 | -0/+12 | |
| | | | | On my system, this brings proclist's output from +300 to 72. | |||||
* | Fix autotools deprecation warning with s/INCLUDES/AM_CPPFLAGS/g. | Benoit Dejean | 2015-07-15 | 13 | -13/+13 | |
| | ||||||
* | Provide stats about shared memory and account Slab as cached. | Benoît Dejean | 2015-07-14 | 1 | -2/+3 | |
| | | | | This matches exactly `free`. | |||||
* | Fixed sscanf format string as arguments are unsigned ints. | Benoît Dejean | 2015-07-10 | 1 | -1/+1 | |
| | ||||||
* | Add support for linux x.y versioning schema | Ionut Biru | 2015-07-10 | 1 | -1/+5 | |
| | | | | | | Since linux 3.0, a valid version can have two digits Signed-off-by: Ionut Biru <ibiru@archlinux.org> | |||||
* | Linux >= 3.14 provides a "MemAvailable" field in /proc/meminfo which gives the | Benoît Dejean | 2015-07-10 | 1 | -1/+7 | |
| | | | | | | | | 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 | |||||
* | freebsd: rework system memory usage | Ting-Wei Lan | 2015-07-03 | 1 | -28/+39 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the value of memory usage from: Used = Wired Free = Total - Wired Shared = 0 Buffer = 0 Cached = Cache User = Wired - Cache Locked = Not Supported To: Used = Total - Free Free = Free Shared = 0 Buffer = Buf Cached = Cache User = Active + Wired Locked = Not Supported The left-hand side means fields in the glibtop_mem struct and the right-hand side means the value showed by `top' command. This change should make the value showed by gnome-system-monitor, which uses `User' field, become closer to the real memory usage. All sysctlbyname code in sysdeps/freebsd/mem.c has been moved to separate functions to make the code cleaner. | |||||
* | Implement dev/inode for mapped files on ZFS. | Benoit Dejean | 2015-06-26 | 1 | -1/+39 | |
| | ||||||
* | Split the code that works only with UFS inode. Will ease new code for ZFS. | Benoit Dejean | 2015-06-26 | 1 | -2/+20 | |
| |