/kernel/trace/ |
D | trace_output.c | 27 struct bputs_entry *field; in trace_print_bputs_msg_only() local 29 trace_assign_type(field, entry); in trace_print_bputs_msg_only() 31 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only() 40 struct bprint_entry *field; in trace_print_bprintk_msg_only() local 42 trace_assign_type(field, entry); in trace_print_bprintk_msg_only() 44 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only() 53 struct print_entry *field; in trace_print_printk_msg_only() local 55 trace_assign_type(field, entry); in trace_print_printk_msg_only() 57 trace_seq_puts(s, field->buf); in trace_print_printk_msg_only() 791 struct ftrace_entry *field; in trace_fn_trace() local [all …]
|
D | trace_events_hist.c | 28 typedef u64 (*hist_field_fn_t) (struct hist_field *field, void *event); 31 struct ftrace_event_field *field; member 38 static u64 hist_field_none(struct hist_field *field, void *event) in hist_field_none() argument 43 static u64 hist_field_counter(struct hist_field *field, void *event) in hist_field_counter() argument 50 char *addr = (char *)(event + hist_field->field->offset); in hist_field_string() 57 u32 str_item = *(u32 *)(event + hist_field->field->offset); in hist_field_dynstring() 66 char **addr = (char **)(event + hist_field->field->offset); in hist_field_pstring() 73 u64 val = *(u64 *)(event + hist_field->field->offset); in hist_field_log2() 81 type *addr = (type *)(event + hist_field->field->offset); \ 347 static struct hist_field *create_hist_field(struct ftrace_event_field *field, in create_hist_field() argument [all …]
|
D | trace_export.c | 77 offsetof(typeof(field), item), \ 78 sizeof(field.item), \ 86 offsetof(typeof(field), \ 88 sizeof(field.container.item), \ 99 offsetof(typeof(field), item), \ 100 sizeof(field.item), \ 110 offsetof(typeof(field), \ 112 sizeof(field.container.item), \ 120 offsetof(typeof(field), item), \ 130 struct struct_name field; \
|
D | trace_events_filter.c | 949 static bool is_legal_op(struct ftrace_event_field *field, int op) in is_legal_op() argument 951 if (is_string_field(field) && in is_legal_op() 954 if (!is_string_field(field) && op == OP_GLOB) in is_legal_op() 1004 struct ftrace_event_field *field, in init_pred() argument 1012 pred->offset = field->offset; in init_pred() 1014 if (!is_legal_op(field, pred->op)) { in init_pred() 1019 if (field->filter_type == FILTER_COMM) { in init_pred() 1023 } else if (is_string_field(field)) { in init_pred() 1026 if (field->filter_type == FILTER_STATIC_STRING) { in init_pred() 1028 pred->regex.field_len = field->size; in init_pred() [all …]
|
D | trace_events.c | 83 struct ftrace_event_field *field; in __find_event_field() local 85 list_for_each_entry(field, head, link) { in __find_event_field() 86 if (!strcmp(field->name, name)) in __find_event_field() 87 return field; in __find_event_field() 96 struct ftrace_event_field *field; in trace_find_event_field() local 100 field = __find_event_field(head, name); in trace_find_event_field() 101 if (field) in trace_find_event_field() 102 return field; in trace_find_event_field() 104 field = __find_event_field(&ftrace_generic_fields, name); in trace_find_event_field() 105 if (field) in trace_find_event_field() [all …]
|
D | trace_branch.c | 141 struct trace_branch *field; in trace_branch_print() local 143 trace_assign_type(field, iter->ent); in trace_branch_print() 146 field->correct ? " ok " : " MISS ", in trace_branch_print() 147 field->func, in trace_branch_print() 148 field->file, in trace_branch_print() 149 field->line); in trace_branch_print()
|
D | trace_mmiotrace.c | 169 struct trace_mmiotrace_rw *field; in mmio_print_rw() local 176 trace_assign_type(field, entry); in mmio_print_rw() 177 rw = &field->rw; in mmio_print_rw() 214 struct trace_mmiotrace_map *field; in mmio_print_map() local 221 trace_assign_type(field, entry); in mmio_print_map() 222 m = &field->map; in mmio_print_map()
|
D | trace_functions_graph.c | 1068 print_graph_entry(struct ftrace_graph_ent_entry *field, struct trace_seq *s, in print_graph_entry() argument 1072 struct ftrace_graph_ent *call = &field->graph_ent; in print_graph_entry() 1082 leaf_ret = get_return_for_leaf(iter, field); in print_graph_entry() 1084 ret = print_graph_entry_leaf(iter, field, leaf_ret, s, flags); in print_graph_entry() 1086 ret = print_graph_entry_nested(iter, field, s, cpu, flags); in print_graph_entry() 1244 struct ftrace_graph_ent_entry *field; in print_graph_function_flags() local 1264 field = &data->ent; in print_graph_function_flags() 1266 ret = print_graph_entry(field, s, iter, flags); in print_graph_function_flags() 1284 trace_assign_type(field, entry); in print_graph_function_flags() 1285 saved = *field; in print_graph_function_flags() [all …]
|
D | trace_kprobe.c | 1015 struct kprobe_trace_entry_head *field; in print_kprobe_event() local 1021 field = (struct kprobe_trace_entry_head *)iter->ent; in print_kprobe_event() 1026 if (!seq_print_ip_sym(s, field->ip, flags | TRACE_ITER_SYM_OFFSET)) in print_kprobe_event() 1031 data = (u8 *)&field[1]; in print_kprobe_event() 1034 data + tp->args[i].offset, field)) in print_kprobe_event() 1046 struct kretprobe_trace_entry_head *field; in print_kretprobe_event() local 1052 field = (struct kretprobe_trace_entry_head *)iter->ent; in print_kretprobe_event() 1057 if (!seq_print_ip_sym(s, field->ret_ip, flags | TRACE_ITER_SYM_OFFSET)) in print_kretprobe_event() 1062 if (!seq_print_ip_sym(s, field->func, flags & ~TRACE_ITER_SYM_OFFSET)) in print_kretprobe_event() 1067 data = (u8 *)&field[1]; in print_kretprobe_event() [all …]
|
D | tracing_map.c | 722 struct tracing_map_field *field; in cmp_entries_sum() local 732 field = &elt_a->fields[sort_key->field_idx]; in cmp_entries_sum() 733 cmp_fn = field->cmp_fn; in cmp_entries_sum() 750 struct tracing_map_field *field; in cmp_entries_key() local 760 field = &elt_a->fields[sort_key->field_idx]; in cmp_entries_key() 762 cmp_fn = field->cmp_fn; in cmp_entries_key() 764 val_a = elt_a->key + field->offset; in cmp_entries_key() 765 val_b = elt_b->key + field->offset; in cmp_entries_key()
|
D | trace.h | 1278 struct ftrace_event_field *field; member 1288 static inline bool is_string_field(struct ftrace_event_field *field) in is_string_field() argument 1290 return field->filter_type == FILTER_DYN_STRING || in is_string_field() 1291 field->filter_type == FILTER_STATIC_STRING || in is_string_field() 1292 field->filter_type == FILTER_PTR_STRING; in is_string_field() 1295 static inline bool is_function_field(struct ftrace_event_field *field) in is_function_field() argument 1297 return field->filter_type == FILTER_TRACE_FN; in is_function_field()
|
D | trace_syscalls.c | 200 #define SYSCALL_FIELD(type, field, name) \ argument 201 sizeof(type) != sizeof(trace.field) ? \ 203 #type, #name, offsetof(typeof(trace), field), \ 204 sizeof(trace.field), is_signed_type(type)
|
D | trace_probe.h | 57 offsetof(typeof(field), item), \ 58 sizeof(field.item), is_signed, \
|
D | ring_buffer.c | 369 struct buffer_data_page field; in ring_buffer_print_page_header() local 373 (unsigned int)sizeof(field.time_stamp), in ring_buffer_print_page_header() 378 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header() 379 (unsigned int)sizeof(field.commit), in ring_buffer_print_page_header() 384 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header() 390 (unsigned int)offsetof(typeof(field), data), in ring_buffer_print_page_header()
|
D | trace_uprobe.c | 988 struct uprobe_trace_entry_head field; in uprobe_event_define_fields() local
|
/kernel/ |
D | module.c | 732 #define MODINFO_ATTR(field) \ argument 733 static void setup_modinfo_##field(struct module *mod, const char *s) \ 735 mod->field = kstrdup(s, GFP_KERNEL); \ 737 static ssize_t show_modinfo_##field(struct module_attribute *mattr, \ 740 return scnprintf(buffer, PAGE_SIZE, "%s\n", mk->mod->field); \ 742 static int modinfo_##field##_exists(struct module *mod) \ 744 return mod->field != NULL; \ 746 static void free_modinfo_##field(struct module *mod) \ 748 kfree(mod->field); \ 749 mod->field = NULL; \ [all …]
|