Lines Matching defs:db_capture_bufoff
98 u_int db_capture_bufoff;
105 if (kread_symbol(kvm, X_DB_CAPTURE_BUFOFF, &db_capture_bufoff,
106 sizeof(db_capture_bufoff), 0) < 0)
107 errx(-1, "kvm: unable to read db_capture_bufoff");
109 buffer = malloc(db_capture_bufoff + 1);
111 err(-1, "malloc: db_capture_bufoff (%u)",
112 db_capture_bufoff);
113 bzero(buffer, db_capture_bufoff + 1);
115 if (kread(kvm, db_capture_buf, buffer, db_capture_bufoff, 0) < 0)
154 u_int db_capture_bufoff, db_capture_bufsize, db_capture_inprogress;
156 if (kread_symbol(kvm, X_DB_CAPTURE_BUFOFF, &db_capture_bufoff,
157 sizeof(db_capture_bufoff), 0) < 0)
158 errx(-1, "kvm: unable to read db_capture_bufoff");
165 printf("%u/%u bytes used\n", db_capture_bufoff, db_capture_bufsize);
176 u_int db_capture_bufoff, db_capture_bufsize, db_capture_inprogress;
179 len = sizeof(db_capture_bufoff);
180 if (sysctlbyname(SYSCTL_DDB_CAPTURE_BUFOFF, &db_capture_bufoff, &len,
183 len = sizeof(db_capture_bufoff);
191 printf("%u/%u bytes used\n", db_capture_bufoff, db_capture_bufsize);