31 Commits

Author SHA1 Message Date
jasper
a887c6fc0c update to libgtop2-2.38.0 with a stub implementation for procio 2017-11-03 11:22:11 +00:00
jasper
3f461814a5 - update libgtop to 2.28.4
* openbsd now has it's own backend
- remove some patch- files that i've committed upstream too
2011-08-30 12:24:52 +00:00
jasper
c42b72665c ansify, no binary change 2011-07-10 15:29:26 +00:00
jasper
db11b7b063 - decrease stack usage when retrieving memory stats
- use consistent warnings when failing sysctl(3) calls
2011-07-10 15:23:01 +00:00
jasper
ac95a9e7ff - retrieve and use buffercache statistics so we get a proper view
of memory usage

ok aja@
2011-07-10 14:42:39 +00:00
jasper
7e3abfbee1 - correct sysctl names in two warning messages
- rename a few variables for clarity
2011-07-09 08:04:14 +00:00
jasper
59332b7fe6 - Fix scope6 and prefix6 retrieval 2011-06-20 11:48:39 +00:00
jasper
149db12a47 - fix GLIBTOP_NETLOAD_HWADDRESS so we can retrieve the hardware address of an interface 2011-06-20 09:50:04 +00:00
jasper
d10d35f25b revert changes made for vmmap, but keep the new file around 2011-06-06 17:12:12 +00:00
jasper
175dd30580 - implement uptime.boot_time 2011-06-01 07:24:49 +00:00
jasper
03fb5bd137 - add a comment as to why we undef STAT_STATVFS now
- rename a function now it's in the openbsd implementation
- put CP_IDLE instead of 0 in uptime->idletime
2011-05-31 19:25:31 +00:00
jasper
2513ae7bfe make this work on 32 bit arches. 2011-05-31 14:19:18 +00:00
jasper
5821c1967b - silence various warnings 2011-05-31 14:02:26 +00:00
jasper
72430a5fe7 - slightly adjust cpu usage retrieval.
this still doesn't work on i386 (32 bit arches?), whereas it does work
  fine on amd64, mips64el and sparc64..
2011-05-31 13:47:56 +00:00
jasper
bfbf2ef0ef - adjust for vmmap; we copy the full vmmap tree from the kernel into the process
memory and walk through it with RB_FOREACH.

committing on behalf of ariane@ who wrote all the code, many thanks!
2011-05-26 17:47:24 +00:00
jasper
49835453c2 revert previous, it only adds to the confusion.. 2011-05-26 08:07:21 +00:00
jasper
31de6f9252 Change the way glibtop_mem->total is calculated. Instead of adding
t_free to t_rm, just use t_rm. And use t_arm for glibtop_mem->used.

This makes things less confusing and more in line with the values
top(1) returns.
2011-05-26 07:28:51 +00:00
jasper
b517a05142 use the same type for temporarily storing the amount of swap, as is used
in the struct that's eventually used to export it.
2011-05-25 10:44:34 +00:00
jasper
146b8a8d98 - fix cpu load calculation (was either 0% or 100%, but it seems only amd64
is fixed now, will look at the others soon).
- take maintainership
2011-05-24 12:37:15 +00:00
jasper
f5e79ac1fa fix memory handling, instead of using 17179869183.3 GiB of RAM it's
now giving sensible values.
2011-05-24 11:21:56 +00:00
jasper
a5e0a9326b use sysconf() instead of the deprecated getpagesize() 2011-05-24 10:40:47 +00:00
jasper
ec8a930f96 remove comment that doesn't apply to us 2011-05-24 09:30:20 +00:00
jasper
bf81eec5f8 - fix swap detection 2011-05-24 08:48:22 +00:00
jasper
2e03503c62 only try to calculate swap usage if it's enabled. still needs some work
to get a proper avail/inuse though.
2011-05-23 21:26:41 +00:00
jasper
06fdec108e add rcs id's 2011-05-23 19:35:52 +00:00
jasper
f4b38c4bd4 don't leave os_version_code unitialized 2011-05-23 19:31:19 +00:00
jasper
223b8c349e finish cleaning, this should now provide a base to fix bugs that doesn't
make you want to crawl out your eyes...
2011-05-23 19:13:07 +00:00
jasper
99cbaafb32 more ifdef cleaning 2011-05-23 18:47:30 +00:00
jasper
832c9594c4 start cleaning the ifdef-hell 2011-05-23 18:28:14 +00:00
jasper
c977db561e the openbsd code has diverged too much from the freebsd and generic bsd code
to be easily maintainable. so instead move it to files/ for now untill it
gets incorporated upstream.

discussed with aja@
2011-05-23 18:09:10 +00:00
jasper
3c5a9b58e0 - update libgtop2 to 2.28.0
* it's not any less broken than the previous version, but at least it
gives us a recent base to hack on.

aja@ agrees
2009-10-16 10:56:04 +00:00