Lines Matching refs:pid

42 	pid_t pid;  member
162 static bool kfd_smi_ev_enabled(pid_t pid, struct kfd_smi_client *client, in kfd_smi_ev_enabled() argument
168 if (pid && client->pid != pid && !(client->suser && (events & all))) in kfd_smi_ev_enabled()
174 static void add_event_to_kfifo(pid_t pid, struct kfd_node *dev, in add_event_to_kfifo() argument
182 if (!kfd_smi_ev_enabled(pid, client, smi_event)) in add_event_to_kfifo()
199 static void kfd_smi_event_add(pid_t pid, struct kfd_node *dev, in kfd_smi_event_add() argument
215 add_event_to_kfifo(pid, dev, event, fifo_in, len); in kfd_smi_event_add()
246 if (!task_info.pid) in kfd_smi_event_update_vmfault()
250 task_info.pid, task_info.task_name); in kfd_smi_event_update_vmfault()
253 void kfd_smi_event_page_fault_start(struct kfd_node *node, pid_t pid, in kfd_smi_event_page_fault_start() argument
257 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_PAGE_FAULT_START, in kfd_smi_event_page_fault_start()
258 "%lld -%d @%lx(%x) %c\n", ktime_to_ns(ts), pid, in kfd_smi_event_page_fault_start()
262 void kfd_smi_event_page_fault_end(struct kfd_node *node, pid_t pid, in kfd_smi_event_page_fault_end() argument
265 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_PAGE_FAULT_END, in kfd_smi_event_page_fault_end()
267 pid, address, node->id, migration ? 'M' : 'U'); in kfd_smi_event_page_fault_end()
270 void kfd_smi_event_migration_start(struct kfd_node *node, pid_t pid, in kfd_smi_event_migration_start() argument
276 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_MIGRATE_START, in kfd_smi_event_migration_start()
278 ktime_get_boottime_ns(), pid, start, end - start, in kfd_smi_event_migration_start()
282 void kfd_smi_event_migration_end(struct kfd_node *node, pid_t pid, in kfd_smi_event_migration_end() argument
286 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_MIGRATE_END, in kfd_smi_event_migration_end()
288 ktime_get_boottime_ns(), pid, start, end - start, in kfd_smi_event_migration_end()
292 void kfd_smi_event_queue_eviction(struct kfd_node *node, pid_t pid, in kfd_smi_event_queue_eviction() argument
295 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_QUEUE_EVICTION, in kfd_smi_event_queue_eviction()
296 "%lld -%d %x %d\n", ktime_get_boottime_ns(), pid, in kfd_smi_event_queue_eviction()
300 void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid) in kfd_smi_event_queue_restore() argument
302 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_QUEUE_RESTORE, in kfd_smi_event_queue_restore()
303 "%lld -%d %x\n", ktime_get_boottime_ns(), pid, in kfd_smi_event_queue_restore()
319 kfd_smi_event_add(p->lead_thread->pid, pdd->dev, in kfd_smi_event_queue_restore_rescheduled()
322 p->lead_thread->pid, pdd->dev->id, 'R'); in kfd_smi_event_queue_restore_rescheduled()
327 void kfd_smi_event_unmap_from_gpu(struct kfd_node *node, pid_t pid, in kfd_smi_event_unmap_from_gpu() argument
331 kfd_smi_event_add(pid, node, KFD_SMI_EVENT_UNMAP_FROM_GPU, in kfd_smi_event_unmap_from_gpu()
333 pid, address, last - address + 1, node->id, trigger); in kfd_smi_event_unmap_from_gpu()
356 client->pid = current->tgid; in kfd_smi_event_open()