/Linux-v4.19/arch/alpha/include/asm/ |
D | a.out-core.h | 23 static inline void aout_dump_thread(struct pt_regs *pt, struct user *dump) in aout_dump_thread() argument 28 dump->magic = CMAGIC; in aout_dump_thread() 29 dump->start_code = current->mm->start_code; in aout_dump_thread() 30 dump->start_data = current->mm->start_data; in aout_dump_thread() 31 dump->start_stack = rdusp() & ~(PAGE_SIZE - 1); in aout_dump_thread() 32 dump->u_tsize = ((current->mm->end_code - dump->start_code) in aout_dump_thread() 34 dump->u_dsize = ((current->mm->brk + PAGE_SIZE-1 - dump->start_data) in aout_dump_thread() 36 dump->u_ssize = (current->mm->start_stack - dump->start_stack in aout_dump_thread() 44 dump->regs[EF_V0] = pt->r0; in aout_dump_thread() 45 dump->regs[EF_T0] = pt->r1; in aout_dump_thread() [all …]
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | a.out-core.h | 24 static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump) in aout_dump_thread() argument 29 dump->magic = CMAGIC; in aout_dump_thread() 30 dump->start_code = 0; in aout_dump_thread() 31 dump->start_stack = rdusp() & ~(PAGE_SIZE - 1); in aout_dump_thread() 32 dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; in aout_dump_thread() 33 dump->u_dsize = ((unsigned long) (current->mm->brk + in aout_dump_thread() 35 dump->u_dsize -= dump->u_tsize; in aout_dump_thread() 36 dump->u_ssize = 0; in aout_dump_thread() 38 if (dump->start_stack < TASK_SIZE) in aout_dump_thread() 39 dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT; in aout_dump_thread() [all …]
|
/Linux-v4.19/arch/x86/include/asm/ |
D | a.out-core.h | 27 static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump) in aout_dump_thread() argument 30 dump->magic = CMAGIC; in aout_dump_thread() 31 dump->start_code = 0; in aout_dump_thread() 32 dump->start_stack = regs->sp & ~(PAGE_SIZE - 1); in aout_dump_thread() 33 dump->u_tsize = ((unsigned long)current->mm->end_code) >> PAGE_SHIFT; in aout_dump_thread() 34 dump->u_dsize = ((unsigned long)(current->mm->brk + (PAGE_SIZE - 1))) in aout_dump_thread() 36 dump->u_dsize -= dump->u_tsize; in aout_dump_thread() 37 dump->u_ssize = 0; in aout_dump_thread() 38 aout_dump_debugregs(dump); in aout_dump_thread() 40 if (dump->start_stack < TASK_SIZE) in aout_dump_thread() [all …]
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | opal-dump.c | 36 ssize_t (*show)(struct dump_obj *dump, struct dump_attribute *attr, 38 ssize_t (*store)(struct dump_obj *dump, struct dump_attribute *attr, 163 struct dump_obj *dump; in dump_attr_show() local 166 dump = to_dump_obj(kobj); in dump_attr_show() 171 return attribute->show(dump, attribute, buf); in dump_attr_show() 179 struct dump_obj *dump; in dump_attr_store() local 182 dump = to_dump_obj(kobj); in dump_attr_store() 187 return attribute->store(dump, attribute, buf, len); in dump_attr_store() 197 struct dump_obj *dump; in dump_release() local 199 dump = to_dump_obj(kobj); in dump_release() [all …]
|
/Linux-v4.19/arch/x86/ia32/ |
D | ia32_aout.c | 54 static void dump_thread32(struct pt_regs *regs, struct user32 *dump) in dump_thread32() argument 57 memset(dump, 0, sizeof(*dump)); in dump_thread32() 60 dump->magic = CMAGIC; in dump_thread32() 61 dump->start_code = 0; in dump_thread32() 62 dump->start_stack = regs->sp & ~(PAGE_SIZE - 1); in dump_thread32() 63 dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; in dump_thread32() 64 dump->u_dsize = ((unsigned long) in dump_thread32() 66 dump->u_dsize -= dump->u_tsize; in dump_thread32() 67 dump->u_debugreg[0] = get_dr(0); in dump_thread32() 68 dump->u_debugreg[1] = get_dr(1); in dump_thread32() [all …]
|
/Linux-v4.19/drivers/input/joystick/ |
D | joydump.c | 48 struct joydump *dump, *prev; /* one entry each */ in joydump_connect() local 84 dump = buf; in joydump_connect() 92 dump->data = u; in joydump_connect() 93 dump->time = t; in joydump_connect() 94 dump++; in joydump_connect() 100 dump->data = gameport_read(gameport); in joydump_connect() 102 if (dump->data ^ u) { in joydump_connect() 103 u = dump->data; in joydump_connect() 104 dump->time = t; in joydump_connect() 106 dump++; in joydump_connect() [all …]
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_debugdump.c | 369 static int nfp_add_tlv(u32 type, u32 total_tlv_sz, struct nfp_dump_state *dump) in nfp_add_tlv() argument 371 struct nfp_dump_tl *tl = dump->p; in nfp_add_tlv() 373 if (total_tlv_sz > dump->buf_size) in nfp_add_tlv() 376 if (dump->buf_size - total_tlv_sz < dump->dumped_size) in nfp_add_tlv() 382 dump->dumped_size += total_tlv_sz; in nfp_add_tlv() 383 dump->p += total_tlv_sz; in nfp_add_tlv() 390 struct nfp_dump_state *dump) in nfp_dump_error_tlv() argument 392 struct nfp_dump_error *dump_header = dump->p; in nfp_dump_error_tlv() 399 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_ERROR, total_size, dump); in nfp_dump_error_tlv() 409 static int nfp_dump_fwname(struct nfp_pf *pf, struct nfp_dump_state *dump) in nfp_dump_fwname() argument [all …]
|
/Linux-v4.19/Documentation/ABI/stable/ |
D | sysfs-firmware-opal-dump | 1 What: /sys/firmware/opal/dump 11 we will initiate a dump. 14 0xXX-0xYYYY: A directory for dump of type 0xXX and 19 and ID of the dump, use the id and type files. 20 Do not rely on any particular size of dump 21 type or dump id. 23 Each dump has the following files: 24 id: An ASCII representation of the dump ID 27 dump in the format "0x%x %s" with the ID 28 in hex and a description of the dump type [all …]
|
/Linux-v4.19/fs/ |
D | binfmt_aout.c | 53 struct user dump; in aout_core_dump() local 65 strncpy(dump.u_comm, current->comm, sizeof(dump.u_comm)); in aout_core_dump() 66 dump.u_ar0 = offsetof(struct user, regs); in aout_core_dump() 67 dump.signal = cprm->siginfo->si_signo; in aout_core_dump() 68 aout_dump_thread(cprm->regs, &dump); in aout_core_dump() 72 if ((dump.u_dsize + dump.u_ssize+1) * PAGE_SIZE > cprm->limit) in aout_core_dump() 73 dump.u_dsize = 0; in aout_core_dump() 76 if ((dump.u_ssize + 1) * PAGE_SIZE > cprm->limit) in aout_core_dump() 77 dump.u_ssize = 0; in aout_core_dump() 81 if (!access_ok(VERIFY_READ, START_DATA(dump), dump.u_dsize << PAGE_SHIFT)) in aout_core_dump() [all …]
|
/Linux-v4.19/Documentation/kdump/ |
D | kdump.txt | 11 Kdump uses kexec to quickly boot to a dump-capture kernel whenever a 12 dump of the system kernel's memory needs to be taken (for example, when 14 the reboot and is accessible to the dump-capture kernel. 17 memory image to a dump file on the local disk, or across the network to 24 the dump-capture kernel. This ensures that ongoing Direct Memory Access 25 (DMA) from the system kernel does not corrupt the dump-capture kernel. 26 The kexec -p command loads the dump-capture kernel into this reserved 31 region just before rebooting into the dump-capture kernel. 45 passed to the dump-capture kernel through the elfcorehdr= boot 50 With the dump-capture kernel, you can access the memory image through [all …]
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/fw/ |
D | dbg.h | 93 if (fwrt->dump.desc != &iwl_dump_desc_assert) in iwl_fw_free_dump_desc() 94 kfree(fwrt->dump.desc); in iwl_fw_free_dump_desc() 95 fwrt->dump.desc = NULL; in iwl_fw_free_dump_desc() 96 fwrt->dump.trig = NULL; in iwl_fw_free_dump_desc() 144 (fwrt->dump.conf == FW_DBG_INVALID || in iwl_fw_dbg_trigger_stop_conf_match() 145 (BIT(fwrt->dump.conf) & le32_to_cpu(trig->stop_conf_ids)))); in iwl_fw_dbg_trigger_stop_conf_match() 157 if (fwrt->dump.non_collect_ts_start[id] && in iwl_fw_dbg_no_trig_window() 158 (time_after(fwrt->dump.non_collect_ts_start[id] + wind_jiff, in iwl_fw_dbg_no_trig_window() 162 fwrt->dump.non_collect_ts_start[id] = jiffies; in iwl_fw_dbg_no_trig_window() 215 fwrt->dump.conf = FW_DBG_INVALID; in iwl_fw_dump_conf_clear() [all …]
|
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | debug.c | 31 void *dump; in brcmf_debug_create_memdump() local 39 dump = vzalloc(len + ramsize); in brcmf_debug_create_memdump() 40 if (!dump) in brcmf_debug_create_memdump() 44 memcpy(dump, data, len); in brcmf_debug_create_memdump() 45 err = brcmf_bus_get_memdump(bus, dump + len, ramsize); in brcmf_debug_create_memdump() 47 vfree(dump); in brcmf_debug_create_memdump() 51 dev_coredumpv(bus->dev, dump, len + ramsize, GFP_KERNEL); in brcmf_debug_create_memdump()
|
/Linux-v4.19/Documentation/s390/ |
D | zfcpdump.txt | 1 The s390 SCSI dump tool (zfcpdump) 4 dumps on SCSI disks. The dump process is initiated by booting a dump tool, which 5 has to create a dump of the current (probably crashed) Linux image. In order to 6 not overwrite memory of the crashed Linux with data of the dump tool, the 8 dump tool is loaded. There exists an SCLP hardware interface to obtain the saved 11 This zfcpdump implementation consists of a Linux dump kernel together with 12 a user space dump tool, which are loaded together into the saved memory region 15 system can then trigger a SCSI dump by booting the SCSI disk, where zfcpdump 18 The user space dump tool accesses the memory of the crashed system by means 20 memory and registers in ELF core dump format. To access the memory which has [all …]
|
/Linux-v4.19/Documentation/powerpc/ |
D | firmware-assisted-dump.txt | 6 The goal of firmware-assisted dump is to enable the dump of 11 - Firmware assisted dump (fadump) infrastructure is intended to replace 12 the existing phyp assisted dump. 14 as phyp assisted dump. 15 - Unlike phyp dump, fadump exports the memory dump through /proc/vmcore 17 kdump infrastructure for dump capture and filtering. 18 - Unlike phyp dump, userspace tool does not need to refer any sysfs 20 - Unlike phyp dump, fadump allows user to release all the memory reserved 21 for dump, with a single operation of echo 1 > /sys/kernel/fadump_release_mem. 28 dump offers several strong, practical advantages: [all …]
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_debug.c | 1904 static u32 qed_dump_str(char *dump_buf, bool dump, const char *str) in qed_dump_str() argument 1906 if (dump) in qed_dump_str() 1915 static u32 qed_dump_align(char *dump_buf, bool dump, u32 byte_offset) in qed_dump_align() argument 1922 if (dump && align_size) in qed_dump_align() 1932 bool dump, in qed_dump_str_param() argument 1939 offset += qed_dump_str(char_buf + offset, dump, param_name); in qed_dump_str_param() 1942 if (dump) in qed_dump_str_param() 1947 offset += qed_dump_str(char_buf + offset, dump, param_val); in qed_dump_str_param() 1950 offset += qed_dump_align(char_buf + offset, dump, offset); in qed_dump_str_param() 1959 bool dump, const char *param_name, u32 param_val) in qed_dump_num_param() argument [all …]
|
/Linux-v4.19/tools/firewire/ |
D | Makefile | 3 nosy-dump-version = 0.4 7 all : nosy-dump 9 nosy-dump : CFLAGS = -Wall -O2 -g 10 nosy-dump : CPPFLAGS = -DVERSION=\"$(nosy-dump-version)\" -I../../drivers/firewire
|
/Linux-v4.19/drivers/mfd/ |
D | ipaq-micro.c | 245 u8 dump[256]; in ipaq_micro_eeprom_dump() local 248 ipaq_micro_eeprom_read(micro, 0, 128, dump); in ipaq_micro_eeprom_dump() 249 str = ipaq_micro_str(dump, 10); in ipaq_micro_eeprom_dump() 254 str = ipaq_micro_str(dump+10, 40); in ipaq_micro_eeprom_dump() 261 str = ipaq_micro_str(dump+50, 20); in ipaq_micro_eeprom_dump() 266 str = ipaq_micro_str(dump+70, 10); in ipaq_micro_eeprom_dump() 271 dev_info(micro->dev, "product ID: %u\n", ipaq_micro_to_u16(dump+80)); in ipaq_micro_eeprom_dump() 273 ipaq_micro_to_u16(dump+82)); in ipaq_micro_eeprom_dump() 274 dev_info(micro->dev, "page mode: %u\n", ipaq_micro_to_u16(dump+84)); in ipaq_micro_eeprom_dump() 275 dev_info(micro->dev, "country ID: %u\n", ipaq_micro_to_u16(dump+86)); in ipaq_micro_eeprom_dump() [all …]
|
D | pcf50633-core.c | 89 u8 dump[16]; in show_dump_regs() local 101 for (n = 0; n < 256; n += sizeof(dump)) { in show_dump_regs() 102 for (n1 = 0; n1 < sizeof(dump); n1++) in show_dump_regs() 105 dump[n1] = 0x00; in show_dump_regs() 107 dump[n1] = pcf50633_reg_read(pcf, n + n1); in show_dump_regs() 109 buf1 += sprintf(buf1, "%*ph\n", (int)sizeof(dump), dump); in show_dump_regs()
|
/Linux-v4.19/net/tipc/ |
D | netlink_compat.c | 899 struct tipc_nl_compat_cmd_dump dump; in tipc_nl_compat_publ_dump() local 922 dump.dumpit = tipc_nl_publ_dump; in tipc_nl_compat_publ_dump() 923 dump.format = __tipc_nl_compat_publ_dump; in tipc_nl_compat_publ_dump() 925 err = __tipc_nl_compat_dumpit(&dump, msg, args); in tipc_nl_compat_publ_dump() 1082 struct tipc_nl_compat_cmd_dump dump; in tipc_nl_compat_handle() local 1085 memset(&dump, 0, sizeof(dump)); in tipc_nl_compat_handle() 1096 dump.dumpit = tipc_nl_bearer_dump; in tipc_nl_compat_handle() 1097 dump.format = tipc_nl_compat_bearer_dump; in tipc_nl_compat_handle() 1098 return tipc_nl_compat_dumpit(&dump, msg); in tipc_nl_compat_handle() 1113 dump.dumpit = tipc_nl_node_dump_link; in tipc_nl_compat_handle() [all …]
|
/Linux-v4.19/Documentation/networking/ |
D | gen_stats.txt | 34 struct gnet_dump dump; 36 if (gnet_stats_start_copy(skb, TCA_STATS2, &mystruct->lock, &dump, 40 if (gnet_stats_copy_basic(&dump, &mystruct->bstats) < 0 || 41 gnet_stats_copy_queue(&dump, &mystruct->qstats) < 0 || 42 gnet_stats_copy_app(&dump, &xstats, sizeof(xstats)) < 0) 45 if (gnet_stats_finish_copy(&dump) < 0) 60 TCA_XSTATS, &mystruct->lock, &dump, 108 From now on, every time you dump my_rate_est_stats it will contain
|
/Linux-v4.19/fs/proc/ |
D | vmcore.c | 196 struct vmcoredd_node *dump; in vmcoredd_copy_dumps() local 203 list_for_each_entry(dump, &vmcoredd_list, list) { in vmcoredd_copy_dumps() 204 if (start < offset + dump->size) { in vmcoredd_copy_dumps() 205 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_copy_dumps() 206 buf = dump->buf + start - offset; in vmcoredd_copy_dumps() 220 offset += dump->size; in vmcoredd_copy_dumps() 232 struct vmcoredd_node *dump; in vmcoredd_mmap_dumps() local 239 list_for_each_entry(dump, &vmcoredd_list, list) { in vmcoredd_mmap_dumps() 240 if (start < offset + dump->size) { in vmcoredd_mmap_dumps() 241 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_mmap_dumps() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/ |
D | mxms.c | 153 u8 *dump = desc; in mxms_foreach() local 158 ptr += sprintf(ptr, "%02x", dump[j]); in mxms_foreach() 159 dump += headerlen; in mxms_foreach() 162 for (i = 0; i < entries; i++, dump += recordlen) { in mxms_foreach() 164 ptr += sprintf(ptr, "%02x", dump[j]); in mxms_foreach()
|
/Linux-v4.19/drivers/net/fjes/ |
D | fjes_ethtool.c | 237 static int fjes_set_dump(struct net_device *netdev, struct ethtool_dump *dump) in fjes_set_dump() argument 243 if (dump->flag) { in fjes_set_dump() 247 hw->debug_mode = dump->flag; in fjes_set_dump() 270 struct ethtool_dump *dump) in fjes_get_dump_flag() argument 275 dump->len = hw->hw_info.trace_size; in fjes_get_dump_flag() 276 dump->version = 1; in fjes_get_dump_flag() 277 dump->flag = hw->debug_mode; in fjes_get_dump_flag() 283 struct ethtool_dump *dump, void *buf) in fjes_get_dump_data() argument
|
/Linux-v4.19/arch/x86/kernel/ |
D | hw_breakpoint.c | 380 void aout_dump_debugregs(struct user *dump) in aout_dump_debugregs() argument 392 dump->u_debugreg[i] = bp->attr.bp_addr; in aout_dump_debugregs() 396 dump->u_debugreg[i] = 0; in aout_dump_debugregs() 400 dump->u_debugreg[4] = 0; in aout_dump_debugregs() 401 dump->u_debugreg[5] = 0; in aout_dump_debugregs() 402 dump->u_debugreg[6] = current->thread.debugreg6; in aout_dump_debugregs() 404 dump->u_debugreg[7] = dr7; in aout_dump_debugregs()
|
/Linux-v4.19/drivers/ssb/ |
D | sprom.c | 36 static int hex2sprom(u16 *sprom, const char *dump, size_t len, in hex2sprom() argument 45 c = dump[len - 1]; in hex2sprom() 55 memcpy(tmp, dump, 4); in hex2sprom() 56 dump += 4; in hex2sprom()
|