#
6e552b66 |
| 10-May-2024 |
asou <asou@openbsd.org> |
Correct display the details of COMMAND using the ps command from the kernel crash dump.
OK millert@
|
#
4ec73a12 |
| 22-Feb-2022 |
deraadt <deraadt@openbsd.org> |
MAXCOMLEN is no longer needed in these programs, so remove the annotation from sys/param.h include lines, or remove the include lines entirely if it this was the least requirement. ok millert
|
#
0b082c0e |
| 10-Sep-2021 |
deraadt <deraadt@openbsd.org> |
annotate what symbols are used from sys/param.h lines, or delete them if not required. when deleting, add sys/signal.h or other lines which were not being pulled in
|
#
87afc19e |
| 12-Oct-2020 |
deraadt <deraadt@openbsd.org> |
make fixed-sized fixed-value mib[] arrays be const ok guenther tb millert
|
#
df69c215 |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
show more ...
|
#
59133b9f |
| 03-May-2018 |
zhuk <zhuk@openbsd.org> |
A few fixes for kvm_getargv(3)/kvm_getenv(3):
1. Most notable: this splits argv buffer into argv-specific one and environ-specific one. This makes ps -eww totally happy.
2. realloc() usage
A few fixes for kvm_getargv(3)/kvm_getenv(3):
1. Most notable: this splits argv buffer into argv-specific one and environ-specific one. This makes ps -eww totally happy.
2. realloc() usage in kvm_argv() is now ENOMEM-prone.
3. The "int off" changed to "ptrdiff_t off", as it should be.
input & okay deraadt@, millert@
show more ...
|
#
3b7181b7 |
| 07-Nov-2016 |
guenther <guenther@openbsd.org> |
Split PID from TID, giving processes a PID unrelated to the TID of their initial thread
ok jsing@ kettenis@
|
#
815ff53b |
| 16-Sep-2016 |
dlg <dlg@openbsd.org> |
handle fallout of moving the address maps to RBT code.
because userland doesnt have subr_tree, and the tree traversal in this file is simple, this inlines the logic that the functions in the kernel
handle fallout of moving the address maps to RBT code.
because userland doesnt have subr_tree, and the tree traversal in this file is simple, this inlines the logic that the functions in the kernel do.
show more ...
|
#
1dd3716c |
| 26-May-2016 |
stefan <stefan@openbsd.org> |
Make amaps use less kernel memory (2nd try)
The original diff would crash at least i386 and powerpc, as spotted by guenther@ The reason was an incorrect use of sizeof in amap_lookups().
Confirmatio
Make amaps use less kernel memory (2nd try)
The original diff would crash at least i386 and powerpc, as spotted by guenther@ The reason was an incorrect use of sizeof in amap_lookups().
Confirmation that powerpc works by mpi@ and mglocker@
"throw it in" deraadt@
Original commit message:
This is achieved by grouping amap slots into chunks that are allocated on-demand by pool(9). Endless "fltamapcopy" loops because of kmem shortage should be solved now. The kmem savings are also important to later enable vmm(4) to use larged shared memory mappings for guest VM RAM.
This adapts libkvm also because the amap structure layout has changed.
Testing and fix of libkvm glitch in initial diff by tb@ Feedback and "time to get this in" kettenis@
show more ...
|
#
212e4cb1 |
| 22-May-2016 |
guenther <guenther@openbsd.org> |
Revert previous: breaks i386 and powerpc, probably all non-PMAP_DIRECT archs
|
#
32783286 |
| 22-May-2016 |
stefan <stefan@openbsd.org> |
Make amaps use less kernel memory
This is achieved by grouping amap slots into chunks that are allocated on-demand by pool(9). Endless "fltamapcopy" loops because of kmem shortage should be solved n
Make amaps use less kernel memory
This is achieved by grouping amap slots into chunks that are allocated on-demand by pool(9). Endless "fltamapcopy" loops because of kmem shortage should be solved now. The kmem savings are also important to later enable vmm(4) to use larged shared memory mappings for guest VM RAM.
This adapts libkvm also because the amap structure layout has changed.
Testing and fix of libkvm glitch in initial diff by tb@ Feedback and "time to get this in" kettenis@
show more ...
|
#
29105a07 |
| 11-May-2016 |
tedu <tedu@openbsd.org> |
convert bcopy to memcpy. ok dlg millert
|
#
49c41439 |
| 22-Oct-2014 |
guenther <guenther@openbsd.org> |
Don't leak the old data if _kvm_reallocarray() fails
ok millert@ doug@
|
#
f4ccacb3 |
| 15-Oct-2014 |
deraadt <deraadt@openbsd.org> |
Apply reallocarray() idiom. ok guenther
|
#
644b4788 |
| 04-Jul-2014 |
guenther <guenther@openbsd.org> |
Track whether a process is a zombie or not yet fully built via flags PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-leve
Track whether a process is a zombie or not yet fully built via flags PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads.
tweaks kettenis@ feedback and ok matthew@
show more ...
|
#
01002944 |
| 01-Nov-2013 |
deraadt <deraadt@openbsd.org> |
reduce use of <sys/user.h> ok guenther millert
|
#
dc06f3f4 |
| 14-Jan-2013 |
guenther <guenther@openbsd.org> |
No longer need the "miniproc" glue, as we only have kinfo_proc now.
ok deraadt@ pirofti@ kettenis@
|
#
146016d8 |
| 14-Apr-2012 |
guenther <guenther@openbsd.org> |
Need to read in the vmspace to dig out the root of the rb-tree
|
#
aecbb8ab |
| 09-Mar-2012 |
ariane <ariane@openbsd.org> |
Userspace counterpart of new vmmap.
Allows memory walks to function.
|
#
a60854cd |
| 07-Jan-2012 |
guenther <guenther@openbsd.org> |
Add rtable id and thread id to struct kinfo_proc (and fix process id) and add an 'rtableid' keyword to ps.
Add rtable id, thread id, and socket splice info to struct kinfo_file2 and make fstat displ
Add rtable id and thread id to struct kinfo_proc (and fix process id) and add an 'rtableid' keyword to ps.
Add rtable id, thread id, and socket splice info to struct kinfo_file2 and make fstat display socket splice information.
Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major
Socket splice info and corrections from bluhm@ "Lovely" deraadt@
show more ...
|
#
d3e280a1 |
| 06-Jun-2011 |
ariane <ariane@openbsd.org> |
Userland counterpart of the vmmap backout; cranks major version of libkvm.
|
#
4e3da9ea |
| 24-May-2011 |
ariane <ariane@openbsd.org> |
Reimplement uvm/uvm_map.
vmmap is designed to perform address space randomized allocations, without letting fragmentation of the address space go through the roof.
Some highlights: - kernel address
Reimplement uvm/uvm_map.
vmmap is designed to perform address space randomized allocations, without letting fragmentation of the address space go through the roof.
Some highlights: - kernel address space randomization - proper implementation of guardpages - roughly 10% system time reduction during kernel build
Tested by alot of people on tech@ and developers. Theo's machines are still happy.
show more ...
|
#
09431e5c |
| 12-Mar-2011 |
guenther <guenther@openbsd.org> |
Replace the old, broken KERN_PROC ABI and its matching functions in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols
Replace the old, broken KERN_PROC ABI and its matching functions in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols will continue to be supported for a few releases.
Committing now that they ports people have had a couple releases to update pkgs that usd the old functions
show more ...
|
#
207e4b38 |
| 26-Jul-2010 |
guenther <guenther@openbsd.org> |
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Bas
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
show more ...
|
#
72596c46 |
| 10-Jan-2010 |
guenther <guenther@openbsd.org> |
Reimplement kvm_getproc2()'s support for reading crash dumps and /dev/mem to be direct instead of going through kvm_getprocs(), as that function is going to get more an more broken as we move stuff f
Reimplement kvm_getproc2()'s support for reading crash dumps and /dev/mem to be direct instead of going through kvm_getprocs(), as that function is going to get more an more broken as we move stuff from struct proc to struct process for rthreads. To minimize the code copying, put the common logic of filling in a kinfo_proc2 structure into a macro FILL_KPROC2() in <sys/sysctl.h> for use from both the kernel and user-space. This also hides the KERN_PROC #define behind "#if defined(_KERNEL)||defined(_LIBKVM)", as it's deprecated.
Positive feedback from millert and blambert; so committing to unblock further rthreads work.
show more ...
|