Searched refs:db_capture_bufoff (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/ddb/ |
H A D | db_capture.c | 75 static u_int db_capture_bufoff; /* Next location to write in buffer. */ variable 88 &db_capture_bufoff, 0, "Bytes of data in DDB capture buffer"); 146 len = min(db_capture_bufoff, size); in sysctl_debug_ddb_capture_bufsize() 155 db_capture_bufoff = len; in sysctl_debug_ddb_capture_bufsize() 160 KASSERT(db_capture_bufoff <= db_capture_bufsize, in sysctl_debug_ddb_capture_bufsize() 187 error = SYSCTL_OUT(req, db_capture_buf, db_capture_bufoff); in sysctl_debug_ddb_capture_data() 211 len = min(buflen, db_capture_bufsize - db_capture_bufoff); in db_capture_write() 212 bcopy(buffer, db_capture_buf + db_capture_bufoff, len); in db_capture_write() 213 db_capture_bufoff += len; in db_capture_write() 215 KASSERT(db_capture_bufoff <= db_capture_bufsize, in db_capture_write() [all …]
|
/freebsd/sbin/ddb/ |
H A D | ddb_capture.c | 97 u_int db_capture_bufoff; in ddb_capture_print_kvm() local 104 if (kread_symbol(kvm, X_DB_CAPTURE_BUFOFF, &db_capture_bufoff, in ddb_capture_print_kvm() 105 sizeof(db_capture_bufoff), 0) < 0) in ddb_capture_print_kvm() 108 buffer = malloc(db_capture_bufoff + 1); in ddb_capture_print_kvm() 111 db_capture_bufoff); in ddb_capture_print_kvm() 112 bzero(buffer, db_capture_bufoff + 1); in ddb_capture_print_kvm() 114 if (kread(kvm, db_capture_buf, buffer, db_capture_bufoff, 0) < 0) in ddb_capture_print_kvm() 153 u_int db_capture_bufoff, db_capture_bufsize, db_capture_inprogress; in ddb_capture_status_kvm() local 155 if (kread_symbol(kvm, X_DB_CAPTURE_BUFOFF, &db_capture_bufoff, in ddb_capture_status_kvm() 156 sizeof(db_capture_bufoff), 0) < 0) in ddb_capture_status_kvm() [all …]
|