Function report |
Source Code:kernel\trace\trace_benchmark.c |
Create Date:2022-07-28 12:45:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This gets called in a loop recording the time it took to write* the tracepoint
Proto:static void trace_do_benchmark(void)
Type:void
Parameter:Nothing
| 46 | std = 0 |
| 49 | If Not trace_benchmark_event_enabled() || Not racing_is_on - show state of ring buffers enabled Then Return |
| 52 | local_irq_disable() |
| 53 | start = race_clock_local(): the simplest and least coherent tracing clock.* Useful for tracing that does not cross to other CPUs nor* does it go through idle events. |
| 55 | stop = race_clock_local(): the simplest and least coherent tracing clock.* Useful for tracing that does not cross to other CPUs nor* does it go through idle events. |
| 58 | bm_cnt++ |
| 66 | If bm_cnt == 1 Then |
| 70 | Return |
| 93 | bm_totalsq += delta * delta |
| 96 | If bm_cnt > 1 Then |
| 101 | stddev = bm_cnt * bm_totalsq - bm_total * bm_total |
| 103 | do_div() is NOT a C function(stddev, (u32)bm_cnt - 1) |
| 104 | Else stddev = 0 |
| 111 | If stddev > 0 Then |
| Name | Describe |
|---|---|
| benchmark_event_kthread |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |