Home
last modified time | relevance | path

Searched refs:db_capture_bufsize (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/ddb/
H A Ddb_capture.c73 static u_int db_capture_bufsize = DDB_CAPTURE_DEFAULTBUFSIZE; variable
105 TUNABLE_INT_FETCH("debug.ddb.capture.bufsize", &db_capture_bufsize); in db_capture_sysinit()
108 db_capture_bufsize = roundup(db_capture_bufsize, TEXTDUMP_BLOCKSIZE); in db_capture_sysinit()
109 if (db_capture_bufsize > db_capture_maxbufsize) in db_capture_sysinit()
110 db_capture_bufsize = db_capture_maxbufsize; in db_capture_sysinit()
111 if (db_capture_bufsize != 0) in db_capture_sysinit()
112 db_capture_buf = malloc(db_capture_bufsize, M_DDB_CAPTURE, in db_capture_sysinit()
128 size = db_capture_bufsize; in sysctl_debug_ddb_capture_bufsize()
157 db_capture_bufsize = size; in sysctl_debug_ddb_capture_bufsize()
160 KASSERT(db_capture_bufoff <= db_capture_bufsize, in sysctl_debug_ddb_capture_bufsize()
[all …]
/freebsd/sbin/ddb/
H A Dddb_capture.c153 u_int db_capture_bufoff, db_capture_bufsize, db_capture_inprogress; in ddb_capture_status_kvm() local
158 if (kread_symbol(kvm, X_DB_CAPTURE_BUFSIZE, &db_capture_bufsize, in ddb_capture_status_kvm()
159 sizeof(db_capture_bufsize), 0) < 0) in ddb_capture_status_kvm()
164 printf("%u/%u bytes used\n", db_capture_bufoff, db_capture_bufsize); in ddb_capture_status_kvm()
175 u_int db_capture_bufoff, db_capture_bufsize, db_capture_inprogress; in ddb_capture_status_sysctl() local
183 if (sysctlbyname(SYSCTL_DDB_CAPTURE_BUFSIZE, &db_capture_bufsize, in ddb_capture_status_sysctl()
190 printf("%u/%u bytes used\n", db_capture_bufoff, db_capture_bufsize); in ddb_capture_status_sysctl()