Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:02:09 |
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_raw_write
Proto:static ssize_t tracing_mark_raw_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 |
6567 | If Not (trace_flags & TRACE_ITER_MARKERS) Then Return -EINVAL |
6571 | If cnt < sizeof(unsignedint) || cnt > Limit it for now to 3K (including tag) Then Return -EINVAL |
6574 | If cnt > TRACE_BUF_SIZE Then cnt = TRACE_BUF_SIZE |
6579 | local_save_flags(irq_flags) |
6581 | If cnt < FAULT_SIZE_ID Then size += FAULT_SIZE_ID - cnt |
6591 | entry = g_buffer_event_data - return the data of the event*@event: the event to get the data from |
6594 | If len Then |
6595 | id = -1 |
6601 | __buffer_unlock_commit(buffer, event) |
6606 | 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 |