Home
last modified time | relevance | path

Searched refs:coredump (Results 1 – 25 of 78) sorted by relevance

1234

/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_dev_coredump.c221 coredump->reset_time.tv_nsec); in amdgpu_devcoredump_read()
223 if (coredump->reset_task_info.pid) in amdgpu_devcoredump_read()
269 if (coredump->ring) { in amdgpu_devcoredump_read()
272 coredump->ring->funcs->type, in amdgpu_devcoredump_read()
273 coredump->ring->name); in amdgpu_devcoredump_read()
316 if (coredump->skip_vram_check) in amdgpu_devcoredump_read()
318 else if (coredump->reset_vram_lost) in amdgpu_devcoredump_read()
336 coredump = kzalloc(sizeof(*coredump), GFP_NOWAIT); in amdgpu_coredump()
338 if (!coredump) { in amdgpu_coredump()
351 coredump->reset_task_info = *ti; in amdgpu_coredump()
[all …]
/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_devcoredump.c93 xe = coredump_to_xe(coredump); in __xe_devcoredump_read()
94 ss = &coredump->snapshot; in __xe_devcoredump_read()
178 if (!coredump) in xe_devcoredump_read()
181 ss = &coredump->snapshot; in xe_devcoredump_read()
186 mutex_lock(&coredump->lock); in xe_devcoredump_read()
217 mutex_lock(&coredump->lock); in xe_devcoredump_free()
223 memset(&coredump->snapshot, 0, sizeof(coredump->snapshot)); in xe_devcoredump_free()
224 coredump->captured = false; in xe_devcoredump_free()
234 struct xe_devcoredump *coredump = container_of(ss, typeof(*coredump), snapshot); in xe_devcoredump_deferred_snap_work() local
344 if (coredump->captured) { in xe_devcoredump()
[all …]
/linux-6.15/drivers/accel/ivpu/
H A 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/net/wireless/mediatek/mt76/mt7996/
H A Dcoredump.c86 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()
266 dev->coredump.crash_data = NULL; in mt7996_coredump_unregister()
H A DMakefile8 mt7996e-$(CONFIG_DEV_COREDUMP) += coredump.o
/linux-6.15/tools/testing/selftests/coredump/
H A 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
H A 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/Documentation/ABI/testing/
H A 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.
H A 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/sound/soc/intel/avs/
H A 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/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dcoredump.c133 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()
409 dev->coredump.crash_data = NULL; in mt7915_coredump_unregister()
H A DMakefile10 mt7915e-$(CONFIG_DEV_COREDUMP) += coredump.o
/linux-6.15/drivers/net/wireless/ath/ath10k/
H A Dcoredump.c1477 struct ath10k_fw_crash_data *crash_data = ar->coredump.fw_crash_data; in ath10k_coredump_new()
1494 struct ath10k_fw_crash_data *crash_data = ar->coredump.fw_crash_data; in ath10k_coredump_build()
1622 ar->coredump.fw_crash_data = vzalloc(sizeof(*ar->coredump.fw_crash_data)); in ath10k_coredump_create()
1623 if (!ar->coredump.fw_crash_data) in ath10k_coredump_create()
1631 struct ath10k_fw_crash_data *crash_data = ar->coredump.fw_crash_data; in ath10k_coredump_register()
1656 if (ar->coredump.fw_crash_data->ramdump_buf) { in ath10k_coredump_destroy()
1657 vfree(ar->coredump.fw_crash_data->ramdump_buf); in ath10k_coredump_destroy()
1658 ar->coredump.fw_crash_data->ramdump_buf = NULL; in ath10k_coredump_destroy()
1659 ar->coredump.fw_crash_data->ramdump_buf_len = 0; in ath10k_coredump_destroy()
1662 vfree(ar->coredump.fw_crash_data); in ath10k_coredump_destroy()
[all …]
H A DMakefile25 ath10k_core-$(CONFIG_DEV_COREDUMP) += coredump.o
/linux-6.15/include/net/bluetooth/
H A Dcoredump.h56 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/ethernet/broadcom/bnxt/
H A 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()
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()
446 *dump_len += seg_hdr_len * coredump.total_segs; in __bnxt_get_coredump()
451 for (i = 0; i < coredump.total_segs; i++) { in __bnxt_get_coredump()
506 start_utc, coredump.total_segs + 1, in __bnxt_get_coredump()
[all …]
/linux-6.15/Documentation/networking/devlink/
H A 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/tools/testing/selftests/connector/
H A Dproc_filter.c201 event->event_data.coredump.process_pid, in handle_packet()
202 event->event_data.coredump.process_tgid, in handle_packet()
203 event->event_data.coredump.parent_pid, in handle_packet()
204 event->event_data.coredump.parent_tgid); in handle_packet()
/linux-6.15/drivers/net/wireless/ath/ath12k/
H A DKconfig47 bool "ath12k coredump"
51 Enable ath12k coredump collection
H A DMakefile30 ath12k-$(CONFIG_ATH12K_COREDUMP) += coredump.o
/linux-6.15/net/bluetooth/
H A Dcoredump.c421 int hci_devcd_register(struct hci_dev *hdev, coredump_t coredump, in hci_devcd_register() argument
430 if (!coredump || !dmp_hdr) in hci_devcd_register()
434 hdev->dump.coredump = coredump; in hci_devcd_register()
H A DMakefile19 bluetooth-$(CONFIG_DEV_COREDUMP) += coredump.o
/linux-6.15/Documentation/gpu/xe/
H A Dxe_devcoredump.rst8 :doc: Xe device coredump
/linux-6.15/drivers/connector/
H A Dcn_proc.c305 ev->event_data.coredump.process_pid = task->pid; in proc_coredump_connector()
306 ev->event_data.coredump.process_tgid = task->tgid; in proc_coredump_connector()
311 ev->event_data.coredump.parent_pid = parent->pid; in proc_coredump_connector()
312 ev->event_data.coredump.parent_tgid = parent->tgid; in proc_coredump_connector()
/linux-6.15/drivers/net/wireless/ath/ath11k/
H A DMakefile30 ath11k-$(CONFIG_DEV_COREDUMP) += coredump.o

1234