Function report |
Source Code:lib\crc32test.c |
Create Date:2022-07-28 06:55:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:crc32_test
Proto:static int __init crc32_test(void)
Type:int
Parameter:Nothing
| 749 | errors = 0 |
| 750 | bytes = 0 |
| 760 | bytes += 2 * andom 11 bit length of test |
| 770 | local_irq_save(flags) |
| 771 | local_irq_disable() |
| 773 | nsec = ktime_get_ns() |
| 775 | If xpected crc32_le result != crc32_le(andom starting crc , 4096 random bytes + andom 6 bit offset in buf , andom 11 bit length of test ) Then errors++ |
| 779 | If xpected crc32_be result != crc32_be(andom starting crc , 4096 random bytes + andom 6 bit offset in buf , andom 11 bit length of test ) Then errors++ |
| 783 | nsec = ktime_get_ns() - nsec |
| 785 | local_irq_restore(flags) |
| 788 | pr_info("crc32: CRC_LE_BITS = %d, CRC_BE BITS = %d\n", CRC_LE_BITS, CRC_BE_BITS) |
| 793 | Else |
| 798 | Return 0 |
| Name | Describe |
|---|---|
| crc32test_init |
| 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 |