Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_filter.c Create Date:2022-07-28 12:24:49
Last Modify:2022-05-22 20:19:57 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:append_filter_err

Proto:static void append_filter_err(struct trace_array *tr, struct filter_parse_error *pe, struct event_filter *filter)

Type:void

Parameter:

TypeParameterName
struct trace_array *tr
struct filter_parse_error *pe
struct event_filter *filter
934  pos = lasterr_pos
938  If WARN_ON(!filter_string) Then Return
941  s = Allocation memory
942  If Not s Then Return
944  trace_seq_init(s)
946  len = strlen - Find the length of a string*@s: The string to be sized
947  If pos > len Then pos = len
951  If pos Then pos++
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  If lasterr > 0 Then
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  Else
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  If buf Then
970  kfree(filter_string)
971  filter_string = buf
973  kfree(s)
Caller
NameDescribe
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