#
81930014 |
| 07-Jun-2001 |
Peter Wemm <peter@FreeBSD.org> |
Make the TUNABLE_*() macros look and behave more consistantly like the SYSCTL_*() macros. TUNABLE_INT_DECL() was an odd name because it didn't actually declare the int, which is what the name sugges
Make the TUNABLE_*() macros look and behave more consistantly like the SYSCTL_*() macros. TUNABLE_INT_DECL() was an odd name because it didn't actually declare the int, which is what the name suggests it would do.
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
0006681f |
| 28-Mar-2001 |
John Baldwin <jhb@FreeBSD.org> |
Switch from save/disable/restore_intr() to critical_enter/exit().
|
#
62d654c1 |
| 20-Feb-2001 |
John Baldwin <jhb@FreeBSD.org> |
- In the KTR_EXTEND case, use a const char * to point to the passed in filename insteada of copying the first 32 characters of it. - Add in const modifiers for the passed in format strings and file
- In the KTR_EXTEND case, use a const char * to point to the passed in filename insteada of copying the first 32 characters of it. - Add in const modifiers for the passed in format strings and filenames and their respective members in the ktr_entry struct.
show more ...
|
#
591faa2e |
| 20-Feb-2001 |
John Baldwin <jhb@FreeBSD.org> |
- Abolish the 'show ktr_first' and 'show ktr_next' commands. - Add pager capability to the 'show ktr' command. It functions much like 'ps': Enter at the prompt displays one more entry, Space displ
- Abolish the 'show ktr_first' and 'show ktr_next' commands. - Add pager capability to the 'show ktr' command. It functions much like 'ps': Enter at the prompt displays one more entry, Space displays another page, and any other key quits.
show more ...
|
#
1aa97cde |
| 09-Feb-2001 |
John Baldwin <jhb@FreeBSD.org> |
Work around some sizeof(long) != sizeof(int) bogons.
|
#
cd85c9e1 |
| 09-Feb-2001 |
John Baldwin <jhb@FreeBSD.org> |
Change the ktr ddb commands to be show commands. The commands are now as follows: - show ktr_first display the first entry - show ktr_next display the next entry - show ktr display the entire bu
Change the ktr ddb commands to be show commands. The commands are now as follows: - show ktr_first display the first entry - show ktr_next display the next entry - show ktr display the entire buffer
The /v modifiers continue to work as described previously.
Requested by: bde
show more ...
|
#
ef73ae4b |
| 10-Jan-2001 |
Jake Burkholder <jake@FreeBSD.org> |
Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables other then curproc.
|
#
a0a7328b |
| 06-Jan-2001 |
John Baldwin <jhb@FreeBSD.org> |
- Move all of the KTR sysctl's under a new debug.ktr mib. - Provide TUNABLE_INT() hooks for ktr_cpumask, ktr_mask, and ktr_verbose so that they can be set from the loader by their respective sysctl
- Move all of the KTR sysctl's under a new debug.ktr mib. - Provide TUNABLE_INT() hooks for ktr_cpumask, ktr_mask, and ktr_verbose so that they can be set from the loader by their respective sysctl names. For example, to turn on KTR_INTR and KTR_PROC in ktr_mask, one could stick 'debug.ktr.mask="0x1200"' in /boot/loader.conf.
show more ...
|
#
7fcd0cb3 |
| 29-Dec-2000 |
Greg Lehey <grog@FreeBSD.org> |
Partially revert revision 1.7: Only use getnanotime instead of nanotime if we would run into trouble with nanotime (i.e. if we are tracing KTR_LOCK).
Reviewed by: jhb
|
#
de362218 |
| 15-Dec-2000 |
John Baldwin <jhb@FreeBSD.org> |
Add in MI implementations of the KTR trace buffer ddb commands. The commands have also been slightly updated as follows: - Use ktr_idx to find the newest entry rather than walking the buffer compa
Add in MI implementations of the KTR trace buffer ddb commands. The commands have also been slightly updated as follows: - Use ktr_idx to find the newest entry rather than walking the buffer comparing timespecs. Timespecs are not always unique after the change to use getnanotime(9). - Add a new verbose setting. When the verbose setting is on, then the timestamp is printed with each message. If KTR_EXTEND is on, then the filename and line number are output as well. By default this option is off. It can be turned on with the 'v' modifier passed to the 'tbuf' and 'tall' commands. For the 'tnext' command, the 'v' modifier toggles the verbose mode. - Only display the cpu number for each message on SMP systems. - Don't display anything for an empty entry that hasn't been used yet.
show more ...
|
#
d664747b |
| 12-Dec-2000 |
John Baldwin <jhb@FreeBSD.org> |
- Don't bother taking a trace message if we have panic'd since doing so can lead to further panics. - Call getnanotime() instead of nanotime() for the timestamp. nanotime() is more precise, but
- Don't bother taking a trace message if we have panic'd since doing so can lead to further panics. - Call getnanotime() instead of nanotime() for the timestamp. nanotime() is more precise, but it also calls into the timer code, which results in mutex operations on the i386 arch. If KTR_LOCK is turned on, then ktr_tracepoint() recurses on itself until it exhausts the kernel stack. Eventually this should change to use get_cyclecount() instead, but that can't happen if get_cyclecount() is calling nanotime() instead of getnanotime().
show more ...
|
#
0959cc66 |
| 21-Nov-2000 |
John Baldwin <jhb@FreeBSD.org> |
Ahem, fix the disclaimer portion of the copyright so it disclaim's the voices in my head. You can sue the voices in Bill Paul's head all you want.
Noticed by: jhb
|
Revision tags: release/4.2.0 |
|
#
22f1b342 |
| 15-Nov-2000 |
John Baldwin <jhb@FreeBSD.org> |
Make ktr_verbose a bit more useful: - On SMP systems display the cpu number with each message - If ktr_verbose > 1, then include the filename and line number with each trace message
|
#
20af769e |
| 10-Nov-2000 |
John Baldwin <jhb@FreeBSD.org> |
Don't overwrite the filename for KTR_EXTEND with "../../kern/kern_ktr.c".
|
#
bf619f95 |
| 10-Nov-2000 |
John Baldwin <jhb@FreeBSD.org> |
Fix SMP kernel compiles by #include'ing machine/globals.h to get the cpuid variable.
|
#
d8f03321 |
| 07-Nov-2000 |
John Baldwin <jhb@FreeBSD.org> |
- Remove much of the inlining of the KTR tracepoints into a ktr_tracepoint() function declared in kern_ktr.c. The only inline checks left are the checks that compare KTR_COMPILE with the supplie
- Remove much of the inlining of the KTR tracepoints into a ktr_tracepoint() function declared in kern_ktr.c. The only inline checks left are the checks that compare KTR_COMPILE with the supplied mask and thus should be optimized away into either nothing or a direct call to ktr_tracepoint(). - Move several KTR-related options to opt_ktr.h now that they are only needed by kern_ktr.c and not by ktr.h. - Add in the ktr_verbose functionality if KTR_EXTEND is turned on. If the global variable 'ktr_verbose' is non-zero, then KTR messages will be dumped to the console. This variable can be set by either kernel code or via the 'debug.ktr_verbose' sysctl. It defaults to off unless the KTR_VERBOSE kernel option is specified in which case it defaults to on. This can be useful when the machine locks up spinning in a loop with interrupts disabled as you might be able to see what it is doing when it locks up.
Requested by: phk
show more ...
|
Revision tags: release/4.1.1_cvs |
|
#
62ae6c89 |
| 07-Sep-2000 |
Jason Evans <jasone@FreeBSD.org> |
Add KTR, a facility that logs kernel events in order to to facilitate debugging.
Acquired from: BSDi (BSD/OS) Submitted by: dfr, grog, jake, jhb
|