Commit Graph

246514 Commits

Author SHA1 Message Date
kamil 1a4e4ead74 Add dbregs_dr[0123]_trap_variable in arch/amd64/t_ptrace_wait*
Add new preliminary tests for testing that CPU Debug Registers can be used
to trap on a variable (write operation).

dbregs_dr0_trap_variable:
    Verify that setting trap with DR0 triggers SIGTRAP

dbregs_dr1_trap_variable:
    Verify that setting trap with DR1 triggers SIGTRAP

dbregs_dr2_trap_variable:
    Verify that setting trap with DR2 triggers SIGTRAP

dbregs_dr3_trap_variable:
    Verify that setting trap with DR3 triggers SIGTRAP

Sponsored by <The NetBSD Foundation>
2016-12-04 03:38:58 +00:00
christos 840d624913 Add missing ktrkuser 2016-12-03 22:28:16 +00:00
tsutsui a8597f078b Mention luna68k HD647180X I/O processor support. 2016-12-03 19:15:27 +00:00
flxd 11a5313a42 newline 2016-12-03 18:18:12 +00:00
flxd cb798baa56 Print warning for problematic switch configuration. 2016-12-03 18:12:50 +00:00
tsutsui 97d3c24f2a Preliminary support for LUNA's HD647180X I/O processor (a.k.a. XP).
Demonstrated as "PSG tunes / PCM wav player on LUNA"
(using Z80 PSG/PCM drivers ported from NEC PC-6001)
at OSC2016 Kyoto and OSC2016 Hiroshima:
 http://mail-index.netbsd.org/netbsd-advocacy/2016/08/01/msg000712.html
 http://mail-index.netbsd.org/netbsd-advocacy/2016/11/29/msg000724.html
2016-12-03 17:38:02 +00:00
macallan 1c7cf5e0f4 there is no pm2_exa.c yet 2016-12-03 16:41:34 +00:00
macallan fbfd0b265f - build glint driver on macppc
- reenable it on sparc64
2016-12-03 16:38:15 +00:00
christos c4cb6918e1 switch sparc/sparc64 to binutils 227 2016-12-03 16:02:10 +00:00
christos b1a05e3501 switch alpha/sparc/sparc64 to new binutils 2016-12-03 16:01:18 +00:00
christos 23623c849a struct cpu_info is varible size when page_size is not fixed. 2016-12-03 16:00:10 +00:00
riastradh 18f9dbe565 Directories are unconditional and hence must be untagged. 2016-12-03 15:18:41 +00:00
maxv d5c86237f5 Fix a wrong flag and KNF. 2016-12-03 09:20:55 +00:00
kamil a58716a3f0 Add new tests lwpinfo1 in t_ptrace_wait* and lwpinfo2 under HAVE_PID guard
lwpinfo1:
    Verify baic LWPINFO call for single thread (PT_TRACE_ME)

lwpinfo2:
    Verify baic LWPINFO call for single thread (PT_ATTACH from tracer)

Both tests are marked as expected failure PR kern/51685:
    ptrace(2): Signal does not set PL_EVENT_SIGNAL in
    (struct ptrace_lwpinfo.)pl_event

Sponsored by <The NetBSD Foundation>
2016-12-03 07:23:08 +00:00
christos 1b08d10df9 move alpha to new binutils 2016-12-03 04:06:25 +00:00
mrg 15bdea6a19 add a basic "-b" option - that outputs one display and exits.
inspired by "top -b".  still requires a curses-capable output
without some fairly significant internal restructuring.
2016-12-03 03:26:27 +00:00
christos 2de9513676 switch mips64 to new binutils and gdb. 2016-12-03 02:18:38 +00:00
kamil 4b9f3a9f8a Define new tests for CPU Debug Registers in t_ptrace_wait{,3,4,6,id,pid}
Rename dbregs1 to dbregs_print
Rename dbregs[2345] to dbregs_preserve_dr[0123]

Add new tests dbregs_preserve_dr[0123]_yield.

dbregs_preserve_dr0_yield:
     Verify that setting DR0 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr1_yield:
     Verify that setting DR1 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr2_yield:
     Verify that setting DR2 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr3_yield:
     Verify that setting DR3 is preserved across ptrace(2) calls with
     scheduler yield

Add new tests dbregs_preserve_dr[0123]_continued.

dbregs_preserve_dr0_continued:
    Verify that setting DR0 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr1_continued:
    Verify that setting DR1 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr2_continued:
    Verify that setting DR2 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr3_continued:
    Verify that setting DR3 is preserved across ptrace(2) calls and with
    continued child

Use more meaningful names for these tests as they are MD specific and
testing precise functionality. Also there will be a growing number of
tests in this category and prefixing everything with plain dbregs and
trailing with a number cannot be verbose.

Sponsored by <The NetBSD Foundation>
2016-12-03 01:41:15 +00:00
christos 5b0871f5ea regen mips64 2016-12-03 00:40:47 +00:00
macallan 176218773a build pm3_exa 2016-12-02 22:59:17 +00:00
christos 5a6cfab10a provide a tree like display with -d, from FreeBSD 2016-12-02 21:59:03 +00:00
christos d10d9a2322 fix test lib/librumphijack/t_sh/runscript
(handle F_DUPFD_CLOEXEC that the shell is now using)
2016-12-02 20:53:36 +00:00
christos b293c8a9d7 Add unwind action type and constants 2016-12-02 19:25:19 +00:00
christos 0ab93415f3 switch m68k to new binutils and gdb 2016-12-02 17:54:35 +00:00
christos 787b0418af regen m68k 2016-12-02 17:51:07 +00:00
tsutsui 540167e84a Fix crashdump on machines with EXTENDED_MEMORY.
PR port-x68k/51663 from Rin Okuyama.
2016-12-02 12:43:07 +00:00
msaitoh daab61de0e Update ixg(4) and ixv(4) up to FreeBSD r294578:
- Fixup SFP module insertion on the 82599 when insertion happens after
  the system is booted and running. Add PHY detection logic to
  ixgbe_handle_mod() and add locking to ixgbe_handle_msf() as well.
  FreeBSD r293334.
- Fix ix advertise value after media change. When ifconfig sets media then the
  values displayed by the advertise_speed value are invalidated.
  Fix this by setting the bits correctly including setting advertise to 0 for
  media = auto. FreeBSD r294578.
- Some others (e.g. LRO(not used by NetBSD)).
2016-12-02 12:14:37 +00:00
msaitoh c0574abec5 Fix ix{gbe,v}_set_sysctlvalue(). 2016-12-02 11:56:55 +00:00
msaitoh e339bcee96 Add ixgbe_osdep.c. 2016-12-02 10:48:11 +00:00
msaitoh e8248b5bb6 - Add missing pmf_device_deregister() in ixgbe_detach()
- Remove extra newline from an sysctl description.
- Fix dmesg output when the number of PCIe lane can't get.
2016-12-02 10:46:58 +00:00
msaitoh 1160ab7951 Update ixg(4) and ixv(4) up to FreeBSD r292674:
- Add X552 SFP+ and X550T single port.
- Bug fixes.
2016-12-02 10:42:04 +00:00
msaitoh 0e1d573dba Update ixg(4) and ixv(4) up to FreeBSD r289238:
- Add support for sysctl knobs to live tune the per interrupt rx/tx packet
  processing limits in ixgbe(4)
- Some others (netmap, etc.)
2016-12-02 10:34:23 +00:00
msaitoh f0e3127a11 Update ixg(4) and ixv(4) up to FreeBSD r285590:
- Fix igxbe SRIOV VF (if_ixv) initialization bugs.  The MAC address for
  an if_ixv instance can now set at creation time, and the receive ring
  tail pointer is correctly initialized (previously, things still worked
  because the receive ring tail pointer was being fixed up as a side
  effect of other activity).
2016-12-02 10:24:31 +00:00
msaitoh 001a98a41d Update ixg(4) and ixv(4) up to FreeBSD r283881:
- SRIOV support (not enabled because NetBSD doesn't support it).
2016-12-02 10:21:43 +00:00
kamil 0904a3bc79 Add new tests dbregs[2345] in MD arch/amd64/ t_ptrace_wait{,3,4,6,id,pid}
dbregs2:
    Verify that setting DR0 is preserved across ptrace(2) calls

dbregs3:
    Verify that setting DR1 is preserved across ptrace(2) calls

dbregs4:
    Verify that setting DR2 is preserved across ptrace(2) calls

dbregs5:
    Verify that setting DR3 is preserved across ptrace(2) calls

These tests are deliberately fine-grained as they are expected to penetrate
precisely each functional aspect of CPU Debug Registers on amd64 one after
another.

These tests (and MI ones) might be generated or merged with helper
functions, however in order to copy-and-paste them out of a test-suite and
quickly port to other platform (in order to compare results) it's useful to
keep them as stand-alone as they are.

Code from these tests might be shared with other ports in future, for the
same reason keep them currently as they are.

Sponsored by <The NetBSD Foundation>
2016-12-02 06:49:00 +00:00
knakahara a3ee55e14c fix typo. ping6 deadline option is not "-w" but "-X". 2016-12-02 06:19:50 +00:00
kamil 96cf2030eb Refactor location of amd64-specific ATF tests to new dir kernel/arch/amd64
Rename
 - tests/kernel/t_ptrace_amd64_wait.c
to
 - tests/kernel/arch/amd64/t_ptrace_wait.c
and adapt appropriate files accordingly.

New directory will be used for more amd64-specific tests, verifying the
MD parts of the kernel.

Remove old entries from distrib/sets/lists as they were added a while ago.

Sponsored by <The NetBSD Foundation>
2016-12-02 05:54:14 +00:00
knakahara 5c3ea1ee6e fix accidentally if_pppoe atf failure depends on cpu workload. 2016-12-02 05:28:27 +00:00
riastradh ad4751da4c Respect MKSHARE=no. 2016-12-02 02:41:54 +00:00
riastradh 73a060fc54 Mark lvm and npf shlibs as such. 2016-12-02 02:30:47 +00:00
riastradh d5e595c687 cvslatest(1) is unconditional, doesn't use cvs(1). 2016-12-02 02:29:54 +00:00
riastradh 0ab10b7e19 print-ip6.c is needed even with MKINET6=no.
Provides print_ip6 used by various other objects, with different
definitions depending on #ifdef INET6.
2016-12-02 02:14:03 +00:00
knakahara 1d3a55e373 fix: ifp->if_obytes and ifp->if_omcasts are not counted up for packets which is sent later.
pointed out by ozaki-r@n.o, thanks.
2016-12-02 01:48:44 +00:00
kamil e3626ca7dd Fix !amd64 sets
Sponsored by <The NetBS Foundation>
2016-12-02 00:50:09 +00:00
ozaki-r 3de81a8881 CID 1396598, CID 1396634: Fix null pointer dereferences 2016-12-02 00:19:54 +00:00
kamil b08d15e04f Add t_ptrace_amd64_wait{,3,4,6,id,pid} tests
Sponsored by <The NetBSD Foundation>
2016-12-01 20:23:10 +00:00
kamil 6df343d465 Add new test file t_ptrace_amd64_wait.c and refactor t_ptrace_*wait* tests
Clone t_ptrace_wait.c to t_ptrace_amd64_wait.c and put common parts to
t_ptrace_wait.h.

The t_ptrace_amd64_wait.c file is dedicated to hold amd64-specific tests
for the ptrace(2) interface.

Add new basic test dbreg1 in t_ptrace_amd64_wait{,3,4,6,id,pid}:
    Verify plain PT_GETDBREGS with printing Debug Registers

Fix evbarm64-aarch64 issue pointed by <christos>, kill1 and kill2 tests
must be defined without PT_STEP guards.

Sponsored by <The NetBSD Foundation>
2016-12-01 20:11:17 +00:00
christos c8c18415f0 n dl_iterate_phdr return the path not the name. 2016-12-01 18:21:39 +00:00
christos 811931c076 on NetBSD we don't have llvm_symbolizer, so try addr2line... 2016-12-01 18:20:25 +00:00
christos 0833d377e3 use the right sysctl to find the main binary name. We don't really need
this since our dl_iterate_phdr DTRT's for objmain, but...
2016-12-01 18:19:19 +00:00