Lines Matching full:pid

43 	pid_t pid;  member
163 static bool kfd_smi_ev_enabled(pid_t pid, struct kfd_smi_client *client, in kfd_smi_ev_enabled() argument
169 if (pid && client->pid != pid && !(client->suser && (events & all))) in kfd_smi_ev_enabled()
175 static void add_event_to_kfifo(pid_t pid, struct kfd_node *dev, in add_event_to_kfifo() argument
183 if (!kfd_smi_ev_enabled(pid, client, smi_event)) in add_event_to_kfifo()
200 static void kfd_smi_event_add(pid_t pid, struct kfd_node *dev, in kfd_smi_event_add() argument
216 add_event_to_kfifo(pid, dev, event, fifo_in, len); in kfd_smi_event_add()
257 if (task_info->pid) in kfd_smi_event_update_vmfault()
259 task_info->pid, task_info->task_name)); in kfd_smi_event_update_vmfault()
264 void kfd_smi_event_page_fault_start(struct kfd_node *node, pid_t pid, in kfd_smi_event_page_fault_start() argument
268 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_PAGE_FAULT_START, in kfd_smi_event_page_fault_start()
269 KFD_EVENT_FMT_PAGEFAULT_START(ktime_to_ns(ts), pid, in kfd_smi_event_page_fault_start()
273 void kfd_smi_event_page_fault_end(struct kfd_node *node, pid_t pid, in kfd_smi_event_page_fault_end() argument
276 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_PAGE_FAULT_END, in kfd_smi_event_page_fault_end()
278 pid, address, node->id, migration ? 'M' : 'U')); in kfd_smi_event_page_fault_end()
281 void kfd_smi_event_migration_start(struct kfd_node *node, pid_t pid, in kfd_smi_event_migration_start() argument
287 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_MIGRATE_START, in kfd_smi_event_migration_start()
289 ktime_get_boottime_ns(), pid, start, end - start, in kfd_smi_event_migration_start()
293 void kfd_smi_event_migration_end(struct kfd_node *node, pid_t pid, in kfd_smi_event_migration_end() argument
298 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_MIGRATE_END, in kfd_smi_event_migration_end()
300 ktime_get_boottime_ns(), pid, start, end - start, in kfd_smi_event_migration_end()
304 void kfd_smi_event_queue_eviction(struct kfd_node *node, pid_t pid, in kfd_smi_event_queue_eviction() argument
307 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_QUEUE_EVICTION, in kfd_smi_event_queue_eviction()
308 KFD_EVENT_FMT_QUEUE_EVICTION(ktime_get_boottime_ns(), pid, in kfd_smi_event_queue_eviction()
312 void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid) in kfd_smi_event_queue_restore() argument
314 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_QUEUE_RESTORE, in kfd_smi_event_queue_restore()
315 KFD_EVENT_FMT_QUEUE_RESTORE(ktime_get_boottime_ns(), pid, in kfd_smi_event_queue_restore()
331 kfd_smi_event_add(p->lead_thread->pid, pdd->dev, in kfd_smi_event_queue_restore_rescheduled()
334 p->lead_thread->pid, pdd->dev->id, 'R')); in kfd_smi_event_queue_restore_rescheduled()
339 void kfd_smi_event_unmap_from_gpu(struct kfd_node *node, pid_t pid, in kfd_smi_event_unmap_from_gpu() argument
343 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_UNMAP_FROM_GPU, in kfd_smi_event_unmap_from_gpu()
345 pid, address, last - address + 1, node->id, trigger)); in kfd_smi_event_unmap_from_gpu()
368 client->pid = current->tgid; in kfd_smi_event_open()