Home
last modified time | relevance | path

Searched refs:thread_stats (Results 1 – 3 of 3) sorted by relevance

/lk-master/kernel/
A Ddebug.c78 printf("\treschedules: %lu\n", thread_stats[i].reschedules); 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()
87 printf("\ttimers: %lu\n", thread_stats[i].timers); in cmd_threadstats()
94 static struct thread_stats old_stats[SMP_MAX_CPUS]; in threadload()
102 lk_bigtime_t idle_time = thread_stats[i].idle_time; in threadload()
127 thread_stats[i].preempts - old_stats[i].preempts, in threadload()
131 thread_stats[i].interrupts - old_stats[i].interrupts, in threadload()
133 thread_stats[i].timers - old_stats[i].timers); in threadload()
[all …]
A Dthread.c38 struct thread_stats thread_stats[SMP_MAX_CPUS]; variable
520 thread_stats[cpu].idle_time += now - thread_stats[cpu].last_idle_timestamp; in thread_resched()
523 thread_stats[cpu].last_idle_timestamp = current_time_hires(); in thread_resched()
/lk-master/kernel/include/kernel/
A Dthread.h219 struct thread_stats { struct
235 extern struct thread_stats thread_stats[SMP_MAX_CPUS]; argument
237 #define THREAD_STATS_INC(name) do { thread_stats[arch_curr_cpu_num()].name++; } while(0)

Completed in 5 milliseconds