Commit Graph

17125 Commits

Author SHA1 Message Date
kamil
f43e07b7f7 Add support for trace type selection in kcov(4)
Allow to specify mode in KCOV_IOC_ENABLE synchronizing the functionality
with Linux, FreeBSD and OpenBSD. As a NetBSD (and OpenBSD) specific of
the ioctl(2) interface, the mode argument has to be specified as &value
rather than value.

There are 3 modes available:
 1. KCOV_MODE_NONE       -- no trace specified, useful for testing purposes
 2. KCOV_MODE_TRACE_PC   -- trace the kernel program counter
 3. KCOV_MODE_TRACE_CMP  -- trace comparison instructions and switch statements

Adapt the ATF tests and documentation for new API.

The KCOV_MODE_TRACE_CMP mode is implemented but still awaits for the
GCC 8.x upgrade or selection of Clang/LLVM as the kernel compiler.

Obtained from OpenBSD and adapted for NetBSD by myself.
2019-03-10 17:51:00 +00:00
kamil
869dfc9042 Add support for multiple threads in kcov(4)
Reuse the fd_clone() API to associate kcov descriptors (KD) with a file
descriptor. Each fd (/dev/kcov) can be reused for a single LWP.

Add new ATF regression tests and cleanup existing code there. All tests
pass.

Refresh the kcov(4) man page documentation.

Developed with help from <maxv>.
2019-03-10 12:54:39 +00:00
mrg
47a40b7ad1 export HAVE_MESA_VER for use in makefiles and set lists. 2019-03-10 11:02:46 +00:00
mrg
e3ecb7100d move mesa10 build into .old scheme:
- add ${X11SRCDIR.MesaLib.old} and introduce ${X11SRCDIR.Mesa} as an
  alias for either the former or the non old.  this allows many of
  the makefiles to simply use ${X11SRCDIR.Mesa} (but does not really
  enable much sharing of makefiles, but reduces their diffs.)

- use mesa-which.mk to define ${OLD_PREFIX} to either "" or ".old",
  and to know if to build 'dri7' (.old only.)  ${OLD_PREFIX} is used
  by other code (eg, LIBDPLIBS) to pick the right subdir.
2019-03-10 02:29:52 +00:00
christos
1d3883b194 Switch i386 and aarch64 to jemalloc (really I could switch everyone at this
point).
2019-03-09 17:59:28 +00:00
christos
6f80f650ef Back to using jemalloc for x86_64; all problems have been resolved. 2019-03-08 20:35:10 +00:00
leot
24a5814c13 Add SGTM 2019-03-08 08:47:17 +00:00
roy
452b6fbdca rbtree(3): Implement _FOREACH_SAFE macros
And _NEXT and _PREV as well.
2019-03-07 12:05:54 +00:00
christos
dce236fdab Switch back amd64 to the old jemalloc. We have some pthread unit-tests
failing.
2019-03-04 21:19:58 +00:00
christos
78fb378311 switch amd64 to jemalloc-5.1.0 2019-03-04 17:32:46 +00:00
sevan
83a89d195c Add XNA 2019-03-04 14:31:26 +00:00
sevan
98f2c59ce2 Add SNA, TIL, XNS, XTI 2019-03-04 13:37:53 +00:00
mrg
4e3bdd6e1c switch 32 bit arm, m68* and sh3 to GCC 7.
reverse the polarity now that few ports remain: hppa, vax, ia64 and ppc64
2019-03-04 01:14:31 +00:00
mrg
8fc8a45971 xorg-server 1.20.4 is now current. 2019-03-03 22:02:49 +00:00
christos
80f2143057 Document kern.uidinfo.semcnt. 2019-03-01 03:05:08 +00:00
pgoyette
4561b064b3 Add explicit cross-references to pserialize(9) for the sections about
ensuring that a localcount doesn't disappear while in the process of
being referenced, in the same manner as psref(9).
2019-02-25 21:43:00 +00:00
pgoyette
4edc48b05c Add a couple of (rather ancient) definitions for PTT 2019-02-24 07:39:33 +00:00
rin
35582ab2a7 Install spi.9 and friends. 2019-02-24 02:29:56 +00:00
wiz
e38ac3b5cb New sentence, new line. Add missing Nd. Remove superfluous Rs. 2019-02-23 17:37:10 +00:00
wiz
70e4e24829 Sort SEE ALSO. 2019-02-23 17:34:04 +00:00
wiz
eb550baddf New sentence, new line. 2019-02-23 17:33:01 +00:00
mlelstv
975ce0ba8d Add userland driver to spi framework.
Previously spi would configure the controller to use the lowest speed of
all connected devices since the kernel started and to fail attempted mode
changes. This is now improved to keep individual modes and speeds for each
slave and to reconfigure the controller as necessary for each transfer.

Added man page for spi(9).
2019-02-23 10:43:25 +00:00
kamil
0fe7e51662 Add KCOV - kernel code coverage tracing device
The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
2019-02-23 03:10:05 +00:00
sevan
0c02a81b28 Sometimes negative acknowledgement also shows up as NAK 2019-02-21 01:20:45 +00:00
wiz
b12920d30c Remove superfluous Pp. 2019-02-20 17:48:31 +00:00
msaitoh
46a6566ee5 - Add support for BCM5762 ASIC devices.
- Add BCM5762, BCM5725, BCM5727, BCM57764, BCM57767 and BCM57787.
2019-02-20 17:00:20 +00:00
mrg
7e645c95e2 add X11MOTIFPATH and note that MKX11MOTIF needs motif installed. 2019-02-19 21:08:21 +00:00
sevan
303eeaa93f Add CTF
sort
2019-02-19 16:31:38 +00:00
sevan
833de752d9 Add CTF (game) and PMIC 2019-02-19 13:51:16 +00:00
wiz
75d36790ae Mark up NULL with Dv. 2019-02-16 07:00:56 +00:00
isaki
aef27bc2ab Two minor fixes.
- 0 -> NULL.
- avoid K&R and sync with reality.
2019-02-16 06:51:04 +00:00
isaki
617001bf79 Two minor fixes.
- Add missing AUDIO_PERROR (since 1996!)
- Sort AUDIO_GETFD.
2019-02-16 06:50:14 +00:00
maxv
9c3a39c8a5 Note Intel support. 2019-02-13 16:06:28 +00:00
christos
4ccd0e4c6d document PR_ZERO 2019-02-10 17:15:45 +00:00
maya
53ba185d70 Use GCC 7 on riscv, it is not supported on 6. 2019-02-09 21:05:48 +00:00
rin
f384630a8c Add 8153, sort adapters. 2019-02-09 08:08:32 +00:00
rin
df4ea585b2 Add Realtek RTL8201E and IC Plus IP101. 2019-02-09 08:07:13 +00:00
rin
7ff3e5cb80 Elucidate chip family of supported adapters. 2019-02-09 07:55:26 +00:00
rin
04ee4dcd28 Add examples of supported adapters. 2019-02-09 07:54:51 +00:00
mrg
fccd79354b switch ppc64 back to gcc7, it was an accident. 2019-02-09 00:59:30 +00:00
mrg
b4f3db3927 switch aarch64, alpha, i386, mips, powerpc, sparc, sparc64,
and x86_64 to GCC 7.
2019-02-08 09:35:00 +00:00
rin
a30122656d Add StarTech USB21000S2 to list of supported adapters. 2019-02-06 12:10:00 +00:00
wiz
0eb0e72b90 Fix date. Break line after Ox/Nx. 2019-02-06 11:57:17 +00:00
rin
3b61790727 Add ure(4): RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet device.
Ported from OpenBSD. Support for RX/TX checksum offload added by myself.
2019-02-06 11:55:05 +00:00
mrg
6c19d726c3 move OBJECT_FMTS setting after MKCOMPAT default, so it works.
should fix mips64 builds.
2019-02-06 11:05:30 +00:00
christos
1dfa66f73b comment out the IFF_TRAILERS stuff that is no longer relevant and add
the missing flags.
2019-02-05 19:53:13 +00:00
msaitoh
091e15265d Remove very old IFF_NOTRAILERS flag. 2019-02-05 06:17:00 +00:00
mrg
3deb71eabd re-do version 1.1098 properly:
- fix OBJECT_FMTS if mips64 and !MKCOMPAT
2019-02-05 04:47:59 +00:00
mrg
d70ad97c73 revert previous for now. 2019-02-04 00:34:12 +00:00
mrg
82dcfee30d don't add elf64 to OBJECT_FMTS if !MKCOMPAT and mips64. 2019-02-04 00:06:14 +00:00