Home
last modified time | relevance | path

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

/kernel/trace/
Dtrace_output.c29 struct bputs_entry *field; in trace_print_bputs_msg_only() local
31 trace_assign_type(field, entry); in trace_print_bputs_msg_only()
33 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only()
42 struct bprint_entry *field; in trace_print_bprintk_msg_only() local
44 trace_assign_type(field, entry); in trace_print_bprintk_msg_only()
46 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only()
55 struct print_entry *field; in trace_print_printk_msg_only() local
57 trace_assign_type(field, entry); in trace_print_printk_msg_only()
59 trace_seq_puts(s, field->buf); in trace_print_printk_msg_only()
834 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_synth.c483 struct synth_field *field = event->fields[i]; in trace_event_raw_event_synth() local
486 switch (field->size) { in trace_event_raw_event_synth()
575 static void free_synth_field(struct synth_field *field) in free_synth_field() argument
577 kfree(field->type); in free_synth_field()
578 kfree(field->name); in free_synth_field()
579 kfree(field); in free_synth_field()
585 struct synth_field *field; in parse_synth_field() local
608 field = kzalloc(sizeof(*field), GFP_KERNEL); in parse_synth_field()
609 if (!field) in parse_synth_field()
619 field->name = kmemdup_nul(field_name, len, GFP_KERNEL); in parse_synth_field()
[all …]
Dtrace_events_hist.c83 typedef u64 (*hist_field_fn_t) (struct hist_field *field,
116 struct ftrace_event_field *field; member
155 static u64 hist_field_none(struct hist_field *field, in hist_field_none() argument
163 static u64 hist_field_counter(struct hist_field *field, in hist_field_counter() argument
176 char *addr = (char *)(event + hist_field->field->offset); in hist_field_string()
186 u32 str_item = *(u32 *)(event + hist_field->field->offset); in hist_field_dynstring()
198 char **addr = (char **)(event + hist_field->field->offset); in hist_field_pstring()
262 type *addr = (type *)(event + hist_field->field->offset); \
752 struct hist_field *field; in check_var_refs() local
757 field = hist_data->fields[i]; in check_var_refs()
[all …]
Dtrace_events.c79 struct ftrace_event_field *field; in __find_event_field() local
81 list_for_each_entry(field, head, link) { in __find_event_field()
82 if (!strcmp(field->name, name)) in __find_event_field()
83 return field; in __find_event_field()
92 struct ftrace_event_field *field; in trace_find_event_field() local
96 field = __find_event_field(head, name); in trace_find_event_field()
97 if (field) in trace_find_event_field()
98 return field; in trace_find_event_field()
100 field = __find_event_field(&ftrace_generic_fields, name); in trace_find_event_field()
101 if (field) in trace_find_event_field()
[all …]
Dtrace_events_filter.c1228 struct ftrace_event_field *field; in parse_pred() local
1260 field = trace_find_event_field(call, field_name); in parse_pred()
1262 if (!field) { in parse_pred()
1299 pred->field = field; in parse_pred()
1300 pred->offset = field->offset; in parse_pred()
1311 if (strcmp(field->name, "ip") != 0) { in parse_pred()
1364 if (!is_string_field(field)) { in parse_pred()
1392 if (field->filter_type == FILTER_COMM) { in parse_pred()
1395 } else if (field->filter_type == FILTER_STATIC_STRING) { in parse_pred()
1397 pred->regex.field_len = field->size; in parse_pred()
[all …]
Dtrace_kprobe.c1003 const char *field; in __kprobe_event_gen_cmd_start() local
1005 field = va_arg(args, const char *); in __kprobe_event_gen_cmd_start()
1006 if (!field) in __kprobe_event_gen_cmd_start()
1014 arg.str = field; in __kprobe_event_gen_cmd_start()
1054 const char *field; in __kprobe_event_add_fields() local
1056 field = va_arg(args, const char *); in __kprobe_event_add_fields()
1057 if (!field) in __kprobe_event_add_fields()
1065 arg.str = field; in __kprobe_event_add_fields()
1483 struct kprobe_trace_entry_head *field; in print_kprobe_event() local
1487 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.c170 struct trace_mmiotrace_rw *field; in mmio_print_rw() local
177 trace_assign_type(field, entry); in mmio_print_rw()
178 rw = &field->rw; in mmio_print_rw()
215 struct trace_mmiotrace_map *field; in mmio_print_map() local
222 trace_assign_type(field, entry); in mmio_print_map()
223 m = &field->map; in mmio_print_map()
Dtrace_functions_graph.c865 print_graph_entry(struct ftrace_graph_ent_entry *field, struct trace_seq *s, in print_graph_entry() argument
869 struct ftrace_graph_ent *call = &field->graph_ent; in print_graph_entry()
879 leaf_ret = get_return_for_leaf(iter, field); in print_graph_entry()
881 ret = print_graph_entry_leaf(iter, field, leaf_ret, s, flags); in print_graph_entry()
883 ret = print_graph_entry_nested(iter, field, s, cpu, flags); in print_graph_entry()
1041 struct ftrace_graph_ent_entry *field; in print_graph_function_flags() local
1058 field = &data->ent; in print_graph_function_flags()
1060 ret = print_graph_entry(field, s, iter, flags); in print_graph_function_flags()
1078 trace_assign_type(field, entry); in print_graph_function_flags()
1079 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.h222 u8 *data, void *field) in print_probe_args() argument
232 if (!a->type->print(s, data + a->offset, field)) in print_probe_args()
239 if (!a->type->print(s, p, field)) in print_probe_args()
Dtrace.h1636 struct ftrace_event_field *field; member
1642 static inline bool is_string_field(struct ftrace_event_field *field) in is_string_field() argument
1644 return field->filter_type == FILTER_DYN_STRING || in is_string_field()
1645 field->filter_type == FILTER_STATIC_STRING || in is_string_field()
1646 field->filter_type == FILTER_PTR_STRING || in is_string_field()
1647 field->filter_type == FILTER_COMM; in is_string_field()
1650 static inline bool is_function_field(struct ftrace_event_field *field) in is_function_field() argument
1652 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.c386 struct buffer_data_page field; in ring_buffer_print_page_header() local
390 (unsigned int)sizeof(field.time_stamp), in ring_buffer_print_page_header()
395 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
396 (unsigned int)sizeof(field.commit), in ring_buffer_print_page_header()
401 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
407 (unsigned int)offsetof(typeof(field), data), in ring_buffer_print_page_header()
Dtrace_uprobe.c1183 struct uprobe_trace_entry_head field; in uprobe_event_define_fields() local
/kernel/
Dmodule.c787 #define MODINFO_ATTR(field) \ argument
788 static void setup_modinfo_##field(struct module *mod, const char *s) \
790 mod->field = kstrdup(s, GFP_KERNEL); \
792 static ssize_t show_modinfo_##field(struct module_attribute *mattr, \
795 return scnprintf(buffer, PAGE_SIZE, "%s\n", mk->mod->field); \
797 static int modinfo_##field##_exists(struct module *mod) \
799 return mod->field != NULL; \
801 static void free_modinfo_##field(struct module *mod) \
803 kfree(mod->field); \
804 mod->field = NULL; \
[all …]
Dsignal.c4575 #define CHECK_OFFSET(field) \ in siginfo_buildtime_checks() argument
4576 BUILD_BUG_ON(offsetof(siginfo_t, field) != offsetof(kernel_siginfo_t, field)) in siginfo_buildtime_checks()