Lines Matching full:process
32 int kfd_dbg_ev_query_debug_event(struct kfd_process *process, in kfd_dbg_ev_query_debug_event() argument
42 if (!(process && process->debug_trap_enabled)) in kfd_dbg_ev_query_debug_event()
45 mutex_lock(&process->event_mutex); in kfd_dbg_ev_query_debug_event()
51 pqm = &process->pqm; in kfd_dbg_ev_query_debug_event()
53 uint64_t tmp = process->exception_enable_mask; in kfd_dbg_ev_query_debug_event()
71 for (i = 0; i < process->n_pdds; i++) { in kfd_dbg_ev_query_debug_event()
72 struct kfd_process_device *pdd = process->pdds[i]; in kfd_dbg_ev_query_debug_event()
73 uint64_t tmp = process->exception_enable_mask in kfd_dbg_ev_query_debug_event()
85 /* report process events */ in kfd_dbg_ev_query_debug_event()
86 if (process->exception_enable_mask & process->exception_status) { in kfd_dbg_ev_query_debug_event()
87 *event_status = process->exception_status; in kfd_dbg_ev_query_debug_event()
88 process->exception_status &= ~exception_clear_mask; in kfd_dbg_ev_query_debug_event()
92 mutex_unlock(&process->event_mutex); in kfd_dbg_ev_query_debug_event()
98 struct kfd_process *process; in debug_event_write_work_handler() local
103 process = container_of(work, in debug_event_write_work_handler()
107 if (process->debug_trap_enabled && process->dbg_ev_file) in debug_event_write_work_handler()
108 kernel_write(process->dbg_ev_file, &write_data, 1, &pos); in debug_event_write_work_handler()
111 /* update process/device/queue exception status, write to descriptor
115 struct kfd_process *process, struct kfd_node *dev, in kfd_dbg_ev_raise() argument
126 if (!(process && process->debug_trap_enabled)) in kfd_dbg_ev_raise()
129 mutex_lock(&process->event_mutex); in kfd_dbg_ev_raise()
132 for (i = 0; i < process->n_pdds; i++) { in kfd_dbg_ev_raise()
133 struct kfd_process_device *pdd = process->pdds[i]; in kfd_dbg_ev_raise()
159 process->exception_status |= event_mask & KFD_EC_MASK_PROCESS; in kfd_dbg_ev_raise()
161 pqm = &process->pqm; in kfd_dbg_ev_raise()
181 if (process->exception_enable_mask & event_mask) { in kfd_dbg_ev_raise()
183 schedule_work(&process->debug_event_workarea); in kfd_dbg_ev_raise()
185 kernel_write(process->dbg_ev_file, in kfd_dbg_ev_raise()
193 mutex_unlock(&process->event_mutex); in kfd_dbg_ev_raise()
352 uint32_t flags = pdd->process->dbg_flags; in kfd_dbg_set_mes_debug_mode()
391 /* process owns device watch point so safe to clear */ in kfd_dbg_clear_dev_watch_id()
561 * target: target process
724 * flag will be called again during CWSR initialization if the target process in kfd_dbg_trap_activate()
787 /* We already hold the process reference but hold another one for the in kfd_dbg_trap_enable()
995 /* Per process exceptions */ in kfd_dbg_trap_query_exception_info()
1053 /* Run over all pdd of the process */ in kfd_dbg_trap_device_snapshot()