• Home
  • Raw
  • Download

Lines Matching refs:atom

520 				      struct sched_atom *atom)  in perf_sched__process_event()  argument
524 switch (atom->type) { in perf_sched__process_event()
526 burn_nsecs(sched, atom->duration); in perf_sched__process_event()
529 if (atom->wait_sem) in perf_sched__process_event()
530 ret = sem_wait(atom->wait_sem); in perf_sched__process_event()
534 if (atom->wait_sem) in perf_sched__process_event()
535 ret = sem_post(atom->wait_sem); in perf_sched__process_event()
1043 struct work_atom *atom = zalloc(sizeof(*atom)); in add_sched_out_event() local
1044 if (!atom) { in add_sched_out_event()
1049 atom->sched_out_time = timestamp; in add_sched_out_event()
1052 atom->state = THREAD_WAIT_CPU; in add_sched_out_event()
1053 atom->wake_up_time = atom->sched_out_time; in add_sched_out_event()
1056 list_add_tail(&atom->list, &atoms->work_list); in add_sched_out_event()
1064 struct work_atom *atom; in add_runtime_event() local
1068 atom = list_entry(atoms->work_list.prev, struct work_atom, list); in add_runtime_event()
1070 atom->runtime += delta; in add_runtime_event()
1077 struct work_atom *atom; in add_sched_in_event() local
1083 atom = list_entry(atoms->work_list.prev, struct work_atom, list); in add_sched_in_event()
1085 if (atom->state != THREAD_WAIT_CPU) in add_sched_in_event()
1088 if (timestamp < atom->wake_up_time) { in add_sched_in_event()
1089 atom->state = THREAD_IGNORE; in add_sched_in_event()
1093 atom->state = THREAD_SCHED_IN; in add_sched_in_event()
1094 atom->sched_in_time = timestamp; in add_sched_in_event()
1096 delta = atom->sched_in_time - atom->wake_up_time; in add_sched_in_event()
1100 atoms->max_lat_start = atom->wake_up_time; in add_sched_in_event()
1218 struct work_atom *atom; in latency_wakeup_event() local
1241 atom = list_entry(atoms->work_list.prev, struct work_atom, list); in latency_wakeup_event()
1254 if (sched->profile_cpu == -1 && atom->state != THREAD_SLEEPING) in latency_wakeup_event()
1258 if (atom->sched_out_time > timestamp) { in latency_wakeup_event()
1263 atom->state = THREAD_WAIT_CPU; in latency_wakeup_event()
1264 atom->wake_up_time = timestamp; in latency_wakeup_event()
1280 struct work_atom *atom; in latency_migrate_task_event() local
1309 atom = list_entry(atoms->work_list.prev, struct work_atom, list); in latency_migrate_task_event()
1310 atom->sched_in_time = atom->sched_out_time = atom->wake_up_time = timestamp; in latency_migrate_task_event()
1314 if (atom->sched_out_time > timestamp) in latency_migrate_task_event()