Function report |
Source Code:mm\kasan\report.c |
Create Date:2022-07-28 15:52:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:describe_object_addr
Proto:static void describe_object_addr(struct kmem_cache *cache, void *object, const void *addr)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct kmem_cache * | cache | |
void * | object | |
const void * | addr |
125 | access_addr = addr |
126 | object_addr = object |
130 | pr_err("The buggy address belongs to the object at %px\n which belongs to the cache %s of size %d\n", object, Name (only for display!) , The size of an object without metadata ) |
134 | If Not addr Then Return |
137 | If access_addr < object_addr Then |
138 | rel_type = "to the left" |
139 | rel_bytes = object_addr - access_addr |
140 | Else if access_addr >= object_addr + The size of an object without metadata Then |
141 | rel_type = "to the right" |
143 | Else |
144 | rel_type = "inside" |
145 | rel_bytes = access_addr - object_addr |
148 | pr_err("The buggy address is located %d bytes %s of\n %d-byte region [%px, %px)\n", rel_bytes, rel_type, The size of an object without metadata , (void * )object_addr, (void * )(object_addr + The size of an object without metadata )) |
Name | Describe |
---|---|
describe_object |
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 |