Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test-string_helpers.c Create Date:2022-07-28 06:26:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_string_get_size

Proto:static __init void test_string_get_size(void)

Type:void

Parameter:Nothing

376  test_string_get_size_one(0, 512, "0 B", "0 B")
377  test_string_get_size_one(1, 512, "512 B", "512 B")
378  test_string_get_size_one(1100, 1, "1.10 kB", "1.07 KiB")
381  test_string_get_size_one(16384, 512, "8.39 MB", "8.00 MiB")
382  test_string_get_size_one(500118192, 512, "256 GB", "238 GiB")
383  test_string_get_size_one(8192, 4096, "33.6 MB", "32.0 MiB")
386  test_string_get_size_one(3000, 1900, "5.70 MB", "5.44 MiB")
389  test_string_get_size_one(U64_MAX, 4096, "75.6 ZB", "64.0 ZiB")
390  test_string_get_size_one(4096, U64_MAX, "75.6 ZB", "64.0 ZiB")
Caller
NameDescribe
test_string_helpers_init