Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 11:57:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:trace_pid_write
Proto:int trace_pid_write(struct trace_pid_list *filtered_pids, struct trace_pid_list **new_pid_list, const char __user *ubuf, size_t cnt)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct trace_pid_list * | filtered_pids | |
struct trace_pid_list ** | new_pid_list | |
const char __user * | ubuf | |
size_t | cnt |
518 | nr_pids = 0 |
519 | read = 0 |
520 | ret = 0 |
524 | If race_parser_get_init - gets the buffer for trace parser Then Return -ENOMEM |
533 | pid_list = Allocation memory |
534 | If Not pid_list Then |
536 | Return -ENOMEM |
539 | pid_max = READ_ONCE(PID filtering ) |
542 | If filtered_pids && pid_max > pid_max Then pid_max = pid_max |
546 | If Not pids Then |
552 | If filtered_pids Then |
557 | nr_pids++ |
563 | pos = 0 |
566 | If ret < 0 || Not trace_parser_loaded( & parser) Then Break |
582 | nr_pids++ |
584 | trace_parser_clear( & parser) |
585 | ret = 0 |
589 | If ret < 0 Then |
591 | Return ret |
594 | If Not nr_pids Then |
601 | new_pid_list = pid_list |
603 | Return read |
Name | Describe |
---|---|
ftrace_event_pid_write | |
ftrace_pid_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 |