CVS commit: src/sys/arch/powerpc/ibm4xx

2016-12-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri Dec 16 06:29:11 UTC 2016

Modified Files:
src/sys/arch/powerpc/ibm4xx: trap.c

Log Message:
Remove needless goto's. No functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/powerpc/ibm4xx/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2016-12-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Dec 16 04:45:04 UTC 2016

Modified Files:
src/include: dirent.h
src/lib/libc/compat/gen: compat_alphasort.c compat_scandir.c
src/lib/libc/compat/include: dirent.h
src/lib/libc/gen: alphasort.c initdir.c scandir.3 scandir.c
src/usr.sbin/lpr/lpc: cmds.c

Log Message:
scandir/alphasort take "const struct dirent **" not "const void *" in
modern unix.  since we claim to be 'IEEE Std 1003.1-2008', make it so.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/include/dirent.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/compat/gen/compat_alphasort.c \
src/lib/libc/compat/gen/compat_scandir.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/compat/include/dirent.h
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/alphasort.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/gen/initdir.c
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/gen/scandir.3
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/gen/scandir.c
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/lpr/lpc/cmds.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2016-12-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri Dec 16 04:27:03 UTC 2016

Modified Files:
src/sys/arch/powerpc/ibm4xx: ibm4xx_machdep.c

Log Message:
Fix typo: s/IPKBD/IPKDB/


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2016-12-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri Dec 16 03:59:31 UTC 2016

Modified Files:
src/sys/arch/powerpc/ibm4xx: ibm4xx_machdep.c

Log Message:
Fix comments. No functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/net/ndp

2016-12-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Dec 16 03:49:45 UTC 2016

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Add a test case that deletes auto-configured addresses


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/net/ndp/t_ra.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/net/ndp

2016-12-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Dec 16 03:14:23 UTC 2016

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Improve stability of the tests

- Do ifconfig -w 10 after ifconfig up
- Accept /1d0h0m..s/ in addition to /23h59m..s/ for expiration time
- Prevent new RA messages from coming after flushing entries

The changes should fix flapping of test results on babylon5.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/net/ndp/t_ra.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2016-12-15 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Dec 16 01:42:04 UTC 2016

Modified Files:
src/sys/dev/pci: pm2reg.h

Log Message:
add bit definitions for dither and alpha blending registers


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/pci/pm2reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2016-12-15 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Dec 15 22:01:57 UTC 2016

Modified Files:
src/sys/dev: audio.c

Log Message:
In the n == VAUDIOCHANS case we need to call mutex_exit() before
returning.

Perhaps this will address PR kern/51721


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2016-12-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Dec 15 20:04:36 UTC 2016

Modified Files:
src/sys/sys: ptrace.h

Log Message:
Simplify #ifdefs so this compiles on architectures that do not support
watchpoints.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/sys/ptrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2016-12-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Dec 15 17:21:21 UTC 2016

Modified Files:
src/sys/dev/usb: uftdi.c

Log Message:
allow suspend with uftdi(4). it works fine.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/usb/uftdi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/sys

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 15:03:17 UTC 2016

Modified Files:
src/lib/libc/sys: ptrace.2

Log Message:
ptrace(2): Document PT_GETVECREGS and PT_SETVECREGS (ppc ports specific)

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/sys/ptrace.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/sys

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 14:49:46 UTC 2016

Modified Files:
src/lib/libc/sys: ptrace.2

Log Message:
ptrace(2): Document PT_GETXMMREGS and PT_SETXMMREGS (i386 port specific)

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/sys/ptrace.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/sys

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 13:06:08 UTC 2016

Modified Files:
src/lib/libc/sys: ptrace.2

Log Message:
ptrace(2): Remove dead text, some of it commented in this file for years

For example PT_READ_U/PT_WRITE_U has been removed by  in 19950126.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/sys/ptrace.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists

2016-12-15 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu Dec 15 12:56:52 UTC 2016

Modified Files:
src/distrib/sets/lists/modules: ad.arm ad.mips md.amd64 md.hppa md.i386
md.ia64 mi
src/distrib/sets/lists/tests: mi
src/distrib/sets/lists/xbase: mi shl.mi
src/distrib/sets/lists/xcomp: mi shl.mi
src/distrib/sets/lists/xdebug: md.amd64 md.mac68k mi shl.mi
src/distrib/sets/lists/xetc: mi
src/distrib/sets/lists/xserver: md.sgimips md.sparc mi

Log Message:
More sets list sorting (maybe this time they're really all done)


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/distrib/sets/lists/modules/ad.arm \
src/distrib/sets/lists/modules/ad.mips
cvs rdiff -u -r1.71 -r1.72 src/distrib/sets/lists/modules/md.amd64
cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/modules/md.hppa
cvs rdiff -u -r1.72 -r1.73 src/distrib/sets/lists/modules/md.i386
cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/modules/md.ia64
cvs rdiff -u -r1.105 -r1.106 src/distrib/sets/lists/modules/mi
cvs rdiff -u -r1.708 -r1.709 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.138 -r1.139 src/distrib/sets/lists/xbase/mi
cvs rdiff -u -r1.73 -r1.74 src/distrib/sets/lists/xbase/shl.mi
cvs rdiff -u -r1.186 -r1.187 src/distrib/sets/lists/xcomp/mi
cvs rdiff -u -r1.46 -r1.47 src/distrib/sets/lists/xcomp/shl.mi
cvs rdiff -u -r1.37 -r1.38 src/distrib/sets/lists/xdebug/md.amd64
cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/xdebug/md.mac68k
cvs rdiff -u -r1.24 -r1.25 src/distrib/sets/lists/xdebug/mi
cvs rdiff -u -r1.36 -r1.37 src/distrib/sets/lists/xdebug/shl.mi
cvs rdiff -u -r1.26 -r1.27 src/distrib/sets/lists/xetc/mi
cvs rdiff -u -r1.54 -r1.55 src/distrib/sets/lists/xserver/md.sgimips
cvs rdiff -u -r1.64 -r1.65 src/distrib/sets/lists/xserver/md.sparc
cvs rdiff -u -r1.37 -r1.38 src/distrib/sets/lists/xserver/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 12:51:02 UTC 2016

Modified Files:
src/doc: CHANGES

Log Message:
ptrace(2): Add hardware assisted breakpoint/watchpoint API:
   PT_READ_WATCHPOINT, PT_WRITE_WATCHPOINT and PT_COUNT_WATCHPOINTS


To generate a diff of this commit:
cvs rdiff -u -r1.2223 -r1.2224 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 12:42:38 UTC 2016

Modified Files:
src/doc: TODO.ptrace

Log Message:
Update TODO.ptrace with recent changes

Hardware assisted breakpoint/watchpoint API has been merged with current.

Add note about pthread_dbg(3) API needed to be refactored and limited to
querying POSIX thread private data fields.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/doc/TODO.ptrace

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 12:20:39 UTC 2016

Modified Files:
src/sys/sys: param.h

Log Message:
Welcome to NetBSD 7.99.50!

New ptrace(2) calls for hardware assisted watchpoints/breakpoints:
 - PT_COUNT_WATCHPOINTS,
 - PT_READ_WATCHPOINT,
 - PT_WRITE_WATCHPOINT.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.516 -r1.517 src/sys/sys/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/kernel/arch/amd64

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 12:15:20 UTC 2016

Modified Files:
src/tests/kernel/arch/amd64: t_ptrace_wait.c

Log Message:
Add ATF tests for hardware assisted watchpoints on amd64

Addedd tests:
 - watchpoint_count
 - watchpoint_read
 - watchpoint_write_unmodified
 - watchpoint_trap_code[0123]
 - watchpoint_trap_data_write[0123]
 - watchpoint_trap_data_rw[0123]

These code will be reused later for i386 and moved to a common place like
tests/kernel/arch/x86.

These tests are x86 specific only. The same API but different private
ptrace_watchpoint MD part has to be used on other ports.

All tests pass on amd64.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/kernel/arch/amd64/t_ptrace_wait.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2016-12-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Dec 15 12:10:02 UTC 2016

Modified Files:
src/sys/arch/powerpc/ibm4xx: ibm4xx_machdep.c

Log Message:
Fix build without DDB.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 12:04:18 UTC 2016

Modified Files:
src/distrib/sets/lists/comp: md.amd64 md.i386
src/sys/arch/amd64/amd64: machdep.c netbsd32_machdep.c
process_machdep.c trap.c
src/sys/arch/amd64/conf: files.amd64
src/sys/arch/amd64/include: proc.h ptrace.h userret.h
src/sys/arch/i386/conf: files.i386
src/sys/arch/i386/i386: machdep.c process_machdep.c
src/sys/arch/i386/include: proc.h ptrace.h userret.h
src/sys/arch/x86/include: Makefile dbregs.h
src/sys/arch/x86/x86: vm_machdep.c
src/sys/arch/xen/conf: files.xen
src/sys/compat/netbsd32: netbsd32_ptrace.c
src/sys/kern: sys_ptrace.c sys_ptrace_common.c
src/sys/sys: ptrace.h
Added Files:
src/sys/arch/x86/x86: dbregs.c

Log Message:
Add support for hardware assisted watchpoints/breakpoints API in ptrace(2)

Add new ptrace(2) calls:
 - PT_COUNT_WATCHPOINTS - count the number of available hardware watchpoints
 - PT_READ_WATCHPOINT   - read struct ptrace_watchpoint from the kernel state
 - PT_WRITE_WATCHPOINT  - write new struct ptrace_watchpoint state, this
  includes enabling and disabling watchpoints

The ptrace_watchpoint structure contains MI and MD parts:

typedef struct ptrace_watchpoint {
int pw_index;   /* HW Watchpoint ID (count from 0) */
lwpid_t pw_lwpid;   /* LWP described */
struct mdpw pw_md;  /* MD fields */
} ptrace_watchpoint_t;

For example amd64 defines MD as follows:
struct mdpw {
void*md_address;
int  md_condition;
int  md_length;
};

These calls are protected with the __HAVE_PTRACE_WATCHPOINTS guard.

Tested on amd64, initial support added for i386 and XEN.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.159 -r1.160 src/distrib/sets/lists/comp/md.i386
cvs rdiff -u -r1.237 -r1.238 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/amd64/amd64/netbsd32_machdep.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/amd64/process_machdep.c
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/amd64/amd64/trap.c
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/amd64/conf/files.amd64
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/amd64/include/proc.h
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/amd64/include/ptrace.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/amd64/include/userret.h
cvs rdiff -u -r1.375 -r1.376 src/sys/arch/i386/conf/files.i386
cvs rdiff -u -r1.766 -r1.767 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/i386/i386/process_machdep.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/i386/include/proc.h
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/i386/include/ptrace.h
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/i386/include/userret.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/x86/include/Makefile
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/include/dbregs.h
cvs rdiff -u -r0 -r1.1 src/sys/arch/x86/x86/dbregs.c
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/x86/x86/vm_machdep.c
cvs rdiff -u -r1.142 -r1.143 src/sys/arch/xen/conf/files.xen
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/netbsd32/netbsd32_ptrace.c
cvs rdiff -u -r1.2 -r1.3 src/sys/kern/sys_ptrace.c
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/sys_ptrace_common.c
cvs rdiff -u -r1.49 -r1.50 src/sys/sys/ptrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/fpu

2016-12-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Dec 15 11:32:03 UTC 2016

Modified Files:
src/sys/arch/powerpc/fpu: fpu_emu.c

Log Message:
Fix build without DDB.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/powerpc/fpu/fpu_emu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gdb/dist/gdb

2016-12-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Dec 15 10:01:16 UTC 2016

Modified Files:
src/external/gpl3/gdb/dist/gdb: alpha-tdep.c

Log Message:
Skip the initial GP load in function prologue when inserting a breakpoint.

GNU ld for alpha is so clever that the redundant GP load in function
entrypoint is skipped. we must therefore skip initial GP loads; otherwise
breakpoints in function entrypoints can also be skipped.

Reported to upstream (Bug 20969):
  https://sourceware.org/bugzilla/show_bug.cgi?id=20969

ok martin


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 src/external/gpl3/gdb/dist/gdb/alpha-tdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2016-12-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Dec 15 09:39:24 UTC 2016

Modified Files:
src/sys/sys: param.h

Log Message:
Bump for move of bpf_mtap and if_ipackets++

Welcome to 7.99.49


To generate a diff of this commit:
cvs rdiff -u -r1.515 -r1.516 src/sys/sys/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2016-12-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Dec 15 09:35:25 UTC 2016

Modified Files:
src/sys/dev/ic: hd64570.c midway.c
src/sys/dev/pci: if_lmc.c
src/sys/netisdn: i4b_ipr.c

Log Message:
Annotate bpf_mtap still running in Rx hardware interrupt with "XXX not in 
softint"


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ic/hd64570.c
cvs rdiff -u -r1.97 -r1.98 src/sys/dev/ic/midway.c
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/pci/if_lmc.c
cvs rdiff -u -r1.39 -r1.40 src/sys/netisdn/i4b_ipr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2016-12-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Dec 15 09:33:25 UTC 2016

Modified Files:
src/sys/dev/ic: sgec.c
src/sys/dev/pci: if_de.c

Log Message:
Move bpf_mtap in Tx hardware intrrupt to if_start

The intention of the change is to prevent bpf_mtap from running in
hardware interrupt context. if_start is a usual place to do bpf_mtap
on Tx.

Proposed on tech-kern and tech-net


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/ic/sgec.c
cvs rdiff -u -r1.149 -r1.150 src/sys/dev/pci/if_de.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2016-12-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Dec 15 09:28:07 UTC 2016

Modified Files:
src/sys/arch/acorn32/podulebus: if_ie.c
src/sys/arch/amiga/dev: if_es.c if_qn.c
src/sys/arch/arm/at91: at91emac.c
src/sys/arch/arm/broadcom: bcm53xx_eth.c
src/sys/arch/arm/ep93xx: epe.c
src/sys/arch/arm/gemini: gemini_gmac.c if_gpn.c
src/sys/arch/arm/imx: if_enet.c
src/sys/arch/arm/omap: if_cpsw.c omapl1x_emac.c
src/sys/arch/arm/rockchip: rockchip_emac.c
src/sys/arch/arm/xscale: ixp425_if_npe.c
src/sys/arch/emips/ebus: if_le_ebus.c
src/sys/arch/evbppc/virtex/dev: if_temac.c
src/sys/arch/mac68k/dev: if_mc.c
src/sys/arch/mac68k/nubus: if_netdock_nubus.c
src/sys/arch/macppc/dev: am79c950.c if_bm.c if_gm.c
src/sys/arch/mips/adm5120/dev: if_admsw.c
src/sys/arch/mips/alchemy/dev: if_aumac.c
src/sys/arch/mips/atheros/dev: if_ae.c
src/sys/arch/mips/cavium/dev: if_cnmac.c
src/sys/arch/mips/ralink: ralink_eth.c
src/sys/arch/mips/sibyte/dev: sbmac.c
src/sys/arch/newsmips/apbus: if_sn.c
src/sys/arch/next68k/dev: mb8795.c
src/sys/arch/playstation2/dev: if_smap.c
src/sys/arch/powerpc/booke/dev: pq3etsec.c
src/sys/arch/powerpc/ibm4xx/dev: if_emac.c
src/sys/arch/sgimips/hpc: if_sq.c
src/sys/arch/sgimips/mace: if_mec.c
src/sys/arch/sun2/dev: if_ec.c
src/sys/arch/sun3/dev: if_ie.c
src/sys/arch/usermode/dev: if_veth.c
src/sys/arch/x86/pci: if_vmx.c
src/sys/arch/xen/xen: if_xennet_xenbus.c xennetback_xenbus.c
src/sys/dev/bi: if_ni.c
src/sys/dev/cadence: if_cemac.c
src/sys/dev/ic: aic6915.c cs89x0.c dm9000.c dp8390.c dp83932.c
dwc_gmac.c elink3.c elinkxl.c gem.c hme.c i82557.c i82586.c
i82596.c lan9118.c lance.c lemac.c mb86950.c mb86960.c mtd803.c
pdq_ifsubr.c rrunner.c rtl8169.c rtl81x9.c seeq8005.c sgec.c
smc83c170.c smc90cx6.c smc91cxx.c tropic.c tulip.c
src/sys/dev/if_ndis: if_ndis.c
src/sys/dev/isa: if_eg.c if_el.c if_iy.c
src/sys/dev/marvell: if_gfe.c if_mvgbe.c if_mvxpe.c
src/sys/dev/ofw: ofnet.c
src/sys/dev/pci: if_age.c if_alc.c if_ale.c if_bce.c if_bge.c if_bnx.c
if_cas.c if_de.c if_dge.c if_et.c if_jme.c if_kse.c if_lii.c
if_msk.c if_nfe.c if_pcn.c if_sip.c if_sk.c if_ste.c if_stge.c
if_ti.c if_tl.c if_txp.c if_vge.c if_vioif.c if_vr.c if_vte.c
if_wm.c if_xge.c
src/sys/dev/pci/ixgbe: ix_txrx.c
src/sys/dev/pcmcia: if_cnw.c if_malo_pcmcia.c if_xi.c
src/sys/dev/qbus: if_de.c if_qe.c if_qt.c
src/sys/dev/sbus: be.c qe.c
src/sys/dev/scsipi: if_se.c
src/sys/dev/usb: if_aue.c if_axe.c if_axen.c if_cdce.c if_cue.c
if_kue.c if_smsc.c if_udav.c if_upl.c if_url.c if_urndis.c
src/sys/net: if.c if_tap.c if_vlan.c
src/sys/net/agr: if_agr.c
src/sys/net80211: ieee80211_input.c
src/sys/netinet: ip_etherip.c
src/sys/netinet6: ip6_etherip.c
src/sys/netisdn: i4b_isppp.c
src/sys/rump/net/lib/libshmif: if_shmem.c
src/sys/rump/net/lib/libvirtif: if_virt.c

Log Message:
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/acorn32/podulebus/if_ie.c
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/amiga/dev/if_es.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/amiga/dev/if_qn.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/at91/at91emac.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arm/broadcom/bcm53xx_eth.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/arm/ep93xx/epe.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/gemini/gemini_gmac.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/gemini/if_gpn.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/imx/if_enet.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/omap/if_cpsw.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/omap/omapl1x_emac.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/arm/rockchip/rockchip_emac.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/arm/xscale/ixp425_if_npe.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/emips/ebus/if_le_ebus.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbppc/virtex/dev/if_temac.c
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/mac68k/dev/if_mc.c
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/mac68k/nubus/if_netdock_nubus.c
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/macppc/dev/am79c950.c
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/macppc/dev/if_bm.c
cvs rdiff -

CVS commit: src

2016-12-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Dec 15 09:17:26 UTC 2016

Modified Files:
src/distrib/sets/lists/xbase: mi
src/external/mit/xorg/lib/xkeyboard-config: Makefile
Added Files:
src/external/mit/xorg/lib/xkeyboard-config: xkeyboard-config.man
Removed Files:
src/external/mit/xorg/lib/xkeyboard-config: xkeyboard-config.7

Log Message:
add the xkeyboard-config manual as a .man, so that the normal X processing
of it happens.


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/distrib/sets/lists/xbase/mi
cvs rdiff -u -r1.11 -r1.12 \
src/external/mit/xorg/lib/xkeyboard-config/Makefile
cvs rdiff -u -r1.1 -r0 \
src/external/mit/xorg/lib/xkeyboard-config/xkeyboard-config.7
cvs rdiff -u -r0 -r1.1 \
src/external/mit/xorg/lib/xkeyboard-config/xkeyboard-config.man

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/kernel

2016-12-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Dec 15 08:57:24 UTC 2016

Modified Files:
src/tests/kernel: t_ptrace_wait.h

Log Message:
Prepare t_ptrace_wait.h for hardware watchpoints API

Add new symbol ATF_TP_ADD_TC_HAVE_PTRACE_WATCHPOINTS() to be protected with
the __HAVE_PTRACE_WATCHPOINTS guard.

XXX:
Mark check_happy() with __attribute__((optimize("O0"))).
Disabled optimization is required to make tests for hardware assisted
traps in .text functional.

Tested with GCC 5.4 on NetBSD 7.99.47 amd64

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/kernel/t_ptrace_wait.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.