Home
last modified time | relevance | path

Searched full:coredump (Results 1 – 25 of 172) sorted by relevance

1234567

/linux-6.15/drivers/gpu/drm/xe/
Dxe_devcoredump.c31 * DOC: Xe device coredump
38 * coredump.
41 * coredump:
49 * **Coredump release**:
50 * After a coredump is generated, it stays in kernel memory until released by
53 * a coredump:
73 static struct xe_device *coredump_to_xe(const struct xe_devcoredump *coredump) in coredump_to_xe() argument
75 return container_of(coredump, struct xe_device, devcoredump); in coredump_to_xe()
84 struct xe_devcoredump *coredump) in __xe_devcoredump_read() argument
93 xe = coredump_to_xe(coredump); in __xe_devcoredump_read()
[all …]
Dxe_devcoredump_types.h21 * of the crash. So, any subsequent reads of the coredump points to a data that
33 /** @reason: The reason the coredump was triggered */
79 * is read later when user access the device coredump data file
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dev_coredump.c203 struct amdgpu_coredump_info *coredump = data; in amdgpu_devcoredump_read() local
216 drm_printf(&p, "**** AMDGPU Device Coredump ****\n"); in amdgpu_devcoredump_read()
220 drm_printf(&p, "time: %lld.%09ld\n", coredump->reset_time.tv_sec, in amdgpu_devcoredump_read()
221 coredump->reset_time.tv_nsec); in amdgpu_devcoredump_read()
223 if (coredump->reset_task_info.pid) in amdgpu_devcoredump_read()
225 coredump->reset_task_info.process_name, in amdgpu_devcoredump_read()
226 coredump->reset_task_info.pid); in amdgpu_devcoredump_read()
230 drm_printf(&p, "SOC Device id: %d\n", coredump->adev->pdev->device); in amdgpu_devcoredump_read()
231 drm_printf(&p, "SOC PCI Revision id: %d\n", coredump->adev->pdev->revision); in amdgpu_devcoredump_read()
232 drm_printf(&p, "SOC Family: %d\n", coredump->adev->family); in amdgpu_devcoredump_read()
[all …]
/linux-6.15/drivers/net/wwan/iosm/
Diosm_ipc_coredump.h11 /* Max number of bytes to receive for Coredump list structure */
14 /* Max buffer allocated to receive coredump data */
21 * struct iosm_cd_list_entry - Structure to hold coredump file info.
23 * @filename: Coredump filename to be generated on host
31 * struct iosm_cd_list - Structure to hold list of coredump files
42 * struct iosm_cd_table - Common Coredump table
43 * @version: Version of coredump structure
44 * @list: Coredump list structure
Diosm_ipc_devlink.h35 /* Default Coredump file size */
59 * @rpsi_cmd_coredump_get: Command to get the coredump data
60 * @rpsi_cmd_coredump_end: Command to stop receiving the coredump
88 * @channel: Channel instance for flashing and coredump
140 * struct iosm_coredump_file_info - Coredump file info
141 * @filename: Name of coredump file
142 * @default_size: Default size of coredump file
143 * @actual_size: Actual size of coredump file
144 * @entry: Index of the coredump file
161 * @cd_file_info: coredump file info
[all …]
Diosm_ipc_devlink.c12 /* Coredump list */
15 {"coredump.fcd", COREDUMP_FCD_SIZE,},
182 /* Send coredump end cmd indicating end of coredump collection */ in ipc_devlink_coredump_snapshot()
193 /* To create regions for coredump files */
/linux-6.15/tools/testing/selftests/coredump/
DREADME.rst1 coredump selftest
7 `coredump` is a feature which dumps a process's memory space when the process terminates
9 `coredump` dumps the memory to the file named `core`, but this behavior can be changed by writing a
10 different file name to `/proc/sys/kernel/core_pattern`. Furthermore, `coredump` can be piped to a
21 reads zero. But when the thread is dead (e.g. during a coredump), this field should have valid
24 However, this was broken in the past and `kstkesp` was zero even during coredump:
35 * commit 92307383082d ("coredump: Don't perform any cleanups before dumping core") broke it again
42 This test detects problem with reading `kstkesp` during coredump by doing the following:
44 #. Tell the kernel to execute the "stackdump" script when a coredump happens. This script
Dstackdump_test.c35 FIXTURE(coredump) in FIXTURE() argument
40 FIXTURE_SETUP(coredump) in FIXTURE_SETUP() argument
60 FIXTURE_TEARDOWN(coredump) in FIXTURE_TEARDOWN() argument
92 TEST_F(coredump, stackdump) in TEST_F() argument
/linux-6.15/drivers/net/wireless/mediatek/mt76/mt7996/
Dcoredump.c8 #include "coredump.h"
86 struct mt7996_crash_data *crash_data = dev->coredump.crash_data; in mt7996_coredump_new()
164 struct mt7996_crash_data *crash_data = dev->coredump.crash_data; in mt7996_coredump_build()
235 crash_data = vzalloc(sizeof(*dev->coredump.crash_data)); in mt7996_coredump_register()
239 dev->coredump.crash_data = crash_data; in mt7996_coredump_register()
259 if (dev->coredump.crash_data->memdump_buf) { in mt7996_coredump_unregister()
260 vfree(dev->coredump.crash_data->memdump_buf); in mt7996_coredump_unregister()
261 dev->coredump.crash_data->memdump_buf = NULL; in mt7996_coredump_unregister()
262 dev->coredump.crash_data->memdump_buf_len = 0; in mt7996_coredump_unregister()
265 vfree(dev->coredump.crash_data); in mt7996_coredump_unregister()
[all …]
/linux-6.15/drivers/accel/ivpu/
Divpu_coredump.c22 char *coredump; in ivpu_dev_coredump() local
26 coredump = vmalloc(coredump_size); in ivpu_dev_coredump()
27 if (!coredump) in ivpu_dev_coredump()
30 pi.data = coredump; in ivpu_dev_coredump()
38 dev_coredumpv(vdev->drm.dev, coredump, pi.offset, GFP_KERNEL); in ivpu_dev_coredump()
/linux-6.15/drivers/remoteproc/
Dremoteproc_sysfs.c69 * A coredump-configuration-to-string lookup table, for exposing a
79 /* Expose the current coredump configuration via debugfs */
89 * By writing to the 'coredump' sysfs entry, we control the behavior of the
90 * coredump mechanism dynamically. The default value of this entry is "default".
92 * The 'coredump' sysfs entry supports these commands:
94 * disabled: This is the default coredump mechanism. Recovery will proceed
97 * default: When the remoteproc crashes the entire coredump will be
100 * inline: The coredump will not be copied to a separate buffer and the
111 dev_err(&rproc->dev, "can't change coredump configuration\n"); in coredump_store()
122 dev_err(&rproc->dev, "Invalid coredump configuration\n"); in coredump_store()
[all …]
Dremoteproc_coredump.c3 * Coredump functionality for Remoteproc framework.
38 * rproc_coredump_add_segment() - add segment of device memory to coredump
43 * Add device memory to the list of segments to be included in a coredump for
66 * rproc_coredump_add_custom_segment() - add custom coredump segment
70 * @dumpfn: custom dump function called for each segment during coredump
73 * Add device memory to the list of segments to be included in the coredump
105 * rproc_coredump_set_elf_info() - set coredump elf information
107 * @class: elf class for coredump elf file
108 * @machine: elf machine for coredump elf file
110 * Set elf information which will be used for coredump elf file.
[all …]
Dremoteproc_debugfs.c31 * A coredump-configuration-to-string lookup table, for exposing a
41 /* Expose the current coredump configuration via debugfs */
56 * By writing to the 'coredump' debugfs entry, we control the behavior of the
57 * coredump mechanism dynamically. The default value of this entry is "disabled".
59 * The 'coredump' debugfs entry supports these commands:
61 * disabled: By default coredump collection is disabled. Recovery will
64 * enabled: When the remoteproc crashes the entire coredump will be copied
67 * inline: The coredump will not be copied to a separate buffer and the
91 dev_err(&rproc->dev, "can't change coredump configuration\n"); in rproc_coredump_write()
103 dev_err(&rproc->dev, "Invalid coredump configuration\n"); in rproc_coredump_write()
[all …]
/linux-6.15/drivers/base/
Ddevcoredump.c239 * dev_coredumpv - create device coredump with vmalloc data
241 * @data: vmalloc data containing the device coredump
303 * dev_coredump_put - remove device coredump
306 * dev_coredump_put() removes coredump, if exists, for a given device from
309 * It is useful for modules that do not want to keep coredump
326 * dev_coredumpm_timeout - create device coredump with read/free methods with a
335 * @timeout: time in jiffies to remove coredump
337 * Creates a new device coredump for the given device. If a previous one hasn't
338 * been read yet, the new coredump is discarded. The data lifetime is determined
339 * by the device coredump framework and when it is no longer needed the @free
[all …]
/linux-6.15/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_coredump.c148 struct bnxt_coredump *coredump) in bnxt_hwrm_dbg_coredump_list() argument
165 coredump->data = info.dest_buf; in bnxt_hwrm_dbg_coredump_list()
166 coredump->data_size = info.dest_buf_size; in bnxt_hwrm_dbg_coredump_list()
167 coredump->total_segs = info.segs; in bnxt_hwrm_dbg_coredump_list()
304 netdev_warn(bp->dev, "Unknown OS release in coredump\n"); in bnxt_fill_coredump_record()
403 struct bnxt_coredump coredump = {NULL}; in __bnxt_get_coredump() local
435 coredump.total_segs += segs; in __bnxt_get_coredump()
440 rc = bnxt_hwrm_dbg_coredump_list(bp, &coredump); in __bnxt_get_coredump()
442 netdev_err(bp->dev, "Failed to get coredump segment list\n"); in __bnxt_get_coredump()
446 *dump_len += seg_hdr_len * coredump.total_segs; in __bnxt_get_coredump()
[all …]
/linux-6.15/Documentation/ABI/testing/
Dsysfs-devices-coredump1 What: /sys/devices/.../coredump
5 The /sys/devices/.../coredump attribute is only present when the
6 device is bound to a driver, which provides the .coredump()
8 file will trigger the .coredump() callback.
Dsysfs-class-remoteproc62 What: /sys/class/remoteproc/.../coredump
65 Description: Remote processor coredump configuration
67 Reports the coredump configuration of the remote processor,
76 "enabled" means when the remote processor's coredump is
80 "inline" means when the remote processor's coredump is
/linux-6.15/include/net/bluetooth/
Dcoredump.h30 * @coredump: Called from the driver's .coredump() function.
56 coredump_t coredump; member
67 int hci_devcd_register(struct hci_dev *hdev, coredump_t coredump,
81 static inline int hci_devcd_register(struct hci_dev *hdev, coredump_t coredump, in hci_devcd_register() argument
/linux-6.15/drivers/net/wireless/mediatek/mt76/mt7915/
Dcoredump.c8 #include "coredump.h"
133 struct mt7915_crash_data *crash_data = dev->coredump.crash_data; in mt7915_coredump_new()
304 struct mt7915_crash_data *crash_data = dev->coredump.crash_data; in mt7915_coredump_build()
378 crash_data = vzalloc(sizeof(*dev->coredump.crash_data)); in mt7915_coredump_register()
382 dev->coredump.crash_data = crash_data; in mt7915_coredump_register()
402 if (dev->coredump.crash_data->memdump_buf) { in mt7915_coredump_unregister()
403 vfree(dev->coredump.crash_data->memdump_buf); in mt7915_coredump_unregister()
404 dev->coredump.crash_data->memdump_buf = NULL; in mt7915_coredump_unregister()
405 dev->coredump.crash_data->memdump_buf_len = 0; in mt7915_coredump_unregister()
408 vfree(dev->coredump.crash_data); in mt7915_coredump_unregister()
[all …]
/linux-6.15/sound/soc/intel/avs/
Dapl.c132 dump_size = AVS_FW_REGS_SIZE + msg->ext.coredump.stack_dump_size; in avs_apl_coredump()
139 if (!msg->ext.coredump.stack_dump_size) in avs_apl_coredump()
143 addr = avs_log_buffer_addr(adev, msg->ext.coredump.core_id); in avs_apl_coredump()
156 lbs_msg.log.core = msg->ext.coredump.core_id; in avs_apl_coredump()
165 if (avs_apl_wait_log_entry(adev, msg->ext.coredump.core_id, &layout)) in avs_apl_coredump()
180 } while (offset < msg->ext.coredump.stack_dump_size); in avs_apl_coredump()
265 .coredump = avs_apl_coredump,
/linux-6.15/include/linux/
Dsignal.h344 * coredump - write a core dump file describing all threads using
357 * | SIGQUIT | coredump |
358 * | SIGILL | coredump |
359 * | SIGTRAP | coredump |
360 * | SIGABRT/SIGIOT | coredump |
361 * | SIGBUS | coredump |
362 * | SIGFPE | coredump |
365 * | SIGSEGV | coredump |
377 * | SIGXCPU | coredump |
378 * | SIGXFSZ | coredump |
[all …]
Ddevcoredump.h102 * dev_coredumpm - create device coredump with read/free methods
111 * Creates a new device coredump for the given device. If a previous one hasn't
112 * been read yet, the new coredump is discarded. The data lifetime is determined
113 * by the device coredump framework and when it is no longer needed the @free
/linux-6.15/Documentation/networking/devlink/
Diosm.rst98 The ``iosm`` driver supports dumping the coredump logs.
110 * - ``coredump.fcd``
134 $ devlink region new pci/0000:02:00.0/coredump.fcd
136 $ devlink region dump pci/0000:02:00.0/coredump.fcd snapshot 1
138 $ devlink region del pci/0000:02:00.0/coredump.fcd snapshot 1
/linux-6.15/net/bluetooth/
Dcoredump.c421 int hci_devcd_register(struct hci_dev *hdev, coredump_t coredump, in hci_devcd_register() argument
424 /* Driver must implement coredump() and dmp_hdr() functions for in hci_devcd_register()
425 * bluetooth devcoredump. The coredump() should trigger a coredump in hci_devcd_register()
426 * event on the controller when the device's coredump sysfs entry is in hci_devcd_register()
430 if (!coredump || !dmp_hdr) in hci_devcd_register()
434 hdev->dump.coredump = coredump; in hci_devcd_register()
/linux-6.15/Documentation/gpu/xe/
Dxe_devcoredump.rst4 Xe Device Coredump
8 :doc: Xe device coredump

1234567