Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-28 12:30:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_expr_operands

Proto:static int check_expr_operands(struct trace_array *tr, struct hist_field *operand1, struct hist_field *operand2)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
struct hist_field *operand1
struct hist_field *operand2
3016  operand1_flags = flags
3017  operand2_flags = flags
3019  If operand1_flags & HIST_FIELD_FL_VAR_REF || operand1_flags & HIST_FIELD_FL_ALIAS Then
3023  var = find_var_field(hist_data, * The name field is used for EXPR and VAR_REF fields. VAR * fields contain the variable name in var.name.)
3024  If Not var Then Return -EINVAL
3026  operand1_flags = flags
3029  If operand2_flags & HIST_FIELD_FL_VAR_REF || operand2_flags & HIST_FIELD_FL_ALIAS Then
3033  var = find_var_field(hist_data, * The name field is used for EXPR and VAR_REF fields. VAR * fields contain the variable name in var.name.)
3034  If Not var Then Return -EINVAL
3036  operand2_flags = flags
3039  If (operand1_flags & HIST_FIELD_FL_TIMESTAMP_USECS) != (operand2_flags & HIST_FIELD_FL_TIMESTAMP_USECS) Then
3041  hist_err(tr, HIST_ERR_TIMESTAMP_MISMATCH, 0)
3042  Return -EINVAL
3045  Return 0
Caller
NameDescribe
parse_expr