函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_filter.c Create Date:2022-07-27 13:33:00
Last Modify:2022-05-22 20:19:57 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:append_filter_err

函数原型:static void append_filter_err(struct trace_array *tr, struct filter_parse_error *pe, struct event_filter *filter)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
struct filter_parse_error *pe
struct event_filter *filter
934  pos等于lasterr_pos
938  如果WARN_ON(!filter_string)则返回
941  s等于开辟内存
942  如果非s则返回
944  trace_seq_init(s)
946  len等于strlen - Find the length of a string*@s: The string to be sized
947  如果pos大于lenpos等于len
951  如果pospos自加
954  race_seq_puts - trace sequence printing of simple string*@s: trace sequence descriptor*@str: simple string to record* The tracer may use either the sequence operations or its own* copy to user routines
955  如果lasterr大于0则
956  race_seq_printf - sequence printing of trace information*@s: trace sequence descriptor*@fmt: printf format string* The tracer may use either sequence operations or its own* copy to user routines
957  race_seq_printf - sequence printing of trace information*@s: trace sequence descriptor*@fmt: printf format string* The tracer may use either sequence operations or its own* copy to user routines
958  racing_log_err - write an error to the tracing error log*@tr: The associated trace array for the error (NULL for top level array)*@loc: A string describing where the error occurred*@cmd: The tracing command that caused the error*@errs: The array of
961  否则
962  race_seq_printf - sequence printing of trace information*@s: trace sequence descriptor*@fmt: printf format string* The tracer may use either sequence operations or its own* copy to user routines
963  racing_log_err - write an error to the tracing error log*@tr: The associated trace array for the error (NULL for top level array)*@loc: A string describing where the error occurred*@cmd: The tracing command that caused the error*@errs: The array of
967  race_seq_putc - trace sequence printing of simple character*@s: trace sequence descriptor*@c: simple character to record* The tracer may use either the sequence operations or its own* copy to user routines
968  buf等于kmemdup_nul(buffer, len, GFP_KERNEL)
969  如果buf
970  kfree(filter_string)
971  filter_string等于buf
973  kfree(s)
调用者
名称描述
process_system_preds
create_filterreate_filter - create a filter for a trace_event_call*@call: trace_event_call to create a filter for*@filter_str: filter string*@set_str: remember @filter_str and enable detailed error in filter*@filterp: out param for created filter (always updated on
create_system_filterreate_system_filter - create a filter for an event_subsystem*@system: event_subsystem to create a filter for*@filter_str: filter string*@filterp: out param for created filter (always updated on return)* Identical to create_filter() except that it creates