The source project of this merge request has been removed.
gallium/hud: Port get_cpu_stats to DragonFly and maybe other BSDs
NetBSD appears to be the most sane:
- Only 1 sysctl, only 1 type
- Available via
- Returns summation by default
- If passed large enough buffer returns for all CPUs
- If passed argument returns for specific CPU
uint64_tto avoid overflow on 32-bit CPUs
/proc filesystem was removed in DragonFly and OpenBSD but remains deprecated in FreeBSD and NetBSD.