/tools/lib/traceevent/Documentation/ |
D | libtraceevent-field_find.txt | 7 Search for a field in an event. 22 These functions search for a field with given name in an event. The field 23 returned can be used to find the field content from within a data record. 25 The _tep_find_common_field()_ function searches for a common field with _name_ 28 The _tep_find_field()_ function searches for an event specific field with 31 The _tep_find_any_field()_ function searches for any field with _name_ in the 37 functions return a pointer to the found field, or NULL in case there is no field 48 struct tep_format_field *field; 56 field = tep_find_common_field(event, "common_pid"); 57 if (field == NULL) { [all …]
|
D | libtraceevent-field_print.txt | 7 Print the field content. 24 These functions print recorded field's data, according to the field's type. 27 the _field_ and prints it into _s_, according to the field type. 29 The _tep_print_fields()_ prints each field name followed by the record's field 30 value according to the field's type: 38 The _tep_print_num_field()_ function prints a numeric field with given format 39 string. A search is performed in the _event_ for a field with _name_. If such 40 field is found, its value is extracted from the _record_ and is printed in the 44 The _tep_print_func_field()_ function prints a function field with given format 45 string. A search is performed in the _event_ for a field with _name_. If such [all …]
|
D | libtraceevent-field_get_val.txt | 7 tep_get_field_raw - Get value of a field. 24 These functions can be used to find a field and retrieve its value. 26 The _tep_get_any_field_val()_ function searches in the _record_ for a field 27 with _name_, part of the _event_. If the field is found, its value is stored in 38 The _tep_get_field_raw()_ function searches in the _record_ for a field with 39 _name_, part of the _event_. If the field is found, a pointer to where the field 49 The _tep_get_field_raw()_ function returns a pointer to field's raw data, and 74 /* Got the value of common type field */ 77 /* Got the value of pid specific field */ 81 /* Got a pointer to the comm event specific field */
|
/tools/lib/traceevent/plugins/ |
D | plugin_sched_switch.c | 48 static void write_and_save_comm(struct tep_format_field *field, in write_and_save_comm() argument 55 comm = (char *)(record->data + field->offset); in write_and_save_comm() 58 field->size, comm); in write_and_save_comm() 65 tep_register_comm(field->event->tep, comm, pid); in write_and_save_comm() 72 struct tep_format_field *field; in sched_wakeup_handler() local 78 field = tep_find_any_field(event, "comm"); in sched_wakeup_handler() 79 if (field) { in sched_wakeup_handler() 80 write_and_save_comm(field, record, s, val); in sched_wakeup_handler() 101 struct tep_format_field *field; in sched_switch_handler() local 107 field = tep_find_any_field(event, "prev_comm"); in sched_switch_handler() [all …]
|
D | plugin_kmem.c | 30 struct tep_format_field *field; in call_site_handler() local 35 field = tep_find_field(event, "call_site"); in call_site_handler() 36 if (!field) in call_site_handler() 39 if (tep_read_number_field(field, data, &val)) in call_site_handler()
|
/tools/lib/traceevent/ |
D | event-parse.c | 880 free(arg->field.name); in free_arg() 883 free_arg(arg->flags.field); in free_arg() 888 free_arg(arg->symbol.field); in free_arg() 893 free_arg(arg->hex.field); in free_arg() 897 free_arg(arg->int_array.field); in free_arg() 1373 static int field_is_string(struct tep_format_field *field) in field_is_string() argument 1375 if ((field->flags & TEP_FIELD_IS_ARRAY) && in field_is_string() 1376 (strstr(field->type, "char") || strstr(field->type, "u8") || in field_is_string() 1377 strstr(field->type, "s8"))) in field_is_string() 1383 static int field_is_dynamic(struct tep_format_field *field) in field_is_dynamic() argument [all …]
|
D | event-parse.h | 180 struct tep_format_field *field; member 195 struct tep_print_arg *field; member 201 struct tep_print_arg *field; member 206 struct tep_print_arg *field; member 211 struct tep_print_arg *field; member 217 struct tep_format_field *field; member 261 struct tep_print_arg_field field; member 517 int tep_read_number_field(struct tep_format_field *field, const void *data, 540 struct tep_format_field *field); 655 struct tep_format_field *field; member [all …]
|
D | parse-filter.c | 340 struct tep_format_field *field; in create_arg_item() local 372 field = tep_find_any_field(event, token); in create_arg_item() 373 if (!field) { in create_arg_item() 376 field = &comm; in create_arg_item() 378 field = &cpu; in create_arg_item() 387 arg->field.field = field; in create_arg_item() 554 op->str.field = left->field.field; in add_right() 563 op->str.buffer = malloc(op->str.field->size + 1); in add_right() 569 op->str.buffer[op->str.field->size] = 0; in add_right() 1545 struct tep_format_field *field, struct tep_record *record) in get_value() argument [all …]
|
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
D | Core.pm | 106 for my $field (keys %{$flag_fields{$event}}) { 107 print " field: $field:\n"; 108 print " delim: $flag_fields{$event}{$field}{'delim'}\n"; 109 foreach my $idx (sort {$a <=> $b} keys %{$flag_fields{$event}{$field}{"values"}}) { 110 print " value $idx: $flag_fields{$event}{$field}{'values'}{$idx}\n"; 153 for my $field (keys %{$symbolic_fields{$event}}) { 154 print " field: $field:\n"; 155 foreach my $idx (sort {$a <=> $b} keys %{$symbolic_fields{$event}{$field}{"values"}}) { 156 print " value $idx: $symbolic_fields{$event}{$field}{'values'}{$idx}\n";
|
/tools/testing/selftests/bpf/verifier/ |
D | wide_access.c | 1 #define BPF_SOCK_ADDR_STORE(field, off, res, err) \ argument 3 "wide store to bpf_sock_addr." #field "[" #off "]", \ 7 offsetof(struct bpf_sock_addr, field[off])), \ 38 #define BPF_SOCK_ADDR_LOAD(field, off, res, err) \ argument 40 "wide load from bpf_sock_addr." #field "[" #off "]", \ 43 offsetof(struct bpf_sock_addr, field[off])), \
|
/tools/perf/pmu-events/ |
D | jevents.c | 169 static struct field { struct 170 const char *field; member 195 static int match_field(char *map, jsmntok_t *field, int nz, in match_field() argument 198 struct field *f; in match_field() 201 for (f = fields; f->field; f++) in match_field() 202 if (json_streq(map, field, f->field) && nz) { in match_field() 376 #define ADD_EVENT_FIELD(field) do { if (field) { \ argument 377 es->field = strdup(field); \ 378 if (!es->field) \ 382 #define FREE_EVENT_FIELD(field) free(es->field) argument [all …]
|
/tools/perf/util/ |
D | trace-event-parse.c | 20 struct tep_format_field *field; in get_common_field() local 28 field = tep_find_common_field(event, type); in get_common_field() 29 if (!field) in get_common_field() 31 *offset = field->offset; in get_common_field() 32 *size = field->size; in get_common_field() 83 struct tep_format_field *field; in raw_field_value() local 86 field = tep_find_any_field(event, name); in raw_field_value() 87 if (!field) in raw_field_value() 90 tep_read_number_field(field, data, &val); in raw_field_value()
|
D | data-convert-bt.c | 99 struct bt_ctf_field *field; in value_set() local 103 field = bt_ctf_field_create(type); in value_set() 104 if (!field) { in value_set() 110 ret = bt_ctf_field_signed_integer_set_value(field, val); in value_set() 116 ret = bt_ctf_field_unsigned_integer_set_value(field, val); in value_set() 123 ret = bt_ctf_event_set_payload(event, name, field); in value_set() 132 bt_ctf_field_put(field); in value_set() 154 static int string_set_value(struct bt_ctf_field *field, const char *string); 160 struct bt_ctf_field *field; in value_set_string() local 163 field = bt_ctf_field_create(type); in value_set_string() [all …]
|
D | evsel_fprintf.c | 78 struct tep_format_field *field; in perf_evsel__fprintf() local 85 field = evsel->tp_format->format.fields; in perf_evsel__fprintf() 86 if (field == NULL) { in perf_evsel__fprintf() 91 printed += comma_fprintf(fp, &first, " trace_fields: %s", field->name); in perf_evsel__fprintf() 93 field = field->next; in perf_evsel__fprintf() 94 while (field) { in perf_evsel__fprintf() 95 printed += comma_fprintf(fp, &first, "%s", field->name); in perf_evsel__fprintf() 96 field = field->next; in perf_evsel__fprintf()
|
D | sort.c | 1990 struct tep_format_field *field; member 1999 int namelen = strlen(hde->field->name); in hde_width() 2000 int fieldlen = hde->field->size; in hde_width() 2005 if (!(hde->field->flags & TEP_FIELD_IS_STRING)) { in hde_width() 2007 fieldlen = hde->field->size * 2 + 2; in hde_width() 2021 struct tep_format_field *field = hde->field; in update_dynamic_len() local 2032 namelen = strlen(field->name); in update_dynamic_len() 2042 if (!strncmp(str, field->name, namelen)) { in update_dynamic_len() 2073 return scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, hde->field->name); in __sort__hde_header() 2106 struct tep_format_field *field; in __sort__hde_entry() local [all …]
|
/tools/perf/tests/ |
D | evsel-tp-sched.c | 11 struct tep_format_field *field = perf_evsel__field(evsel, name); in perf_evsel__test_field() local 15 if (field == NULL) { in perf_evsel__test_field() 20 is_signed = !!(field->flags & TEP_FIELD_IS_SIGNED); in perf_evsel__test_field() 27 if (field->size != size) { in perf_evsel__test_field() 29 evsel->name, name, field->size, size); in perf_evsel__test_field()
|
D | attr.c | 65 #define WRITE_ASS(field, fmt) __WRITE_ASS(field, fmt, attr->field) argument
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 104 static void define_symbolic_values(struct tep_print_flag_sym *field, in define_symbolic_values() argument 108 define_symbolic_value(ev_name, field_name, field->value, field->str); in define_symbolic_values() 109 if (field->next) in define_symbolic_values() 110 define_symbolic_values(field->next, ev_name, field_name); in define_symbolic_values() 162 static void define_flag_values(struct tep_print_flag_sym *field, in define_flag_values() argument 166 define_flag_value(ev_name, field_name, field->value, field->str); in define_flag_values() 167 if (field->next) in define_flag_values() 168 define_flag_values(field->next, ev_name, field_name); in define_flag_values() 211 cur_field_name = strdup(args->field.name); in define_event_symbols() 214 define_event_symbols(event, ev_name, args->flags.field); in define_event_symbols() [all …]
|
D | trace-event-python.c | 231 struct tep_print_flag_sym *field, in define_values() argument 235 define_value(field_type, ev_name, field_name, field->value, in define_values() 236 field->str); in define_values() 238 if (field->next) in define_values() 239 define_values(field_type, field->next, ev_name, field_name); in define_values() 288 cur_field_name = strdup(args->field.name); in define_event_symbols() 291 define_event_symbols(event, ev_name, args->flags.field); in define_event_symbols() 298 define_event_symbols(event, ev_name, args->symbol.field); in define_event_symbols() 305 define_event_symbols(event, ev_name, args->hex.field); in define_event_symbols() 309 define_event_symbols(event, ev_name, args->int_array.field); in define_event_symbols() [all …]
|
/tools/kvm/kvm_stat/ |
D | kvm_stat | 263 def tracepoint_is_child(self, field): argument 264 if (TRACE_FILTER.match(field)): 266 return field.split('(', 1)[0] 276 def debugfs_is_child(self, field): argument 296 def debugfs_is_child(self, field): argument 308 def debugfs_is_child(self, field): argument 320 def debugfs_is_child(self, field): argument 322 if field.startswith('instruction_'): 507 def is_field_wanted(fields_filter, field): argument 511 return re.match(fields_filter, field) is not None [all …]
|
/tools/include/linux/ |
D | rbtree.h | 97 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument 98 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \ 99 pos && ({ n = rb_entry_safe(rb_next_postorder(&pos->field), \ 100 typeof(*pos), field); 1; }); \
|
/tools/perf/Documentation/ |
D | perf-script-perl.txt | 28 field for each event in the trace file. 45 Most of the event's field values are passed as arguments to the 62 field:unsigned short common_type; 63 field:unsigned char common_flags; 64 field:unsigned char common_preempt_count; 65 field:int common_pid; 67 field:char comm[TASK_COMM_LEN]; 68 field:pid_t pid; 69 field:int prio; 70 field:int success; [all …]
|
/tools/testing/selftests/kselftest/ |
D | runner.sh | 56 field=$(echo "$line" | cut -d= -f1) 58 eval "kselftest_$field"="$value"
|
/tools/testing/selftests/networking/timestamping/ |
D | rxtimestamp.c | 227 #define VALIDATE(field) \ in do_recv() argument 229 if (expected.field != actual.field) { \ in do_recv() 230 if (expected.field) \ in do_recv() 231 error(0, 0, "Expected " #field " to be set."); \ in do_recv() 234 "Expected " #field " to not be set."); \ in do_recv()
|
/tools/perf/ |
D | builtin-trace.c | 202 u64 (*integer)(struct tp_field *field, struct perf_sample *sample); 203 void *(*pointer)(struct tp_field *field, struct perf_sample *sample); 208 static u64 tp_field__u##bits(struct tp_field *field, struct perf_sample *sample) \ 211 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \ 221 static u64 tp_field__swapped_u##bits(struct tp_field *field, struct perf_sample *sample) \ 224 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \ 232 static int __tp_field__init_uint(struct tp_field *field, int size, int offset, bool needs_swap) in __tp_field__init_uint() argument 234 field->offset = offset; in __tp_field__init_uint() 238 field->integer = tp_field__u8; in __tp_field__init_uint() 241 field->integer = needs_swap ? tp_field__swapped_u16 : tp_field__u16; in __tp_field__init_uint() [all …]
|