Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_dev_coredump.c211 amdgpu_devcoredump_format(char *buffer, size_t count, struct amdgpu_coredump_info *coredump) in amdgpu_devcoredump_format() argument
213 struct amdgpu_device *adev = coredump->adev; in amdgpu_devcoredump_format()
241 drm_printf(&p, "time: %ptSp\n", &coredump->reset_time); in amdgpu_devcoredump_format()
243 if (coredump->reset_task_info.task.pid) in amdgpu_devcoredump_format()
245 coredump->reset_task_info.process_name, in amdgpu_devcoredump_format()
246 coredump->reset_task_info.task.pid); in amdgpu_devcoredump_format()
250 drm_printf(&p, "SOC Device id: %d\n", coredump->adev->pdev->device); in amdgpu_devcoredump_format()
251 drm_printf(&p, "SOC PCI Revision id: %d\n", coredump->adev->pdev->revision); in amdgpu_devcoredump_format()
252 drm_printf(&p, "SOC Family: %d\n", coredump->adev->family); in amdgpu_devcoredump_format()
253 drm_printf(&p, "SOC Revision id: %d\n", coredump->adev->rev_id); in amdgpu_devcoredump_format()
[all …]
/linux/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 Dcoredump_socket_test.c10 FIXTURE_SETUP(coredump) in FIXTURE_SETUP() argument
32 FIXTURE_TEARDOWN(coredump) in FIXTURE_TEARDOWN() argument
42 unlink("/tmp/coredump.file"); in FIXTURE_TEARDOWN()
43 unlink("/tmp/coredump.socket"); in FIXTURE_TEARDOWN()
75 fprintf(stderr, "Failed to cleanup coredump test: %s\n", reason); in FIXTURE_TEARDOWN()
78 TEST_F(coredump, socket) in TEST_F() argument
87 ASSERT_TRUE(set_core_pattern("@/tmp/coredump.socket")); in TEST_F()
100 fd_server = create_and_listen_unix_socket("/tmp/coredump.socket"); in TEST_F()
140 fd_core_file = creat("/tmp/coredump.file", 0644); in TEST_F()
142 fprintf(stderr, "socket test: creat coredump fil in TEST_F()
209 TEST_F(coredump,socket_detect_userspace_client) TEST_F() argument
341 TEST_F(coredump,socket_enoent) TEST_F() argument
361 TEST_F(coredump,socket_no_listener) TEST_F() argument
439 TEST_F(coredump,socket_coredump_signal_sigsegv) TEST_F() argument
585 TEST_F(coredump,socket_coredump_signal_sigabrt) TEST_F() argument
725 TEST_F(coredump,socket_invalid_paths) TEST_F() argument
[all...]
H A Dstackdump_test.c35 FIXTURE_SETUP(coredump) in FIXTURE_SETUP() argument
57 FIXTURE_TEARDOWN(coredump) in FIXTURE_TEARDOWN() argument
105 TEST_F_TIMEOUT(coredump, stackdump, 120)
H A Dcoredump_test.h20 FIXTURE(coredump) in FIXTURE() argument
39 FIXTURE_DATA(coredump) *self) in wait_and_check_coredump_server()
H A Dcoredump_socket_protocol_test.c12 FIXTURE_SETUP(coredump) in FIXTURE_SETUP() argument
34 FIXTURE_TEARDOWN(coredump) in FIXTURE_TEARDOWN() argument
44 unlink("/tmp/coredump.file"); in FIXTURE_TEARDOWN()
45 unlink("/tmp/coredump.socket"); in FIXTURE_TEARDOWN()
77 fprintf(stderr, "Failed to cleanup coredump test: %s\n", reason); in FIXTURE_TEARDOWN()
80 TEST_F(coredump, socket_request_kernel) in TEST_F() argument
89 ASSERT_TRUE(set_core_pattern("@@/tmp/coredump.socket")); in TEST_F()
103 fd_server = create_and_listen_unix_socket("/tmp/coredump.socket"); in TEST_F()
143 fd_core_file = creat("/tmp/coredump.file", 0644); in TEST_F()
145 fprintf(stderr, "socket_request_kernel: creat coredump fil in TEST_F()
237 TEST_F(coredump,socket_request_userspace) TEST_F() argument
377 TEST_F(coredump,socket_request_reject) TEST_F() argument
517 TEST_F(coredump,socket_request_invalid_flag_combination) TEST_F() argument
638 TEST_F(coredump,socket_request_unknown_flag) TEST_F() argument
758 TEST_F(coredump,socket_request_invalid_size_small) TEST_F() argument
880 TEST_F(coredump,socket_request_invalid_size_large) TEST_F() argument
1008 TEST_F(coredump,socket_coredump_signal_sigsegv) TEST_F() argument
1141 TEST_F(coredump,socket_coredump_signal_sigabrt) TEST_F() argument
[all...]
/linux/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/drivers/net/wireless/ath/ath10k/
H A Dcoredump.c1479 struct ath10k_fw_crash_data *crash_data = ar->coredump.fw_crash_data; in ath10k_coredump_new()
1496 struct ath10k_fw_crash_data *crash_data = ar->coredump.fw_crash_data; in ath10k_coredump_build()
1624 ar->coredump.fw_crash_data = vzalloc(sizeof(*ar->coredump.fw_crash_data)); in ath10k_coredump_create()
1625 if (!ar->coredump.fw_crash_data) in ath10k_coredump_create()
1633 struct ath10k_fw_crash_data *crash_data = ar->coredump.fw_crash_data; in ath10k_coredump_register()
1651 struct ath10k_fw_crash_data *crash_data = ar->coredump.fw_crash_data; in ath10k_coredump_unregister()
1658 if (ar->coredump.fw_crash_data->ramdump_buf) { in ath10k_coredump_destroy()
1659 vfree(ar->coredump.fw_crash_data->ramdump_buf); in ath10k_coredump_destroy()
1660 ar->coredump.fw_crash_data->ramdump_buf = NULL; in ath10k_coredump_destroy()
1661 ar->coredump.fw_crash_data->ramdump_buf_len = 0; in ath10k_coredump_destroy()
[all …]
H A DMakefile25 ath10k_core-$(CONFIG_DEV_COREDUMP) += coredump.o
/linux/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/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_coredump.c150 struct bnxt_coredump *coredump) in bnxt_hwrm_dbg_coredump_list() argument
167 coredump->data = info.dest_buf; in bnxt_hwrm_dbg_coredump_list()
168 coredump->data_size = info.dest_buf_size; in bnxt_hwrm_dbg_coredump_list()
169 coredump->total_segs = info.segs; in bnxt_hwrm_dbg_coredump_list()
410 struct bnxt_coredump coredump = {NULL}; in __bnxt_get_coredump() local
442 coredump.total_segs += segs; in __bnxt_get_coredump()
447 rc = bnxt_hwrm_dbg_coredump_list(bp, &coredump); in __bnxt_get_coredump()
453 *dump_len += seg_hdr_len * coredump.total_segs; in __bnxt_get_coredump()
455 seg_record = (struct coredump_segment_record *)coredump.data; in __bnxt_get_coredump()
458 for (i = 0; i < coredump.total_segs; i++) { in __bnxt_get_coredump()
[all …]
/linux/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/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/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/Documentation/gpu/xe/
H A Dxe_devcoredump.rst8 :doc: Xe device coredump
/linux/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/include/uapi/linux/
H A Dcn_proc.h146 } coredump;
147 } coredump; global() member
/linux/arch/powerpc/platforms/cell/spufs/
H A DMakefile7 spufs-$(CONFIG_COREDUMP) += coredump.o
/linux/Documentation/arch/arm64/
H A Dsme.rst344 8. ELF coredump extensions
347 * NT_ARM_SSVE notes will be added to each coredump for
350 type were executed for each thread when the coredump was generated.
352 * A NT_ARM_ZA note will be added to each coredump for each thread of the
355 when the coredump was generated.
357 * A NT_ARM_ZT note will be added to each coredump for each thread of the
360 when the coredump was generated.
H A Dgcs.rst213 7. ELF coredump extensions
216 * NT_ARM_GCS notes will be added to each coredump for each thread of the
219 executed for each thread when the coredump was generated.
/linux/drivers/base/
H A Ddd.c477 dev->driver->coredump(dev); in coredump_store()
482 static DEVICE_ATTR_WO(coredump);
500 if (!IS_ENABLED(CONFIG_DEV_COREDUMP) || !dev->driver->coredump) in driver_sysfs_add()
522 if (drv->coredump) in driver_sysfs_remove()
/linux/include/linux/device/
H A Ddriver.h121 void (*coredump) (struct device *dev); member
/linux/Documentation/arch/powerpc/
H A Ddexcr.rst180 coredump and ptrace
194 a coredump and effectively bypass ROP protection on any threads that share this

12