db_capture.c (178492) | db_capture.c (217326) |
---|---|
1/*- 2 * Copyright (c) 2007 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26 27/* 28 * DDB capture support: capture kernel debugger output into a fixed-size 29 * buffer for later dumping to disk or extraction from user space. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26 27/* 28 * DDB capture support: capture kernel debugger output into a fixed-size 29 * buffer for later dumping to disk or extraction from user space. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/ddb/db_capture.c 178492 2008-04-25 13:23:36Z rwatson $"); | 33__FBSDID("$FreeBSD: head/sys/ddb/db_capture.c 217326 2011-01-12 19:54:19Z mdf $"); |
34 35#include "opt_ddb.h" 36 37#include <sys/param.h> 38#include <sys/conf.h> 39#include <sys/kernel.h> 40#include <sys/kerneldump.h> 41#include <sys/malloc.h> --- 43 unchanged lines hidden (view full) --- 85 86SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, bufoff, CTLFLAG_RD, 87 &db_capture_bufoff, 0, "Bytes of data in DDB capture buffer"); 88 89SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, maxbufsize, CTLFLAG_RD, 90 &db_capture_maxbufsize, 0, 91 "Maximum value for debug.ddb.capture.bufsize"); 92 | 34 35#include "opt_ddb.h" 36 37#include <sys/param.h> 38#include <sys/conf.h> 39#include <sys/kernel.h> 40#include <sys/kerneldump.h> 41#include <sys/malloc.h> --- 43 unchanged lines hidden (view full) --- 85 86SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, bufoff, CTLFLAG_RD, 87 &db_capture_bufoff, 0, "Bytes of data in DDB capture buffer"); 88 89SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, maxbufsize, CTLFLAG_RD, 90 &db_capture_maxbufsize, 0, 91 "Maximum value for debug.ddb.capture.bufsize"); 92 |
93SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, inprogress, CTLFLAG_RD, | 93SYSCTL_INT(_debug_ddb_capture, OID_AUTO, inprogress, CTLFLAG_RD, |
94 &db_capture_inprogress, 0, "DDB output capture in progress"); 95 96/* 97 * Boot-time allocation of the DDB capture buffer, if any. Force all buffer 98 * sizes, including the maximum size, to be rounded to block sizes. 99 */ 100static void 101db_capture_sysinit(__unused void *dummy) --- 260 unchanged lines hidden --- | 94 &db_capture_inprogress, 0, "DDB output capture in progress"); 95 96/* 97 * Boot-time allocation of the DDB capture buffer, if any. Force all buffer 98 * sizes, including the maximum size, to be rounded to block sizes. 99 */ 100static void 101db_capture_sysinit(__unused void *dummy) --- 260 unchanged lines hidden --- |