Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 11:58:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:race_get_user - reads the user input string separated by space* (matched by isspace(ch))* For each string found the 'struct trace_parser' is updated,* and the function returns.* Returns number of bytes read.* See kernel/trace/trace
Proto:int trace_get_user(struct trace_parser *parser, const char __user *ubuf, size_t cnt, loff_t *ppos)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct trace_parser * | parser | |
const char __user * | ubuf | |
size_t | cnt | |
loff_t * | ppos |
1424 | read = 0 |
1427 | If Not ppos Then trace_parser_clear(parser) |
1430 | ret = Get a simple variable from user space(ch, ubuf++) |
1434 | read++ |
1435 | cnt-- |
1441 | If Not cont Then |
1443 | When cnt && Note: isspace() must return false for %NUL-terminator (ch) cycle |
1451 | idx = 0 |
1454 | If Note: isspace() must return false for %NUL-terminator (ch) || Not ch Then |
1462 | When cnt && Not Note: isspace() must return false for %NUL-terminator (ch) && ch cycle |
1477 | If Note: isspace() must return false for %NUL-terminator (ch) || Not ch Then |
1485 | Else |
1493 | out : |
1494 | Return ret |
Name | Describe |
---|---|
trace_pid_write | |
ftrace_event_write |
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 |