函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-27 13:39:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_expr_operands

函数原型:static int check_expr_operands(struct trace_array *tr, struct hist_field *operand1, struct hist_field *operand2)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
struct hist_field *operand1
struct hist_field *operand2
3016  operand1_flags等于flags
3017  operand2_flags等于flags
3019  如果operand1_flags按位与HIST_FIELD_FL_VAR_REFoperand1_flags按位与HIST_FIELD_FL_ALIAS
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  如果非var则返回:负EINVAL
3026  operand1_flags等于flags
3029  如果operand2_flags按位与HIST_FIELD_FL_VAR_REFoperand2_flags按位与HIST_FIELD_FL_ALIAS
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  如果非var则返回:负EINVAL
3036  operand2_flags等于flags
3039  如果operand1_flags按位与HIST_FIELD_FL_TIMESTAMP_USECS的值不等于operand2_flags按位与HIST_FIELD_FL_TIMESTAMP_USECS的值则
3041  hist_err(tr, HIST_ERR_TIMESTAMP_MISMATCH, 0)
3042  返回:负EINVAL
3045  返回:0
调用者
名称描述
parse_expr