Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_dev_coredump.c214 struct amdgpu_coredump_info *coredump, in amdgpu_devcoredump_print_ibs() argument
217 struct amdgpu_device *adev = coredump->adev; in amdgpu_devcoredump_print_ibs()
234 for (int i = 0; i < coredump->num_ibs; i++) { in amdgpu_devcoredump_print_ibs()
236 coredump->ibs[i].gpu_addr, in amdgpu_devcoredump_print_ibs()
237 coredump->ibs[i].ib_size_dw); in amdgpu_devcoredump_print_ibs()
239 for (int j = 0; j < coredump->ibs[i].ib_size_dw; j++) in amdgpu_devcoredump_print_ibs()
252 drm_exec_init(&exec, DRM_EXEC_IGNORE_DUPLICATES, 1 + coredump->num_ibs); in amdgpu_devcoredump_print_ibs()
254 vm = amdgpu_vm_lock_by_pasid(adev, coredump->pasid, &exec); in amdgpu_devcoredump_print_ibs()
258 for (int i = 0; i < coredump->num_ibs; i++) { in amdgpu_devcoredump_print_ibs()
259 u64 pfn = (coredump->ibs[i].gpu_addr & in amdgpu_devcoredump_print_ibs()
[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/include/net/bluetooth/
H A Dcoredump.h63 coredump_t coredump; member
76 int hci_devcd_register(struct hci_dev *hdev, coredump_t coredump,
95 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/drivers/net/wireless/ath/ath12k/
H A DKconfig54 bool "ath12k coredump"
58 Enable ath12k coredump collection
/linux/net/bluetooth/
H A Dcoredump.c419 int hci_devcd_register(struct hci_dev *hdev, coredump_t coredump, in hci_devcd_register() argument
428 if (!coredump || !dmp_hdr) in hci_devcd_register()
432 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/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_fw.c1011 (cmpl_data->u.coredump.size % cmpl_data->u.coredump.stride) ? : in fbnic_fw_parse_coredump_resp()
1012 cmpl_data->u.coredump.stride; in fbnic_fw_parse_coredump_resp()
1013 last_offset = cmpl_data->u.coredump.size - last_length; in fbnic_fw_parse_coredump_resp()
1016 if (offset % cmpl_data->u.coredump.stride || offset > last_offset) { in fbnic_fw_parse_coredump_resp()
1020 last_length : cmpl_data->u.coredump.stride)) { in fbnic_fw_parse_coredump_resp()
1029 index = offset / cmpl_data->u.coredump.stride; in fbnic_fw_parse_coredump_resp()
1030 if (!cmpl_data->u.coredump.data[index]) in fbnic_fw_parse_coredump_resp()
1034 memcpy(cmpl_data->u.coredump.data[index], in fbnic_fw_parse_coredump_resp()
1036 cmpl_data->u.coredump.data[index] = NULL; in fbnic_fw_parse_coredump_resp()
/linux/drivers/net/wireless/ath/ath10k/
H A DMakefile25 ath10k_core-$(CONFIG_DEV_COREDUMP) += coredump.o
/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.
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dinit.c263 INIT_DELAYED_WORK(&dev->coredump.work, mt7925_coredump_work); in mt7925_register_device()
269 skb_queue_head_init(&dev->coredump.msg_list); in mt7925_register_device()
/linux/include/linux/device/
H A Ddriver.h123 void (*coredump) (struct device *dev); member
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dmac.c721 coredump.work.work); in mt7921_coredump_work()
723 if (time_is_after_jiffies(dev->coredump.last_activity + in mt7921_coredump_work()
725 queue_delayed_work(dev->mt76.wq, &dev->coredump.work, in mt7921_coredump_work()
737 skb = __skb_dequeue(&dev->coredump.msg_list); in mt7921_coredump_work()

12