Jasper Lievisse Adriaanse
73d4679ad8
Remove OpenBSD RCS ID which bears no meaning here.
2014-01-23 11:24:33 +01:00
Robert Nagy
df1db43032
Fix several issues related to process information on OpenBSD and drop lsof usage.
2014-01-23 10:39:39 +01:00
Jasper Lievisse Adriaanse
ff07ba102f
Some fields have moved in struct proc from timeval to timespec.
2014-01-23 10:34:52 +01:00
Jasper Lievisse Adriaanse
07d2816d5b
Adjust header inclusion on OpenBSD
...
- fixup header inclusion after netinet/in_var.h was made private
- configure fails to define HAVE_NET_IF_VAR_H
2014-01-23 10:30:53 +01:00
Antoine Jacoutot
2506662196
OpenBSD: add missing header
...
netinet6/in6_var.h is not included automatically anymore from netinet/in_var.h
on OpenBSD, so explicitely #include <netinet6/in6_var.h>.
2013-10-16 17:09:16 +02:00
Jasper Lievisse Adriaanse
7a4b2d91ad
unbreak after swapin and swapout were removed from OpenBSD uvm statistics.
2013-05-29 20:59:23 +02:00
Jasper Lievisse Adriaanse
dc7eab4329
Adjust for the fact that regular users cannot read wchan anymore in OpenBSD 5.4.
2013-04-01 13:40:11 +02:00
Jasper Lievisse Adriaanse
31cbc3374d
sysctl.h on OpenBSD no longer pulls in proc.h.
2012-12-18 22:47:09 +01:00
Jasper Lievisse Adriaanse
b0f4bee85e
sync with openbsd to use the new vmmap memory allocator
2012-04-04 19:23:07 +02:00
Antoine Jacoutot
b11aa1517e
OpenBSD: kinfo_proc2 -> kinfo_proc
...
The kinfo_proc2 interface has been removed from OpenBSD (it was
deprecated anyway), so use the correct replacement: kinfo_proc.
https://bugzilla.gnome.org/show_bug.cgi?id=667591
2012-01-22 12:47:49 +01:00
Jasper Lievisse Adriaanse
dd46d6a00e
Don't bother with PIDs below 20 as they are highly likely to be kernel threads anyway.
2011-09-18 13:42:13 +02:00
Jasper Lievisse Adriaanse
7bd52fc397
Extend comment a bit regarding processes dying before we get to kvm_getproc2().
2011-09-18 13:41:20 +02:00
Jasper Lievisse Adriaanse
4c9a161eb5
ansify function declaration, no binary change.
2011-07-11 15:05:06 +02:00
Jasper Lievisse Adriaanse
32833323d9
Some OpenBSD cleaning:
...
- decrease stack usage when retrieving memory stats
- use consistent warnings when failing sysctl(3) calls
https://bugzilla.gnome.org/show_bug.cgi?id=654344
2011-07-11 14:57:55 +02:00
Jasper Lievisse Adriaanse
0de702b142
- implement GLIBTOP_MEM_CACHED on OpenBSD by retrieving buffercache stats
2011-07-10 16:44:42 +02:00
Jasper Lievisse Adriaanse
4e24854dbf
Two small tweaks to the OpenBSD backend:
...
- correct sysctl names in two warning messages
- rename a few variables for clarity
2011-07-09 10:19:18 +02:00
Jasper Lievisse Adriaanse
aa1a6766f2
Fix hardware address retrieval on OpenBSD.
...
https://bugzilla.gnome.org/show_bug.cgi?id=652997
2011-06-22 17:26:55 +02:00
Jasper Lievisse Adriaanse
537dc1bff1
Fix scope6 and prefix6 retrieval on OpenBSD.
...
https://bugzilla.gnome.org/show_bug.cgi?id=652997
2011-06-22 17:26:38 +02:00
Jasper Lievisse Adriaanse
93829c8cbb
Fix filesystem read/write accounting on OpenBSD
...
https://bugzilla.gnome.org/show_bug.cgi?id=652980
2011-06-22 17:24:37 +02:00
Jasper Lievisse Adriaanse
62239cfe50
Explain why we undef STAT_STATVFS on OpenBSD
2011-06-16 13:14:22 +02:00
Jasper Lievisse Adriaanse
15ffb2d039
Revert vmmap-based procmap.c for OpenBSD.
...
vmmap was reverted in OpenBSD, so stick to the old algorithm for now.
2011-06-16 13:03:24 +02:00
Jasper Lievisse Adriaanse
7f14f4409d
Various tweaks for OpenBSD uptime calculation
...
- implement uptime.boot_time
- put CP_IDLE instead of 0 in uptime->idletime
2011-06-16 13:02:11 +02:00
Jasper Lievisse Adriaanse
f8c573b78c
Silence various warnings in the OpenBSD code
2011-06-16 13:00:47 +02:00
Jasper Lievisse Adriaanse
49641cc363
Make CPU load retrieval work.
...
It would sort of work on 64 bits arches, and not work at all no 32 bit arches.
Now works on both, and take CP_INTR correctly into account.
2011-06-16 12:57:43 +02:00
Jasper Lievisse Adriaanse
46706961ac
Split off OpenBSD code into a separate implementation
...
Move OpenBSD code into its own sysdeps directory. The changes from
bsd/ were becoming to hard to maintain as a #ifdef tree. This is
what's currently being distributed as part of OpenBSD ports.
2011-06-16 12:27:00 +02:00