Lines Matching refs:outstate
742 struct kdp_core_out_state *outstate = (struct kdp_core_out_state *)kdp_core_out_state; in kdp_reset_output_vars() local
746 outstate->kcos_totalbytes = totalbytes; in kdp_reset_output_vars()
747 outstate->kcos_bytes_written = 0; in kdp_reset_output_vars()
748 outstate->kcos_lastpercent = 0; in kdp_reset_output_vars()
749 outstate->kcos_error = KERN_SUCCESS; in kdp_reset_output_vars()
752 STAILQ_FOREACH(current_stage, &outstate->kcos_out_stage, kos_next) { in kdp_reset_output_vars()
758 if (outstate->kcos_enforce_encryption && !outstate->kcos_encryption_stage) { in kdp_reset_output_vars()
767 } else if (outstate->kcos_encryption_stage) { in kdp_reset_output_vars()
768 outstate->kcos_encryption_stage->kos_bypass = true; in kdp_reset_output_vars()
775 kern_dump_update_header(struct kdp_core_out_state *outstate) in kern_dump_update_header() argument
777 struct kdp_output_stage *first_stage = STAILQ_FIRST(&outstate->kcos_out_stage); in kern_dump_update_header()
817 struct kdp_core_out_state *outstate = (struct kdp_core_out_state *)kdp_core_out_state; in kern_dump_record_file() local
823 last_stage = STAILQ_LAST(&outstate->kcos_out_stage, kdp_output_stage, kos_next); in kern_dump_record_file()
836 ret = kern_dump_update_header(outstate); in kern_dump_record_file()
847 struct kdp_core_out_state *outstate = (struct kdp_core_out_state *)kdp_core_out_state; in kern_dump_seek_to_next_file() local
848 struct kdp_output_stage *first_stage = STAILQ_FIRST(&outstate->kcos_out_stage); in kern_dump_seek_to_next_file()
862 kern_dump_write_public_key(struct kdp_core_out_state *outstate) in kern_dump_write_public_key() argument
864 struct kdp_output_stage *first_stage = STAILQ_FIRST(&outstate->kcos_out_stage); in kern_dump_write_public_key()
927 chain_output_stages(enum kern_dump_type kd_variant, struct kdp_core_out_state *outstate, uint64_t *… in chain_output_stages() argument
939 …STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &memory_backing_aware_buffer_output_stage, kos_next); in chain_output_stages()
949 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &lz4_output_stage, kos_next); in chain_output_stages()
952 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &progress_notify_output_stage, kos_next); in chain_output_stages()
957 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &aea_output_stage, kos_next); in chain_output_stages()
958 outstate->kcos_encryption_stage = &aea_output_stage; in chain_output_stages()
961 outstate->kcos_enforce_encryption = kern_dump_should_enforce_encryption(); in chain_output_stages()
970 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &disk_output_stage, kos_next); in chain_output_stages()
978 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &zlib_output_stage, kos_next); in chain_output_stages()
981 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &progress_notify_output_stage, kos_next); in chain_output_stages()
982 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &buffer_output_stage, kos_next); in chain_output_stages()
983 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &net_output_stage, kos_next); in chain_output_stages()
992 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &zlib_output_stage, kos_next); in chain_output_stages()
995 STAILQ_INSERT_TAIL(&outstate->kcos_out_stage, &shmem_output_stage, kos_next); in chain_output_stages()
1000 STAILQ_FOREACH(current, &outstate->kcos_out_stage, kos_next) { in chain_output_stages()
1001 current->kos_outstate = outstate; in chain_output_stages()
1009 dump_panic_buffer(struct kdp_core_out_state *outstate, char *panic_buf, size_t panic_len, in dump_panic_buffer() argument
1017 ret = kdp_reset_output_vars(outstate, panic_len, true, &should_skip); in dump_panic_buffer()
1028 ret = kdp_core_output(outstate, panic_len, panic_buf); in dump_panic_buffer()
1035 ret = kdp_core_output(outstate, 0, NULL); in dump_panic_buffer()
1037 …"Failed to flush panic region data : kdp_core_output(%p, 0, NULL) returned 0x%x\n", outstate, ret); in dump_panic_buffer()
1041 ret = kern_dump_record_file(outstate, "panic_region", *foffset, &compressed_panic_region_len, in dump_panic_buffer()
1051 ret = kern_dump_seek_to_next_file(outstate, *foffset); in dump_panic_buffer()
1064 struct kdp_core_out_state outstate = { }; in do_kern_dump() local
1075 bzero(&outstate, sizeof(outstate)); in do_kern_dump()
1076 STAILQ_INIT(&outstate.kcos_out_stage); in do_kern_dump()
1077 ret = chain_output_stages(kd_variant, &outstate, &details_flags); in do_kern_dump()
1082 first_stage = STAILQ_FIRST(&outstate.kcos_out_stage); in do_kern_dump()
1130 ret = kern_dump_write_public_key(&outstate); in do_kern_dump()
1158 ret = dump_panic_buffer(&outstate, panic_buf, panic_len, &foffset, details_flags); in do_kern_dump()
1171 ret = kdp_reset_output_vars(&outstate, panic_stackshot_len, true, &should_skip); in do_kern_dump()
1178 …if ((ret = kdp_core_output(&outstate, panic_stackshot_len, (void *)panic_stackshot_buf)) != KERN_S… in do_kern_dump()
1182 } else if ((ret = kdp_core_output(&outstate, 0, NULL)) != KERN_SUCCESS) { in do_kern_dump()
1183 …, "Failed to flush stackshot data : kdp_core_output(%p, 0, NULL) returned 0x%x\n", &outstate, ret); in do_kern_dump()
1185 …} else if ((ret = kern_dump_record_file(&outstate, "panic_stackshot.kcdata", foffset, &compressed_… in do_kern_dump()
1191 if ((ret = kern_dump_seek_to_next_file(&outstate, foffset)) != KERN_SUCCESS) { in do_kern_dump()
1207 if (kern_do_coredump(&outstate, FALSE, foffset, &foffset, details_flags) != 0) { in do_kern_dump()
1212 if (kern_do_coredump(&outstate, TRUE, foffset, &foffset, details_flags) != 0) { in do_kern_dump()
1283 kern_dump_update_header(&outstate); in do_kern_dump()