Function report |
Source Code:kernel\trace\ring_buffer_benchmark.c |
Create Date:2022-07-28 11:56:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ring_buffer_benchmark_init
Proto:static int __init ring_buffer_benchmark_init(void)
Type:int
Parameter:Nothing
| 439 | If Not disable_reader Then |
| 440 | consumer = Create kernel thread(ring_buffer_consumer_thread, NULL, "rb_consumer") |
| 457 | If Not disable_reader Then |
| 458 | If consumer_fifo >= 0 Then |
| 459 | struct sched_param param = {sched_priority = consumer_fifo} |
| 463 | Else set_user_nice(consumer, consumer_nice) |
| 467 | If producer_fifo >= 0 Then |
| 468 | struct sched_param param = {sched_priority = producer_fifo} |
| 472 | Else set_user_nice(producer, producer_nice) |
| 475 | Return 0 |
| 477 | out_kill : |
| 478 | If consumer Then stop a thread |
| 481 | out_fail : |
| 483 | Return ret |
| 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 |