kamil
ba2267e1eb
Welcome to 7.99.56 for new ptrace(2) interfaces and SIGTRAP type TRAP_EXEC
...
Kernel bump for PT_GET_SIGINFO and PT_SET_SIGINFO in ptrace(2) and new
si_code value TRAP_EXEC in <sys/siginfo.h> for the SIGTRAP signal.
Sponsored by <The NetBSD Foundation>
2017-01-06 22:58:00 +00:00
kamil
e4281b2073
Introduce new ptrace(2) interface: PT_SET_SIGINFO and PT_GET_SIGINFO
...
This interface is designed to read signal information emited to tracee and
fake this signal with new value.
This functionality is required to distinguish types of events that occured
in the tracee and intercepted by a debugger.
These accessors introduce a new structure type ptrace_siginfo:
/*
* Signal Information structure
*/
typedef struct ptrace_siginfo {
siginfo_t psi_siginfo; /* signal information structure */
lwpid_t psi_lwpid; /* destination LWP of the signal
* value 0 means the whole process
* (route signal to all LWPs) */
} ptrace_siginfo_t;
Include <sys/siginfo.h> in <sys/ptrace.h> in order to not break existing
software due to unknown symbol siginfo_t.
This interface has been proposed to the tech-kern@ mailing list.
Sponsored by <The NetBSD Foundation>
2017-01-06 22:53:17 +00:00
kamil
239e90be56
Introduce new SIGTRAP code: TRAP_EXEC
...
On exec() events under a debugger generate the SIGTRAP signal with
TRAP_EXEC property. This allows tracer to distinguish exec() events easily.
Sponsored by <The NetBSD Foundation>
2017-01-06 22:42:58 +00:00
skrll
5dc9a27fcf
Use the VC property mailbox to request the UART clock rate and use it
...
appropriately
Newer firmwares use 48MHz
2017-01-06 14:55:37 +00:00
skrll
7ed3f784bc
Whitespace
2017-01-06 14:53:32 +00:00
pgoyette
d020b0ddde
Implement a common spkr_detach() function and call it from the
...
attachment-specific detach functions. Returns EBUSY if the
device instance is busy, based on whether or not a sc->sc_inbuf
is allocated. The buffer is malloc()d at spkropen time, and is
free()d in spkrclose().
Now we can actually implement the MODULE_CMD_FINI command and
unload the driver at will.
Addresses my PR kern/51785
2017-01-06 09:32:08 +00:00
maxv
88aac29387
Explain how all that mess works, without actually fixing it yet.
2017-01-06 09:14:36 +00:00
maxv
ad05649fb8
Rename a few things
2017-01-06 09:04:06 +00:00
maxv
c6005684fd
Explain the computation
2017-01-06 08:36:56 +00:00
maxv
2b321a2d23
Remove a few #if 0s, and explain what we are doing on PAE: the last two PAs
...
are entered in reversed order.
2017-01-06 08:32:26 +00:00
msaitoh
be2192bb96
- Set IPV6EXDIS bit in RFCTL register because of an Errata on 82575 and newer
...
devices.
- Update comment in wm_init_rss().
2017-01-06 08:05:26 +00:00
pgoyette
ee0d07d7e3
As pointed out by christos@, since the macros already include a cast
...
to uint64_t, it's not necessary to cast again at point of use.
2017-01-06 03:33:19 +00:00
knakahara
cc189cdb90
remove unnecessary conversion.
...
gif_softc->gif_pdst is already valid sockaddr.
2017-01-06 03:25:13 +00:00
pgoyette
a62101788a
Use the new magic BINTIME_SCALE_* macros instead of magic numbers.
...
No functional change.
2017-01-05 23:29:14 +00:00
pgoyette
492ecd99e3
Define macros for the time conversion magic numbers.
2017-01-05 23:24:39 +00:00
pgoyette
7f64160e7f
The inline functions {ms,us,ns}2bintime() are currently defined\nincorrectly, and always result in the bt.frac being set to zero.\nEven correcting for left- vs right shifts, the results are low\nprecision with at most 32 significant bits.\n\nRewrite using 64-bit multiply rather than division to get proper\nresults. Also the multiply is less costly than a divide on most\nplatforms.
2017-01-05 22:51:15 +00:00
palle
de85b4614f
sun4v: TRAP_SETUP() updated to set mmu context id properly for both sun4v and sun4u platforms. Verified using qemu for both sun4u and sun4v systems
2017-01-05 20:37:06 +00:00
mlelstv
65353cac77
Fix memory leak.
...
Found by maxv@
2017-01-05 16:35:33 +00:00
hannken
592be9ae45
Name all "vnode_impl_t" variables "vip".
...
No functional change.
2017-01-05 10:05:11 +00:00
msaitoh
01159c64ed
Update the dmamp argument only when the allocation succeeded.
2017-01-05 09:08:44 +00:00
msaitoh
b8d736fb1d
Fix INIT_DEBUGOUT() messages.
2017-01-05 05:53:23 +00:00
pgoyette
c9b6361b98
By popular demand, update kernhist to use bintime(9) as the basis for
...
its timestamps.
As this changes storage structures for data passed between kernel and
userland, welcome to 7.99.55!
XXX Output routines still use microsecond resolution when printf()ing.
XXX Possible future feature would be addition of option to use
XXX getbintime(9) for less time-critical histories.
2017-01-05 03:40:33 +00:00
pgoyette
c42fba4183
Actually initialize the sysctl stuff for kernhist! Missed this file
...
in earlier commits.
2017-01-05 03:22:20 +00:00
christos
f44d9dbae7
don't include uvm_physseg.h for kmem grovellers.
2017-01-04 23:59:49 +00:00
christos
eb4ab08b1b
really, don't install uvm_physseg.h!
2017-01-04 23:59:27 +00:00
christos
f83bb9fcab
Collect a list of kernel swap files to be removed (Yorick Hardy)
2017-01-04 21:37:46 +00:00
christos
ea1524ad60
add a simple stacktrace macro
2017-01-04 21:25:41 +00:00
palle
474386fffd
sun4v: make debugging kernel bringup a bit easier by using the slowtrap code path for currently unhandled trap level 1 trap entries 0x00-0x23 and 0x28-0x30
2017-01-04 20:19:29 +00:00
christos
393981f1b2
match the M* and N* targets.
2017-01-04 19:55:06 +00:00
christos
92bd3d8559
- kill NULL argument from in6_update_ifa
...
- amend in6_update_ifa1 to return the ia, so that we can use it in pfil hooks
to avoid NULL pointer crash.
2017-01-04 19:37:14 +00:00
hannken
78a3dd75dc
Expand struct vcache to individual variables (vcache.* -> vcache_*).
...
No functional change.
2017-01-04 17:13:50 +00:00
hannken
b5dbef9129
Comment the fields of struct vnode_impl.
...
No functional change.
2017-01-04 17:06:13 +00:00
christos
4faed551bb
PR/51777: David Binderman: Remove unused computation
2017-01-04 15:53:14 +00:00
christos
dd655a14e8
PR/51776: David Binderman: Remove unused variable.
2017-01-04 15:51:41 +00:00
christos
4778b6dcdc
PR/51775: David Binderman: Remove unused variable.
2017-01-04 15:50:34 +00:00
christos
fb87ff0608
PR/51774: David Binderman: Remove unused variable.
2017-01-04 15:49:28 +00:00
christos
772001de84
PR/51772: Yorick Hardy: Don't hard-code "netbsd", use ${.TARGET} consistently.
2017-01-04 15:43:04 +00:00
martin
68f5a34706
Fix optlen calculation for the SACK block - 2 bytes too few were
...
calculated, causing corruption in PR kern/51767.
2017-01-04 15:09:37 +00:00
ryo
7c72d62b0f
Not to use ph_inout[2]. dir (= PFIL_IN or PFIL_OUT) is 1 or 2, not 0 or 1.
2017-01-04 13:03:41 +00:00
kre
c6fa5aa928
Remove redundant tests: if optlen === 0, then optlen % 4 != 2 (it is 0)
...
so there is no need to test both.
2017-01-04 12:35:14 +00:00
hannken
bd6e0af46f
Change tmpfs_chsize() to update mtime etc. even if "length == node->tn_size".
...
Adresses PR kern/51762 "mtime not updated by open(O_TRUNC)"
2017-01-04 10:06:43 +00:00
hannken
836eaad2e3
Change ufs_truncate_retry() to call UFS_TRUNCATE() at least once.
...
Even with "newsize == ip->i_size" it must set mtime etc.
Adresses PR kern/51762 "mtime not updated by open(O_TRUNC)"
2017-01-04 10:04:17 +00:00
knakahara
f1b4006c55
fix typo. pointed out by msaitoh@n.o.
2017-01-04 04:43:08 +00:00
nonaka
08620666eb
Export some 802.11 IE manipulate functions.
2017-01-04 03:05:24 +00:00
pgoyette
a8a84e00d2
Per suggestion from christos@, make both timestamp fields 64-bits wide.
2017-01-04 01:52:13 +00:00
pgoyette
5a0b3ff699
Rearrange the sysctl export structure for better alignment.
2017-01-04 01:05:58 +00:00
christos
106cdf0378
use symbolic constants; no functional change.
2017-01-03 20:59:32 +00:00
christos
042834e792
simplify, and call the hooks after the address has been deleted like we did
...
for the ipv4 case.
2017-01-03 15:14:31 +00:00
christos
0a91c122c2
put it the way we had it before; since we check for the resulting size after
...
we added the extra space we can be equal to the size of the buffer.
2017-01-03 15:07:59 +00:00
christos
9a6f404c92
fix off-by-one
2017-01-03 13:09:33 +00:00