Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:02:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tracing_mark_write
Proto:static ssize_t tracing_mark_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
const char __user * | ubuf | |
size_t | cnt | |
loff_t * | fpos |
6489 | If Not (trace_flags & TRACE_ITER_MARKERS) Then Return -EINVAL |
6492 | If cnt > TRACE_BUF_SIZE Then cnt = TRACE_BUF_SIZE |
6497 | local_save_flags(irq_flags) |
6501 | If cnt < '\0' is already accounted for Then size += '\0' is already accounted for - cnt |
6507 | If Value for the false possibility is greater at compile time(!event) Then Return -EBADF |
6511 | entry = g_buffer_event_data - return the data of the event*@event: the event to get the data from |
6515 | If len Then |
6517 | cnt = '\0' is already accounted for |
6523 | If trace_marker_file && Not list_empty - tests whether a list is empty*@head: the list to test. Then |
6535 | __buffer_unlock_commit(buffer, event) |
6537 | If tt Then event_triggers_post_call(trace_marker_file, tt) |
6543 | Return written |
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 |