Function report |
Source Code:mm\gup_benchmark.c |
Create Date:2022-07-28 16:16:48 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__gup_benchmark_ioctl
Proto:static int __gup_benchmark_ioctl(unsigned int cmd, struct gup_benchmark *gup)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | cmd | |
| struct gup_benchmark * | gup |
| 29 | ret = 0 |
| 35 | pages = kvcalloc(nr_pages, size of * , GFP_KERNEL) |
| 39 | i = 0 |
| 40 | nr = nr_pages_per_call |
| 41 | start_time = ktime_get() |
| 43 | If nr != nr_pages_per_call Then Break |
| 53 | Case cmd == GUP_FAST_BENCHMARK |
| 56 | Break |
| 57 | Case cmd == GUP_LONGTERM_BENCHMARK |
| 61 | Break |
| 62 | Case cmd == GUP_BENCHMARK |
| 65 | Break |
| 66 | Default |
| 69 | Go to out |
| 72 | If nr <= 0 Then Break |
| 81 | start_time = ktime_get() |
| 91 | out : |
| 92 | Return ret |
| Name | Describe |
|---|---|
| gup_benchmark_ioctl |
| 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 |