Lines Matching refs:base

63 	thread->base.usage.total += cycles;  in sched_thread_update_usage()
66 thread->base.usage.current += cycles; in sched_thread_update_usage()
68 if (thread->base.usage.longest < thread->base.usage.current) { in sched_thread_update_usage()
69 thread->base.usage.longest = thread->base.usage.current; in sched_thread_update_usage()
83 if (thread->base.usage.track_usage) { in z_sched_usage_start()
84 thread->base.usage.num_windows++; in z_sched_usage_start()
85 thread->base.usage.current = 0; in z_sched_usage_start()
110 if (cpu->current->base.usage.track_usage) { in z_sched_usage_stop()
142 if (cpu->current->base.usage.track_usage) { in z_sched_cpu_usage()
165 _kernel.cpus[cpu_id].idle_thread->base.usage.total; in z_sched_cpu_usage()
194 if (thread->base.usage.track_usage) { in z_sched_thread_usage()
203 stats->execution_cycles = thread->base.usage.total; in z_sched_thread_usage()
204 stats->total_cycles = thread->base.usage.total; in z_sched_thread_usage()
209 stats->current_cycles = thread->base.usage.current; in z_sched_thread_usage()
210 stats->peak_cycles = thread->base.usage.longest; in z_sched_thread_usage()
212 if (thread->base.usage.num_windows == 0) { in z_sched_thread_usage()
216 thread->base.usage.num_windows; in z_sched_thread_usage()
238 if (!thread->base.usage.track_usage) { in k_thread_runtime_stats_enable()
239 thread->base.usage.track_usage = true; in k_thread_runtime_stats_enable()
240 thread->base.usage.num_windows++; in k_thread_runtime_stats_enable()
241 thread->base.usage.current = 0; in k_thread_runtime_stats_enable()
260 if (thread->base.usage.track_usage) { in k_thread_runtime_stats_disable()
261 thread->base.usage.track_usage = false; in k_thread_runtime_stats_disable()
383 stats->num_windows = (thread->base.usage.track_usage) ? 1U : 0U; in z_thread_stats_reset()