Home
last modified time | relevance | path

Searched refs:perf (Results 1 – 9 of 9) sorted by relevance

/examples/utest/testcases/perf/
A Dperf_tc.c62 perf->real_time = rt_perf_get_timer_us() - perf->begin_time; in rt_perf_stop()
64 if(perf->local_modify) perf->local_modify(perf); in rt_perf_stop()
65 if (perf->real_time > perf->max_time) in rt_perf_stop()
67 perf->max_time = perf->real_time; in rt_perf_stop()
70 if (perf->real_time < perf->min_time) in rt_perf_stop()
72 perf->min_time = perf->real_time; in rt_perf_stop()
75 perf->count++; in rt_perf_stop()
76 perf->tot_time += perf->real_time; in rt_perf_stop()
111 if (perf->count) in rt_perf_dump()
112 perf->avg_time = (double)perf->tot_time / perf->count; in rt_perf_dump()
[all …]
A Dcontext_switch_tc.c23 if(perf) in local_modify_time()
24 perf->real_time = perf->real_time - perf->tmp_time; in local_modify_time()
42 perf->tmp_time = 0; in perf_thread_event2()
43 rt_perf_start(perf); in perf_thread_event2()
46 rt_perf_stop(perf); in perf_thread_event2()
49 perf->count -= 1; in perf_thread_event2()
50 perf->tmp_time = perf->real_time; in perf_thread_event2()
53 rt_perf_start(perf); in perf_thread_event2()
56 rt_perf_stop(perf); in perf_thread_event2()
67 rt_strcpy(perf->name,__func__); in context_switch_test()
[all …]
A Dperf_tc.h34 void (*local_modify)(struct rt_perf *perf);
39 void rt_perf_stop(rt_perf_t *perf);
40 void rt_perf_dump( rt_perf_t *perf);
42 static inline void rt_perf_start(rt_perf_t *perf) in rt_perf_start() argument
44 rt_perf_start_impl(perf, RT_NULL); in rt_perf_start()
47 rt_err_t context_switch_test(rt_perf_t *perf);
48 rt_err_t rt_perf_irq_latency(rt_perf_t *perf);
49 rt_err_t rt_perf_thread_sem(rt_perf_t *perf);
50 rt_err_t rt_perf_thread_event(rt_perf_t *perf);
51 rt_err_t rt_perf_thread_mq(rt_perf_t *perf);
[all …]
A Dthread_mbox_tc.c26 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_mbox1() local
30 rt_perf_stop(perf); in perf_thread_mbox1()
38 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mbox1()
50 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_mbox2() local
54 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mbox2()
60 rt_perf_start(perf); in perf_thread_mbox2()
65 rt_err_t rt_perf_thread_mbox(rt_perf_t *perf) in rt_perf_thread_mbox() argument
71 rt_strcpy(perf->name,__func__); in rt_perf_thread_mbox()
73 rt_strcpy(perf->name,"rt_perf_thread_mbox"); in rt_perf_thread_mbox()
86 thread1 = rt_thread_create("perf_thread_mbox1", perf_thread_mbox1, perf, in rt_perf_thread_mbox()
[all …]
A Dthread_mq_tc.c25 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_mq1() local
29 rt_perf_stop(perf); in perf_thread_mq1()
37 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mq1()
49 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_mq2() local
53 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mq2()
59 rt_perf_start(perf); in perf_thread_mq2()
64 rt_err_t rt_perf_thread_mq(rt_perf_t *perf) in rt_perf_thread_mq() argument
70 rt_strcpy(perf->name,__func__); in rt_perf_thread_mq()
72 rt_strcpy(perf->name,"rt_perf_thread_mq"); in rt_perf_thread_mq()
85 thread1 = rt_thread_create("perf_thread_mq1", perf_thread_mq1, perf, in rt_perf_thread_mq()
[all …]
A Dirq_latency_tc.c22 static void modify_time(rt_perf_t *perf) in modify_time() argument
24 if(perf) in modify_time()
25 perf->real_time = perf->real_time - perf->tmp_time; in modify_time()
40 rt_err_t rt_perf_irq_latency(rt_perf_t *perf) in rt_perf_irq_latency() argument
43 rt_strcpy(perf->name,__func__); in rt_perf_irq_latency()
45 rt_strcpy(perf->name,"rt_perf_irq_latency"); in rt_perf_irq_latency()
50 perf_local = perf; in rt_perf_irq_latency()
63 rt_mutex_take(perf->lock,RT_WAITING_FOREVER); in rt_perf_irq_latency()
66 rt_mutex_release(perf->lock); in rt_perf_irq_latency()
A Dthread_event_tc.c27 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_event1() local
33 rt_perf_stop(perf); in perf_thread_event1()
41 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_event1()
53 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_event2() local
56 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_event2()
62 rt_perf_start(perf); in perf_thread_event2()
67 rt_err_t rt_perf_thread_event(rt_perf_t *perf) in rt_perf_thread_event() argument
73 rt_strcpy(perf->name,__func__); in rt_perf_thread_event()
75 rt_strcpy(perf->name,"rt_perf_thread_event"); in rt_perf_thread_event()
88 thread1 = rt_thread_create("perf_thread_event1", perf_thread_event1, perf, in rt_perf_thread_event()
[all …]
A Dthread_sem_tc.c26 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_sem1() local
31 rt_perf_stop(perf); in perf_thread_sem1()
39 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_sem1()
52 rt_perf_t *perf = (rt_perf_t *)parameter; in perf_thread_sem2() local
56 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_sem2()
71 rt_perf_start(perf); in perf_thread_sem2()
76 rt_err_t rt_perf_thread_sem(rt_perf_t *perf) in rt_perf_thread_sem() argument
82 rt_strcpy(perf->name,__func__); in rt_perf_thread_sem()
84 rt_strcpy(perf->name,"rt_perf_thread_sem"); in rt_perf_thread_sem()
97 thread1 = rt_thread_create("perf_thread_sem1", perf_thread_sem1, perf, in rt_perf_thread_sem()
[all …]
/examples/utest/testcases/
A DKconfig20 rsource "perf/Kconfig"

Completed in 11 milliseconds