Lines Matching refs:i

71     for (uint i = 0; i < SMP_MAX_CPUS; i++) {  in cmd_threadstats()  local
72 if (!mp_is_cpu_active(i)) in cmd_threadstats()
75 printf("thread stats (cpu %d):\n", i); in cmd_threadstats()
76 printf("\ttotal idle time: %lld\n", thread_stats[i].idle_time); in cmd_threadstats()
77 printf("\ttotal busy time: %lld\n", current_time_hires() - thread_stats[i].idle_time); in cmd_threadstats()
78 printf("\treschedules: %lu\n", thread_stats[i].reschedules); in cmd_threadstats()
80 printf("\treschedule_ipis: %lu\n", thread_stats[i].reschedule_ipis); in cmd_threadstats()
82 printf("\tcontext_switches: %lu\n", thread_stats[i].context_switches); in cmd_threadstats()
83 printf("\tpreempts: %lu\n", thread_stats[i].preempts); in cmd_threadstats()
84 printf("\tyields: %lu\n", thread_stats[i].yields); in cmd_threadstats()
85 printf("\tinterrupts: %lu\n", thread_stats[i].interrupts); in cmd_threadstats()
86 printf("\ttimer interrupts: %lu\n", thread_stats[i].timer_ints); in cmd_threadstats()
87 printf("\ttimers: %lu\n", thread_stats[i].timers); in cmd_threadstats()
97 for (uint i = 0; i < SMP_MAX_CPUS; i++) { in threadload() local
99 if (!mp_is_cpu_active(i)) in threadload()
102 lk_bigtime_t idle_time = thread_stats[i].idle_time; in threadload()
105 bool is_idle = !!mp_is_cpu_idle(i); in threadload()
107 idle_time += current_time_hires() - thread_stats[i].last_idle_timestamp; in threadload()
110 lk_bigtime_t delta_time = idle_time - last_idle_time[i]; in threadload()
124 i, in threadload()
126 thread_stats[i].context_switches - old_stats[i].context_switches, in threadload()
127 thread_stats[i].preempts - old_stats[i].preempts, in threadload()
129 thread_stats[i].reschedule_ipis - old_stats[i].reschedule_ipis, in threadload()
131 thread_stats[i].interrupts - old_stats[i].interrupts, in threadload()
132 thread_stats[i].timer_ints - old_stats[i].timer_ints, in threadload()
133 thread_stats[i].timers - old_stats[i].timers); in threadload()
135 old_stats[i] = thread_stats[i]; in threadload()
136 last_idle_time[i] = idle_time; in threadload()
185 static void kevdump_cb(const uintptr_t *i) { in kevdump_cb() argument
186 switch (i[1] & 0xffff) { in kevdump_cb()
188 … printf("%lu.%lu: context switch from %p to %p\n", i[0], i[1] >> 16, (void *)i[2], (void *)i[3]); in kevdump_cb()
191 printf("%lu.%lu: preempt on thread %p\n", i[0], i[1] >> 16, (void *)i[2]); in kevdump_cb()
194 printf("%lu.%lu: timer tick\n", i[0], i[1] >> 16); in kevdump_cb()
197 … printf("%lu.%lu: timer call %p, arg %p\n", i[0], i[1] >> 16, (void *)i[2], (void *)i[3]); in kevdump_cb()
200 printf("%lu.%lu: irq entry %lu\n", i[0], i[1] >> 16, i[2]); in kevdump_cb()
203 printf("%lu.%lu: irq exit %lu\n", i[0], i[1] >> 16, i[2]); in kevdump_cb()
206 printf("%lu: unknown id 0x%lx 0x%lx 0x%lx\n", i[0], i[1], i[2], i[3]); in kevdump_cb()