Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:01:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Consumer reader.
Proto:static ssize_t tracing_read_pipe(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
char __user * | ubuf | |
size_t | cnt | |
loff_t * | ppos |
6108 | mutex_lock( & mutex) |
6111 | sret = trace_seq_to_user( & The below is zeroed out in pipe_read , ubuf, cnt) |
6117 | If read Then |
6123 | waitagain : |
6129 | If trace_empty(iter) Then |
6138 | memset( & The below is zeroed out in pipe_read , 0, sizeof(structtrace_iterator) - offsetof(structtrace_iterator, seq)) |
6143 | pos = -1 |
6145 | trace_event_read_lock() |
6146 | trace_access_lock(cpu_file) |
6147 | When (Find the next real entry, and increment the iterator to the next entry != NULL) cycle |
6152 | If ret == Retry after flushing the seq Then |
6157 | If ret != TRACE_TYPE_NO_CONSUME Then trace_consume(iter) |
6171 | trace_access_unlock(cpu_file) |
6172 | trace_event_read_unlock() |
6175 | sret = trace_seq_to_user( & The below is zeroed out in pipe_read , ubuf, cnt) |
6186 | out : |
6189 | Return sret |
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 |