freebsd-nq/lib/libkvm
Michał Górny 8099a35446 libkvm: Fix kvm_getloadavg() on modern kernel vmcores
Fix kvm_getloadavg() to work correctly on vmcores for modern kernel
versions.  The kernels no longer include the `_fscale` symbol causing
the kvm_nlist() invocation to fail.  The code seemed to already assume
that `_fscale` could be missing but the early kvm_nlist() result check
has caused the function to fail if any symbol were missing.  Modify
it to only treat `_averunnable` as obligatory, and handle missing
`_fscale` gracefully.

Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32884
2021-12-07 15:36:34 -08:00
..
tests Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
kvm_aarch64.h
kvm_amd64.c
kvm_amd64.h
kvm_arm.c
kvm_arm.h
kvm_cptime.c
kvm_getcptime.3
kvm_geterr.3
kvm_getloadavg.3
kvm_getloadavg.c libkvm: Fix kvm_getloadavg() on modern kernel vmcores 2021-12-07 15:36:34 -08:00
kvm_getpcpu.3
kvm_getprocs.3
kvm_getswapinfo.3
kvm_getswapinfo.c
kvm_i386.c
kvm_i386.h
kvm_kerndisp.3
kvm_minidump_aarch64.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_minidump_amd64.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_minidump_arm.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_minidump_i386.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_minidump_mips.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_minidump_powerpc64_hpt.c
kvm_minidump_powerpc64.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_minidump_riscv.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_mips.h
kvm_native.3
kvm_nlist.3
kvm_open.3
kvm_pcpu.c libkvm: catch up with pre-subtracated per-cpu addresses 2020-10-06 02:57:37 +00:00
kvm_powerpc64.c
kvm_powerpc64.h
kvm_powerpc.c
kvm_private.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_private.h Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
kvm_proc.c libkvm: Fix build after removeal of p_tracevp 2021-05-22 16:36:54 +03:00
kvm_read.3
kvm_riscv.h
kvm_vnet.c
kvm.3
kvm.c libkvm: Refine the previous commit (645eaa2cca) 2021-03-03 18:50:45 -05:00
kvm.h
Makefile Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
Makefile.depend