Function report |
Source Code:kernel\trace\trace_kprobe.c |
Create Date:2022-07-28 12:39:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Fetch a null-terminated string. Caller MUST set *(u32 *)buf with max* length and relative data location.
Proto:static inline __attribute__((__always_inline__)) int fetch_store_string(unsigned long addr, void *dest, void *base)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | addr | |
void * | dest | |
void * | base |
1066 | maxlen = get_loc_len( * (u32 * )dest) |
1070 | If Value for the false possibility is greater at compile time(!maxlen) Then Return -ENOMEM |
1073 | __dest = get_loc_data(dest, base) |
1079 | ret = strncpy_from_unsafe(__dest, (void * )addr, maxlen) |
1083 | Return ret |
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 |