#
552afd9c |
| 10-Jul-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Clean up and wash struct iovec and struct uio handling.
Add copyiniov() which copies a struct iovec array in from userland into a malloc'ed struct iovec. Caller frees.
Change uiofromiov() to mallo
Clean up and wash struct iovec and struct uio handling.
Add copyiniov() which copies a struct iovec array in from userland into a malloc'ed struct iovec. Caller frees.
Change uiofromiov() to malloc the uio (caller frees) and name it copyinuio() which is more appropriate.
Add cloneuio() which returns a malloc'ed copy. Caller frees.
Use them throughout.
show more ...
|
#
8e1b7974 |
| 18-Jun-2004 |
Brian Feldman <green@FreeBSD.org> |
Add a sysctl/tunable, "kern.always_console_output", that lets you set output to permanently (not ephemerally) go to the console. It is also sent to any other console specified by TIOCCONS as normal.
Add a sysctl/tunable, "kern.always_console_output", that lets you set output to permanently (not ephemerally) go to the console. It is also sent to any other console specified by TIOCCONS as normal.
While I'm here, document the kern.log_console_output sysctl.
show more ...
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
7f8a436f |
| 05-Apr-2004 |
Warner Losh <imp@FreeBSD.org> |
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999.
Approved by: core
|
Revision tags: release/5.2.1_cvs, release/5.2.1 |
|
#
32869e71 |
| 19-Feb-2004 |
Nate Lawson <njl@FreeBSD.org> |
Add support for 'h' and 'hh' modifiers for printf(9).
Submitted by: Bruno Ducrot <ducrot AT poupinou.org> Reviewed by: bde
|
Revision tags: release/5.2.0_cvs, release/5.2.0 |
|
#
77411499 |
| 07-Dec-2003 |
Scott Long <scottl@FreeBSD.org> |
Re-arrange and consolidate some random debugging stuff
|
Revision tags: release/4.9.0_cvs, release/4.9.0 |
|
#
68f2d20b |
| 22-Jul-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Revert stuff which accidentally ended up in the previous commit.
|
#
55d1d703 |
| 22-Jul-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't attempt to inline large functions mb_alloc() and mb_free(), it more than doubles the text size of this file.
GCC has wisely ignored us on this previously
|
#
adef9265 |
| 22-Jun-2003 |
Ian Dowse <iedowse@FreeBSD.org> |
When DDB is active, always send printf() output directly to the console, even if there is a TIOCCONS console tty. We were already doing this after a panic, but it's also useful when entering DDB for
When DDB is active, always send printf() output directly to the console, even if there is a TIOCCONS console tty. We were already doing this after a panic, but it's also useful when entering DDB for some other reason too.
show more ...
|
#
d29bf12f |
| 22-Jun-2003 |
Ian Dowse <iedowse@FreeBSD.org> |
Use a new message buffer `consmsgbuf' to forward messages to a TIOCCONS console (e.g. xconsole) via a timeout routine instead of calling into the tty code directly from printf(). This fixes a number
Use a new message buffer `consmsgbuf' to forward messages to a TIOCCONS console (e.g. xconsole) via a timeout routine instead of calling into the tty code directly from printf(). This fixes a number of cases where calling printf() at the wrong time (such as with locks held) would cause a panic if xconsole is running.
The TIOCCONS message buffer is 8k in size by default, but this can be changed with the kern.consmsgbuf_size sysctl. By default, messages are checked for 5 times per second. The timer runs and the buffer memory remains allocated only at times when a TIOCCONS console is active.
Discussed on: freebsd-arch
show more ...
|
#
4784a469 |
| 22-Jun-2003 |
Ian Dowse <iedowse@FreeBSD.org> |
Replace the code for reading and writing the kernel message buffer with a new implementation that has a mostly reentrant "addchar" routine, supports multiple message buffers in the kernel, and hides
Replace the code for reading and writing the kernel message buffer with a new implementation that has a mostly reentrant "addchar" routine, supports multiple message buffers in the kernel, and hides the implementation details from callers.
The new code uses a kind of sequence number to represend the current read and write positions in the buffer. This approach (suggested mainly by bde) permits the read and write pointers to be maintained separately, which reduces the number of atomic operations that are required. The "mostly reentrant" above refers to the way that while it is now always safe to have any number of concurrent writers, readers could see the message buffer after a writer has advanced the pointers but before it has witten the new character.
Discussed on: freebsd-arch
show more ...
|
#
677b542e |
| 11-Jun-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
Use __FBSDID().
|
Revision tags: release/5.1.0_cvs, release/5.1.0 |
|
#
74f1af01 |
| 31-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove unused variable(s). Remove break after goto
Found by: FlexeLint
|
#
b5a2bad1 |
| 18-Apr-2003 |
John Baldwin <jhb@FreeBSD.org> |
Don't assume that p_session hasn't changed out from under us after unlocking the process and session. Instead, cache a true reference to the session when we do the hold and release our reference on
Don't assume that p_session hasn't changed out from under us after unlocking the process and session. Instead, cache a true reference to the session when we do the hold and release our reference on that session. This avoids the need for the proc lock when dropping the reference.
show more ...
|
Revision tags: release/4.8.0_cvs, release/4.8.0 |
|
#
6205bf31 |
| 28-Mar-2003 |
Ian Dowse <iedowse@FreeBSD.org> |
Add a checksum to the kernel message buffer, and update it every time a character is written. Use this at boot time to reject the existing buffer contents if they are corrupt. This fixes a problem se
Add a checksum to the kernel message buffer, and update it every time a character is written. Use this at boot time to reject the existing buffer contents if they are corrupt. This fixes a problem seen on some hardware (especially laptops) where the message buffer gets partially corrupted during a short power cycle or reset, but the msgbuf structure is left intact so it gets reused, resulting in random junk and control characters appearing in dmesg and /var/log/messages.
PR: kern/28497
show more ...
|
#
b4b138c2 |
| 18-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Including <sys/stdint.h> is (almost?) universally only to be able to use %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
|
#
a163d034 |
| 19-Feb-2003 |
Warner Losh <imp@FreeBSD.org> |
Back out M_* changes, per decision of the TRB.
Approved by: trb
|
#
8751a8c7 |
| 04-Feb-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add vsnrprintf() which is just like vsnprintf() but takes a "radix" argument for the kernel-special %r format.
|
#
44956c98 |
| 21-Jan-2003 |
Alfred Perlstein <alfred@FreeBSD.org> |
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
Revision tags: release/5.0.0_cvs, release/5.0.0 |
|
#
377a66bc |
| 07-Jan-2003 |
John Baldwin <jhb@FreeBSD.org> |
Cast the integer read as the first argument for %b to an unsigned integer so it's value is not sign extended when assigned to the uintmax_t variable used internally by printf. For example, if bit 31
Cast the integer read as the first argument for %b to an unsigned integer so it's value is not sign extended when assigned to the uintmax_t variable used internally by printf. For example, if bit 31 is set in the cpuid feature word, then %b would print out the initial value as a 16 character hexadecimal value. Now it only prints out an 8 character value.
Reviewed by: bde
show more ...
|
#
3ae59505 |
| 04-Jan-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Move #include of ddb/ddb.h up with the rest.
|
#
01ee4395 |
| 14-Nov-2002 |
Thomas Moestl <tmm@FreeBSD.org> |
Make the msg_size, msg_bufx and msg_bufr memebers of struct msgbuf signed, since they describe a ring buffer and signed arithmetic is performed on them. This avoids some evilish casts.
Since this ch
Make the msg_size, msg_bufx and msg_bufr memebers of struct msgbuf signed, since they describe a ring buffer and signed arithmetic is performed on them. This avoids some evilish casts.
Since this changes all but two members of this structure, style(9) those remaining ones, too.
Requested by: bde Reviewed by: bde (earlier version)
show more ...
|
#
2bb95458 |
| 13-Nov-2002 |
Maxime Henrion <mux@FreeBSD.org> |
Add support for the C99 %t format modifier.
|
#
4578a2e6 |
| 25-Oct-2002 |
Maxime Henrion <mux@FreeBSD.org> |
- Rename the DDB specific %z printf format to %y. - Make DDB use %y instead of %z. - Teach GCC about %y. - Implement support for the C99 %z format modifier.
Approved by: re@ Reviewed by: peter Teste
- Rename the DDB specific %z printf format to %y. - Make DDB use %y instead of %z. - Teach GCC about %y. - Implement support for the C99 %z format modifier.
Approved by: re@ Reviewed by: peter Tested on: i386, sparc64
show more ...
|
#
85594430 |
| 11-Oct-2002 |
John Baldwin <jhb@FreeBSD.org> |
Fix %z to always print values as signed like it is supposed to.
Reviewed by: bde Tested on: i386 in ddb
|
Revision tags: release/4.7.0_cvs |
|
#
2f9752e9 |
| 28-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Change a return to a break so the local buffers get properly freeed.
Spotte by: FlexeLint
Reviewed by: rwatson
|