Home
last modified time | relevance | path

Searched refs:field (Results 1 – 22 of 22) sorted by relevance

/kernel/trace/
Dtrace_output.c30 struct bputs_entry *field; in trace_print_bputs_msg_only() local
32 trace_assign_type(field, entry); in trace_print_bputs_msg_only()
34 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only()
43 struct bprint_entry *field; in trace_print_bprintk_msg_only() local
45 trace_assign_type(field, entry); in trace_print_bprintk_msg_only()
47 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only()
56 struct print_entry *field; in trace_print_printk_msg_only() local
58 trace_assign_type(field, entry); in trace_print_printk_msg_only()
60 trace_seq_puts(s, field->buf); in trace_print_printk_msg_only()
867 struct ftrace_entry *field; in trace_fn_trace() local
[all …]
Dtrace_events_inject.c39 struct ftrace_event_field *field; in parse_field() local
60 field = trace_find_event_field(call, field_name); in parse_field()
62 if (!field) in parse_field()
65 *pf = field; in parse_field()
79 if (is_string_field(field)) in parse_field()
94 if (field->is_signed) in parse_field()
108 if (!is_string_field(field)) in parse_field()
140 struct ftrace_event_field *field; in trace_get_entry_size() local
145 list_for_each_entry(field, head, link) { in trace_get_entry_size()
146 if (field->size + field->offset > size) in trace_get_entry_size()
[all …]
Dtrace_events_user.c435 struct ftrace_event_field *field, *next; in user_event_destroy_fields() local
438 list_for_each_entry_safe(field, next, head, link) { in user_event_destroy_fields()
439 list_del(&field->link); in user_event_destroy_fields()
440 kfree(field); in user_event_destroy_fields()
449 struct ftrace_event_field *field; in user_event_add_field() local
452 field = kmalloc(sizeof(*field), GFP_KERNEL); in user_event_add_field()
454 if (!field) in user_event_add_field()
474 kfree(field); in user_event_add_field()
485 field->type = type; in user_event_add_field()
486 field->name = name; in user_event_add_field()
[all …]
Dtrace_events_synth.c586 struct synth_field *field = event->fields[i]; in trace_event_raw_event_synth() local
589 switch (field->size) { in trace_event_raw_event_synth()
681 static void free_synth_field(struct synth_field *field) in free_synth_field() argument
683 kfree(field->type); in free_synth_field()
684 kfree(field->name); in free_synth_field()
685 kfree(field); in free_synth_field()
709 struct synth_field *field; in parse_synth_field() local
735 field = kzalloc(sizeof(*field), GFP_KERNEL); in parse_synth_field()
736 if (!field) in parse_synth_field()
744 field->name = kmemdup_nul(field_name, len, GFP_KERNEL); in parse_synth_field()
[all …]
Dtrace_events_hist.c86 typedef u64 (*hist_field_fn_t) (struct hist_field *field,
156 struct ftrace_event_field *field; member
207 static u64 hist_field_const(struct hist_field *field, in hist_field_const() argument
213 return field->constant; in hist_field_const()
216 static u64 hist_field_counter(struct hist_field *field, in hist_field_counter() argument
231 char *addr = (char *)(event + hist_field->field->offset); in hist_field_string()
242 u32 str_item = *(u32 *)(event + hist_field->field->offset); in hist_field_dynstring()
255 u32 *item = event + hist_field->field->offset; in hist_field_reldynstring()
269 char **addr = (char **)(event + hist_field->field->offset); in hist_field_pstring()
459 type *addr = (type *)(event + hist_field->field->offset); \
[all …]
Dtrace_events.c87 struct ftrace_event_field *field; in __find_event_field() local
89 list_for_each_entry(field, head, link) { in __find_event_field()
90 if (!strcmp(field->name, name)) in __find_event_field()
91 return field; in __find_event_field()
100 struct ftrace_event_field *field; in trace_find_event_field() local
104 field = __find_event_field(head, name); in trace_find_event_field()
105 if (field) in trace_find_event_field()
106 return field; in trace_find_event_field()
108 field = __find_event_field(&ftrace_generic_fields, name); in trace_find_event_field()
109 if (field) in trace_find_event_field()
[all …]
Dtrace_eprobe.c233 struct ftrace_event_field *field; in trace_eprobe_tp_arg_update() local
238 list_for_each_entry(field, head, link) { in trace_eprobe_tp_arg_update()
239 if (!strcmp(parg->code->data, field->name)) { in trace_eprobe_tp_arg_update()
241 parg->code->data = field; in trace_eprobe_tp_arg_update()
263 struct eprobe_trace_entry_head field; in eprobe_event_define_fields() local
270 return traceprobe_define_arg_fields(event_call, sizeof(field), tp); in eprobe_event_define_fields()
284 struct eprobe_trace_entry_head *field; in print_eprobe_event() local
292 field = (struct eprobe_trace_entry_head *)iter->ent; in print_eprobe_event()
315 (u8 *)&field[1], field) < 0) in print_eprobe_event()
325 struct ftrace_event_field *field = code->data; in get_event_field() local
[all …]
Dtrace_events_filter.c76 struct ftrace_event_field *field; member
1351 struct ftrace_event_field *field; in parse_pred() local
1383 field = trace_find_event_field(call, field_name); in parse_pred()
1385 if (!field) { in parse_pred()
1422 pred->field = field; in parse_pred()
1423 pred->offset = field->offset; in parse_pred()
1434 if (strcmp(field->name, "ip") != 0) { in parse_pred()
1487 if (!is_string_field(field)) { in parse_pred()
1515 if (field->filter_type == FILTER_COMM) { in parse_pred()
1518 } else if (field->filter_type == FILTER_STATIC_STRING) { in parse_pred()
[all …]
Dtrace_kprobe.c1057 const char *field; in __kprobe_event_gen_cmd_start() local
1059 field = va_arg(args, const char *); in __kprobe_event_gen_cmd_start()
1060 if (!field) in __kprobe_event_gen_cmd_start()
1068 arg.str = field; in __kprobe_event_gen_cmd_start()
1108 const char *field; in __kprobe_event_add_fields() local
1110 field = va_arg(args, const char *); in __kprobe_event_add_fields()
1111 if (!field) in __kprobe_event_add_fields()
1119 arg.str = field; in __kprobe_event_add_fields()
1473 struct kprobe_trace_entry_head *field; in print_kprobe_event() local
1477 field = (struct kprobe_trace_entry_head *)iter->ent; in print_kprobe_event()
[all …]
Dtrace_branch.c143 struct trace_branch *field; in trace_branch_print() local
145 trace_assign_type(field, iter->ent); in trace_branch_print()
148 field->correct ? " ok " : " MISS ", in trace_branch_print()
149 field->func, in trace_branch_print()
150 field->file, in trace_branch_print()
151 field->line); in trace_branch_print()
Dtrace_mmiotrace.c168 struct trace_mmiotrace_rw *field; in mmio_print_rw() local
175 trace_assign_type(field, entry); in mmio_print_rw()
176 rw = &field->rw; in mmio_print_rw()
213 struct trace_mmiotrace_map *field; in mmio_print_map() local
220 trace_assign_type(field, entry); in mmio_print_map()
221 m = &field->map; in mmio_print_map()
Dtrace_functions_graph.c863 print_graph_entry(struct ftrace_graph_ent_entry *field, struct trace_seq *s, in print_graph_entry() argument
867 struct ftrace_graph_ent *call = &field->graph_ent; in print_graph_entry()
877 leaf_ret = get_return_for_leaf(iter, field); in print_graph_entry()
879 ret = print_graph_entry_leaf(iter, field, leaf_ret, s, flags); in print_graph_entry()
881 ret = print_graph_entry_nested(iter, field, s, cpu, flags); in print_graph_entry()
1039 struct ftrace_graph_ent_entry *field; in print_graph_function_flags() local
1056 field = &data->ent; in print_graph_function_flags()
1058 ret = print_graph_entry(field, s, iter, flags); in print_graph_function_flags()
1076 trace_assign_type(field, entry); in print_graph_function_flags()
1077 saved = *field; in print_graph_function_flags()
[all …]
Dtracing_map.c864 struct tracing_map_field *field; in cmp_entries_sum() local
877 field = &elt_a->fields[sort_key->field_idx]; in cmp_entries_sum()
878 cmp_fn = field->cmp_fn; in cmp_entries_sum()
895 struct tracing_map_field *field; in cmp_entries_key() local
908 field = &elt_a->fields[sort_key->field_idx]; in cmp_entries_key()
910 cmp_fn = field->cmp_fn; in cmp_entries_key()
912 val_a = elt_a->key + field->offset; in cmp_entries_key()
913 val_b = elt_b->key + field->offset; in cmp_entries_key()
Dtrace_probe_tmpl.h259 u8 *data, void *field) in print_probe_args() argument
269 if (!a->type->print(s, data + a->offset, field)) in print_probe_args()
276 if (!a->type->print(s, p, field)) in print_probe_args()
Dtrace.h1465 static inline bool is_string_field(struct ftrace_event_field *field) in is_string_field() argument
1467 return field->filter_type == FILTER_DYN_STRING || in is_string_field()
1468 field->filter_type == FILTER_RDYN_STRING || in is_string_field()
1469 field->filter_type == FILTER_STATIC_STRING || in is_string_field()
1470 field->filter_type == FILTER_PTR_STRING || in is_string_field()
1471 field->filter_type == FILTER_COMM; in is_string_field()
1474 static inline bool is_function_field(struct ftrace_event_field *field) in is_function_field() argument
1476 return field->filter_type == FILTER_TRACE_FN; in is_function_field()
Dtrace_probe.h46 offsetof(typeof(field), item), \
47 sizeof(field.item), is_signed, \
Dring_buffer.c347 struct buffer_data_page field; in ring_buffer_print_page_header() local
351 (unsigned int)sizeof(field.time_stamp), in ring_buffer_print_page_header()
356 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
357 (unsigned int)sizeof(field.commit), in ring_buffer_print_page_header()
362 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
368 (unsigned int)offsetof(typeof(field), data), in ring_buffer_print_page_header()
Dtrace_uprobe.c1181 struct uprobe_trace_entry_head field; in uprobe_event_define_fields() local
DKconfig465 ACTIVATION ID field serves to relate the irq execution to its
/kernel/module/
Dmain.c501 #define MODINFO_ATTR(field) \ argument
502 static void setup_modinfo_##field(struct module *mod, const char *s) \
504 mod->field = kstrdup(s, GFP_KERNEL); \
506 static ssize_t show_modinfo_##field(struct module_attribute *mattr, \
509 return scnprintf(buffer, PAGE_SIZE, "%s\n", mk->mod->field); \
511 static int modinfo_##field##_exists(struct module *mod) \
513 return mod->field != NULL; \
515 static void free_modinfo_##field(struct module *mod) \
517 kfree(mod->field); \
518 mod->field = NULL; \
[all …]
DKconfig84 field inserted into their modinfo section, which contains a
88 the version). With this option, such a "srcversion" field
/kernel/
Dsignal.c4710 #define CHECK_OFFSET(field) \ in siginfo_buildtime_checks() argument
4711 BUILD_BUG_ON(offsetof(siginfo_t, field) != offsetof(kernel_siginfo_t, field)) in siginfo_buildtime_checks()