Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_hexdump

Proto:static void __init test_hexdump(size_t len, int rowsize, int groupsize, bool ascii)

Type:void

Parameter:

TypeParameterName
size_tlen
introwsize
intgroupsize
boolascii
131  total_tests++
133  memset(real, FILL_CHAR, size of real )
134  hex_dump_to_buffer - convert a blob of data to "hex ASCII" in memory*@buf: data blob to dump*@len: number of bytes in the @buf*@rowsize: number of bytes to print per line; must be 16 or 32*@groupsize: number of bytes to print at a time (1, 2, 4, 8;
137  memset(test, FILL_CHAR, size of test )
138  test_hexdump_prepare_test(len, rowsize, groupsize, test, size of test , ascii)
141  If memcmp(test, real, TEST_HEXDUMP_BUF_SIZE) Then
142  pr_err("Len: %zu row: %d group: %d\n", len, rowsize, groupsize)
143  pr_err("Result: '%s'\n", real)
144  pr_err("Expect: '%s'\n", test)
145  failed_tests++
Caller
NameDescribe
test_hexdump_set