freebsd-dev/sys/compat
Chuck Tuffli 4c4317193b Fix output of linprocfs stat entry
The Linux /proc/stat entry has grown over time

 v2.5.41 <
   user, nice, system, idle
 v2.5.41
   user, nice, system, idle, iowait, irq
 v2.6.11
   user, nice, system, idle, iowait, irq, softirq, steal
 v2.6.24
   user, nice, system, idle, iowait, irq, softirq, steal, guest
 v2.6.32 >
   user, nice, system, idle, iowait, irq, softirq, steal, guest, guest_nice

Some applications (e.g. nodejs) depend on the correct number of entries
and will abort otherwise.

Fix is to print the correct number of entries based on the value of
osrelease set either in sysctl or the jail settings. Change is similar
to approach used by illumos.

Reviewed by: emaste, imp (mentor)
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D15858
2018-06-22 00:02:05 +00:00
..
cloudabi Eliminate the overhead of gratuitous repeated reinitialization of cap_rights 2018-05-09 18:47:24 +00:00
cloudabi32 Don't use an .OBJDIR for 'make sysent'. 2018-01-29 19:14:15 +00:00
cloudabi64 Don't use an .OBJDIR for 'make sysent'. 2018-01-29 19:14:15 +00:00
freebsd32 Regen after 335177 (rename sys_obreak to sys_break). 2018-06-14 21:29:31 +00:00
ia32 Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
linprocfs Fix output of linprocfs stat entry 2018-06-22 00:02:05 +00:00
linsysfs linsysfs: depend on linux_common module on arm64, as on amd64 2018-06-18 13:26:45 +00:00
linux Fix the Linux kernel version number calculation 2018-06-22 00:02:03 +00:00
linuxkpi/common Implement the ip_eth_mc_map() function in the LinuxKPI. 2018-06-12 08:43:49 +00:00
ndis Fix build of ndis with base gcc on i386 2018-06-17 19:24:40 +00:00
netbsd sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00