函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_hexdump.c Create Date:2022-07-27 07:23:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:test_hexdump

函数原型:static void __init test_hexdump(size_t len, int rowsize, int groupsize, bool ascii)

返回类型:void

参数:

类型参数名称
size_tlen
introwsize
intgroupsize
boolascii
131  total_tests自加
133  memset(real, FILL_CHAR, 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, test的长度)
138  test_hexdump_prepare_test(len, rowsize, groupsize, test, test的长度, ascii)
141  如果memcmp(test, real, TEST_HEXDUMP_BUF_SIZE)则
142  打印错误信息("Len: %zu row: %d group: %d\n", len, rowsize, groupsize)
143  打印错误信息("Result: '%s'\n", real)
144  打印错误信息("Expect: '%s'\n", test)
145  failed_tests自加
调用者
名称描述
test_hexdump_set