uvm_loadav: don't recompute schedstate_percpu.spc_nrun

2023-07-28 Thread Scott Cheloha
claudio@ notes that uvm_loadav() pointlessly walks the allproc list to recompute schedstate_percpu.spn_nrun for each CPU. We can just use the value instead of recomputing it. ok? Index: uvm_meter.c === RCS file: /cvs/src/sys/uvm/uvm

Re: Move solock() down to sosetopt()

2023-07-28 Thread Alexander Bluhm
On Sat, Jul 22, 2023 at 05:42:49PM +0300, Vitaliy Makkoveev wrote: > Thanks for testing. There is updated diff below. OK bluhm@ > Index: sys/kern/uipc_socket.c > === > RCS file: /cvs/src/sys/kern/uipc_socket.c,v > retrieving revision

Re: iked: add print_hexbuf() to hexdump an ibuf

2023-07-28 Thread Tobias Heider
On Fri, Jul 28, 2023 at 12:06:54PM +0200, Claudio Jeker wrote: > As suggested by tb@ add print_hexbuf() to hexdump an ibuf. > Use this in place where a full ibuf is dumped. In some cases > print_hex() is still used because the length is not the full > ibuf or an offset is used. > > -- > :wq Claud

Re: iked: add print_hexbuf() to hexdump an ibuf

2023-07-28 Thread Theo Buehler
On Fri, Jul 28, 2023 at 12:06:54PM +0200, Claudio Jeker wrote: > As suggested by tb@ add print_hexbuf() to hexdump an ibuf. > Use this in place where a full ibuf is dumped. In some cases > print_hex() is still used because the length is not the full > ibuf or an offset is used. ok tb

iked: add print_hexbuf() to hexdump an ibuf

2023-07-28 Thread Claudio Jeker
As suggested by tb@ add print_hexbuf() to hexdump an ibuf. Use this in place where a full ibuf is dumped. In some cases print_hex() is still used because the length is not the full ibuf or an offset is used. -- :wq Claudio Index: iked.h ===