Function report |
Source Code:lib\raid6\algos.c |
Create Date:2022-07-28 07:09:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:raid6_choose_gen
Proto:static inline const struct raid6_calls *raid6_choose_gen(void *( *const dptrs)[(65536/((1UL)<<12))+2], const int disks)
Type:struct raid6_calls
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void *( *const | dptrs | |
| const int | disks |
| 157 | If Not best || Has special performance attribute >= Has special performance attribute Then |
| 166 | perf = 0 |
| 171 | cpu_relax() |
| 172 | When time_before(jiffies, j1 + (1 << RAID6_TIME_JIFFIES_LG2)) cycle |
| 174 | gen_syndrome(disks, PAGE_SIZE, * dptrs) |
| 175 | perf++ |
| 177 | preempt_enable() |
| 179 | If perf > bestgenperf Then |
| 180 | bestgenperf = perf |
| 183 | pr_info("raid6: %-8s gen() %5ld MB/s\n", Name of this routine set , (perf * HZ) >> (20 - 16 + RAID6_TIME_JIFFIES_LG2)) |
| 186 | If Not xor_syndrome Then Continue |
| 189 | perf = 0 |
| 194 | cpu_relax() |
| 195 | When time_before(jiffies, j1 + (1 << RAID6_TIME_JIFFIES_LG2)) cycle |
| 201 | preempt_enable() |
| 203 | If best == algo Then bestxorperf = perf |
| 206 | pr_info("raid6: %-8s xor() %5ld MB/s\n", Name of this routine set , (perf * HZ) >> (20 - 16 + RAID6_TIME_JIFFIES_LG2 + 1)) |
| 211 | If best Then |
| 212 | pr_info("raid6: using algorithm %s gen() %ld MB/s\n", Name of this routine set , (bestgenperf * HZ) >> (20 - 16 + RAID6_TIME_JIFFIES_LG2)) |
| 215 | If xor_syndrome Then pr_info("raid6: .... xor() %ld MB/s, rmw enabled\n", (bestxorperf * HZ) >> (20 - 16 + RAID6_TIME_JIFFIES_LG2 + 1)) |
| 218 | raid6_call = best |
| 219 | Else pr_err("raid6: Yikes! No algorithm found!\n") |
| 222 | Return best |
| Name | Describe |
|---|---|
| raid6_select_algo | This code uses the gfmul table as convenient data set to abuse |
| 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 |