Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:33:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hist_trigger_print_key
Proto:static void hist_trigger_print_key(struct seq_file *m, struct hist_trigger_data *hist_data, void *key, struct tracing_map_elt *elt)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct seq_file * | m | |
struct hist_trigger_data * | hist_data | |
void * | key | |
struct tracing_map_elt * | elt |
5398 | bool multiline = false |
5411 | field_name = hist_field_name(key_field, 0) |
5413 | If flags & HIST_FIELD_FL_HEX Then |
5415 | seq_printf(m, "%s: %llx", field_name, uval) |
5416 | Else if flags & HIST_FIELD_FL_SYM Then |
5419 | seq_printf(m, "%s: [%llx] %-45s", field_name, uval, str) |
5421 | Else if flags & HIST_FIELD_FL_SYM_OFFSET Then |
5424 | seq_printf(m, "%s: [%llx] %-55s", field_name, uval, str) |
5426 | Else if flags & HIST_FIELD_FL_EXECNAME Then |
5427 | elt_data = private_data |
5430 | If WARN_ON_ONCE(!elt_data) Then Return |
5436 | seq_printf(m, "%s: %-16s[%10llu]", field_name, comm, uval) |
5438 | Else if flags & HIST_FIELD_FL_SYSCALL Then |
5442 | syscall_name = get_syscall_name(uval) |
5443 | If Not syscall_name Then syscall_name = "unknown_syscall" |
5446 | seq_printf(m, "%s: %-30s[%3llu]", field_name, syscall_name, uval) |
5448 | Else if flags & HIST_FIELD_FL_STACKTRACE Then |
5453 | multiline = true |
5454 | Else if flags & HIST_FIELD_FL_LOG2 Then |
5455 | seq_printf(m, "%s: ~ 2^%-2llu", field_name, * (u64 * )(key + offset)) |
5457 | Else if flags & HIST_FIELD_FL_STRING Then |
5458 | seq_printf(m, "%s: %-50s", field_name, (char * )(key + offset)) |
5460 | Else |
5462 | seq_printf(m, "%s: %10llu", field_name, uval) |
Name | Describe |
---|---|
hist_trigger_entry_print |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |