kamil
d152fc3170
Document TRAP_EXEC in SIGRAP in siginfo(2)
...
TRAP_EXEC - Process exec trap
This signal is emitted on exec() when a process is controlled by a
debugger.
Sponsored by <The NetBSD Foundation>
2017-01-07 01:22:12 +00:00
kamil
a415cb97d3
Fix MKCATPAGES=yes build - fix typo in cat3/krb5_checksum_is_keyed.0
2017-01-07 00:47:18 +00:00
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
kamil
5b0bbc1439
Add new test siginfo4 in t_ptrace_wait{,3,4,6,id,pid}
...
siginfo4:
Detect SIGTRAP TRAP_EXEC from tracee
This test is currently disabled and it will be enabled once
PT_[SG]ET_SIGINFO will land the sources.
Sponsored by <The NetBSD Foundation>
2017-01-06 22:40:06 +00:00
christos
81c11d5f0f
handle the case where we don't have the files built yet
2017-01-06 20:27:19 +00:00
christos
9ed7390988
Add log validation
2017-01-06 19:20:24 +00:00
christos
8362164498
get the right version even for the tools build.
2017-01-06 17:26:41 +00:00
christos
d20e855db5
don't try to run a non-existing nbcat
2017-01-06 17:25:32 +00:00
christos
792fa3b107
don't run grep if we don't have the Makefile, like when we are building
...
objdirs
2017-01-06 17:22:51 +00:00
christos
5d66200563
don't use sed for the tools version because during objdir etc runs we don't
...
have ${TOOL_SED} yet available.
2017-01-06 17:13:22 +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
roy
84fe414e1f
KNF
2017-01-06 14:25:41 +00:00
roy
9180469668
KNF
2017-01-06 14:06:00 +00:00
roy
50a63ac8d2
KNF.
...
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.
No functional changes.
2017-01-06 13:53:18 +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
roy
846cb8f380
u_int -> unsigned int, u_int32_t -> uint32_t.
2017-01-06 09:14:07 +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
roy
506f84ec9a
Implement ncurses is_pad(3).
...
Correct documentation about is_keypad(3).
2017-01-05 23:15:43 +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
roy
433b66d936
Whitespace
2017-01-05 21:42:04 +00:00
skrll
7af73afe93
Don't mix abis in any CRUNCHEDPROG
2017-01-05 21:28:42 +00:00
roy
4550c5287c
Implement is_term_resized and resize_term(3) ncurses extensions.
...
resizeterm(3) is now a wrapper for resize_term(3).
2017-01-05 21:25:17 +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
roy
47cc2fc353
Add the set_escdelay(3) and set_tabsize(3) ncurses extensions.
2017-01-05 20:31:37 +00:00
mlelstv
65353cac77
Fix memory leak.
...
Found by maxv@
2017-01-05 16:35:33 +00:00
christos
83809af30d
set the timeout to 1 second so we can see packets flowing in real time.
2017-01-05 16:23:31 +00:00
christos
8a5a08cbc5
add npfd
2017-01-05 14:39:59 +00:00
christos
71cba524e4
add scripts for npfd
2017-01-05 14:39:09 +00:00
wiz
70acae63ba
Tag cleanup: if the last column contains 'obsolete', the one before should too.
2017-01-05 13:45:50 +00:00
wiz
e4ec469a39
Fix typo.
2017-01-05 12:35:41 +00:00
hannken
592be9ae45
Name all "vnode_impl_t" variables "vip".
...
No functional change.
2017-01-05 10:05:11 +00:00
wiz
25ffc5e78c
New sentence, new line.
2017-01-05 09:55:01 +00:00
wiz
b4e07d632b
Bump date for previous.
2017-01-05 09:54:03 +00:00
wiz
dd61d2ee17
Use Fl for flags.
2017-01-05 09:50:40 +00:00
wiz
3134e606a6
Whitespace.
2017-01-05 09:46:32 +00:00
wiz
6e0a1cbf88
Use Ev for environment variables.
2017-01-05 09:46:08 +00:00
msaitoh
01159c64ed
Update the dmamp argument only when the allocation succeeded.
2017-01-05 09:08:44 +00:00
ryo
55563c97ca
"vmstat -ie[v]" auto fit to minimum columns
...
Reviewed by msaitoh@
2017-01-05 07:53:20 +00:00
msaitoh
b8d736fb1d
Fix INIT_DEBUGOUT() messages.
2017-01-05 05:53:23 +00:00