函数逻辑报告 |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-27 13:43:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:event_hist_trigger_print
函数原型:static int event_hist_trigger_print(struct seq_file *m, struct event_trigger_ops *ops, struct event_trigger_data *data)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct seq_file * | m | |
struct event_trigger_ops * | ops | |
struct event_trigger_data * | data |
5629 | hist_data等于private_data |
5631 | bool have_var = false |
5636 | 如果name则seq_printf(m, "%s:", name) |
5647 | 如果flags按位与HIST_FIELD_FL_STACKTRACE则seq_puts(m, "stacktrace") |
5649 | 否则hist_field_print(m, field) |
5657 | 如果flags按位与HIST_FIELD_FL_VAR则 |
5658 | have_var = true |
5659 | 继续下一循环 |
5662 | 如果i恒等于HITCOUNT_IDX则seq_puts(m, "hitcount") |
5664 | 否则 |
5666 | hist_field_print(m, field) |
5670 | 如果have_var则 |
5671 | n等于0 |
5678 | 如果flags按位与HIST_FIELD_FL_VAR则 |
5688 | 以i小于n_sort_keys循环 |
5693 | first_key_idx等于n_vals减n_vars |
5698 | 如果WARN_ON(idx >= HIST_FIELDS_MAX)则返回:负EINVAL |
5704 | 如果idx恒等于HITCOUNT_IDX则seq_puts(m, "hitcount") |
5706 | 否则 |
5707 | 如果idx大于等于first_key_idx则idx加等于n_vars |
5709 | hist_field_print(m, fields[idx]) |
5712 | 如果descending则seq_puts(m, ".descending") |
5715 | seq_printf(m, ":size=%u", (1 << map_bits)) |
5716 | 如果enable_timestamps则seq_printf(m, ":clock=%s", clock) |
5719 | print_actions_spec(m, hist_data) |
5721 | 如果filter_str则seq_printf(m, " if %s", filter_str) |
5731 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |