Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 143) sorted by relevance

123456

/tools/lib/traceevent/
Dkbuffer-parse.c63 void *data; member
98 unsigned long long data = *(unsigned long long *)ptr; in __read_8() local
100 return data; in __read_8()
105 unsigned long long data = *(unsigned long long *)ptr; in __read_8_sw() local
108 swap = ((data & 0xffULL) << 56) | in __read_8_sw()
109 ((data & (0xffULL << 8)) << 40) | in __read_8_sw()
110 ((data & (0xffULL << 16)) << 24) | in __read_8_sw()
111 ((data & (0xffULL << 24)) << 8) | in __read_8_sw()
112 ((data & (0xffULL << 32)) >> 8) | in __read_8_sw()
113 ((data & (0xffULL << 40)) >> 24) | in __read_8_sw()
[all …]
Dplugin_mac80211.c29 const char *name, const void *data) in print_string() argument
45 if (pevent_read_number_field(f, data, &v)) { in print_string()
53 trace_seq_printf(s, "%.*s", length, (char *)data + offset); in print_string()
64 void *data = record->data; in drv_bss_info_changed() local
66 print_string(s, event, "wiphy_name", data); in drv_bss_info_changed()
68 print_string(s, event, "vif_name", data); in drv_bss_info_changed()
Devent-parse.h50 void *data; member
543 __data2host2(struct pevent *pevent, unsigned short data) in __data2host2() argument
548 return data; in __data2host2()
550 swap = ((data & 0xffULL) << 8) | in __data2host2()
551 ((data & (0xffULL << 8)) >> 8); in __data2host2()
557 __data2host4(struct pevent *pevent, unsigned int data) in __data2host4() argument
562 return data; in __data2host4()
564 swap = ((data & 0xffULL) << 24) | in __data2host4()
565 ((data & (0xffULL << 8)) << 8) | in __data2host4()
566 ((data & (0xffULL << 16)) >> 8) | in __data2host4()
[all …]
/tools/perf/util/
Dparse-events.y32 struct parse_events_evlist *data) in inc_group_count() argument
36 data->nr_groups++; in inc_group_count()
106 struct parse_events_evlist *data = _data; variable
108 parse_events_update_lists($1, &data->list);
216 struct parse_events_evlist *data = _data; variable
220 ABORT_ON(parse_events_add_pmu(data, list, $1, $3));
227 struct parse_events_evlist *data = _data; variable
231 ABORT_ON(parse_events_add_pmu(data, list, $1, NULL));
237 struct parse_events_evlist *data = _data; variable
248 ABORT_ON(parse_events_add_pmu(data, list, "cpu", head));
[all …]
Ddwarf-aux.c99 static int __die_find_inline_cb(Dwarf_Die *die_mem, void *data);
112 int (*callback)(Dwarf_Die *, void *), void *data) in cu_walk_functions_at() argument
123 ret = callback(sc_die, data); in cu_walk_functions_at()
444 void *data, Dwarf_Die *die_mem) in die_find_child() argument
454 ret = callback(die_mem, data); in die_find_child()
459 die_find_child(die_mem, callback, data, &child_die)) { in die_find_child()
474 static int __die_search_func_tail_cb(Dwarf_Die *fn_die, void *data) in __die_search_func_tail_cb() argument
476 struct __addr_die_search_param *ad = data; in __die_search_func_tail_cb()
512 static int __die_search_func_cb(Dwarf_Die *fn_die, void *data) in __die_search_func_cb() argument
514 struct __addr_die_search_param *ad = data; in __die_search_func_cb()
[all …]
Ddso.c327 list_add_tail(&dso->data.open_entry, &dso__data_open); in dso__list_add()
333 list_del(&dso->data.open_entry); in dso__list_del()
412 if (dso->data.fd >= 0) { in close_data_fd()
413 close(dso->data.fd); in close_data_fd()
414 dso->data.fd = -1; in close_data_fd()
415 dso->data.file_size = 0; in close_data_fd()
436 dso = list_first_entry(&dso__data_open, struct dso, data.open_entry); in close_first_dso()
507 if (dso->data.fd >= 0) in try_to_open_dso()
511 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
518 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
[all …]
Ddwarf-aux.h39 int (*callback)(Dwarf_Die *, void *), void *data);
85 void *data, Dwarf_Die *die_mem);
105 int (*callback)(Dwarf_Die *, void *), void *data);
109 Dwarf_Addr addr, void *data);
116 void *data);
Dtrace-event.c80 char *data; in tp_format() local
86 err = filename__read_str(path, &data, &size); in tp_format()
90 pevent_parse_format(pevent, &event, data, size, sys); in tp_format()
92 free(data); in tp_format()
Dcpumap.h23 int cpu_map__get_socket(struct cpu_map *map, int idx, void *data);
25 int cpu_map__get_core(struct cpu_map *map, int idx, void *data);
92 int (*f)(struct cpu_map *map, int cpu, void *data),
93 void *data);
Dunwind-libdw.c95 Dwarf_Word *data) in access_dso_mem() argument
111 addr, (u8 *) data, sizeof(*data)); in access_dso_mem()
113 return !(size == sizeof(*data)); in access_dso_mem()
147 *result = *(Dwarf_Word *)&stack->data[offset]; in memory_read()
176 struct perf_sample *data, in unwind__get_entries() argument
180 .sample = data, in unwind__get_entries()
190 if (!data->user_regs.regs) in unwind__get_entries()
197 err = perf_reg_value(&ip, &data->user_regs, PERF_REG_IP); in unwind__get_entries()
Dconfig.c128 static int get_value(config_fn_t fn, void *data, char *name, unsigned int len) in get_value() argument
156 return fn(name, value, data); in get_value()
215 static int perf_parse_file(config_fn_t fn, void *data) in perf_parse_file() argument
272 if (get_value(fn, data, var, baselen+1) < 0) { in perf_parse_file()
419 static int perf_config_from_file(config_fn_t fn, const char *filename, void *data) in perf_config_from_file() argument
430 ret = perf_parse_file(fn, data); in perf_config_from_file()
461 int perf_config(config_fn_t fn, void *data) in perf_config() argument
468 return perf_config_from_file(fn, config_exclusive_filename, data); in perf_config()
471 data); in perf_config()
498 ret += perf_config_from_file(fn, user_config, data); in perf_config()
[all …]
Ddata-convert-bt.c69 } data; member
130 struct bt_ctf_field_type *type = cw->data._name; \
148 return cw->data.string; in FUNC_VALUE_SET()
153 return cw->data.u64_hex; in FUNC_VALUE_SET()
158 return cw->data.s64; in FUNC_VALUE_SET()
160 return cw->data.s32; in FUNC_VALUE_SET()
164 return cw->data.u64; in FUNC_VALUE_SET()
166 return cw->data.u32; in FUNC_VALUE_SET()
216 void *data = sample->raw_data; in add_tracepoint_field_value() local
234 data + offset, len); in add_tracepoint_field_value()
[all …]
Dtrace-event-parse.c96 raw_field_value(struct event_format *event, const char *name, void *data) in raw_field_value() argument
105 pevent_read_number_field(field, data, &val); in raw_field_value()
116 int cpu, void *data, int size, FILE *fp) in event_format__fprintf() argument
124 record.data = data; in event_format__fprintf()
133 int cpu, void *data, int size) in event_format__print() argument
135 return event_format__fprintf(event, cpu, data, size, stdout); in event_format__print()
/tools/perf/
Dbuiltin-kmem.c73 struct alloc_stat *data = NULL; in insert_alloc_stat() local
77 data = rb_entry(*node, struct alloc_stat, node); in insert_alloc_stat()
79 if (ptr > data->ptr) in insert_alloc_stat()
81 else if (ptr < data->ptr) in insert_alloc_stat()
87 if (data && data->ptr == ptr) { in insert_alloc_stat()
88 data->hit++; in insert_alloc_stat()
89 data->bytes_req += bytes_req; in insert_alloc_stat()
90 data->bytes_alloc += bytes_alloc; in insert_alloc_stat()
92 data = malloc(sizeof(*data)); in insert_alloc_stat()
93 if (!data) { in insert_alloc_stat()
[all …]
/tools/perf/Documentation/
Dperf-data.txt1 perf-data(1)
6 perf-data - Data file related processing
11 'perf data' [<common options>] <command> [<options>]",
20 Converts perf data file into another format (only CTF [1] format is support by now).
21 It's possible to set data-convert debug variable to get debug messages from conversion,
23 perf --debug data-convert data convert ...
28 Triggers the CTF conversion, specify the path of CTF data directory.
31 Specify input perf data file path.
Dperf-diff.txt6 perf-diff - Read perf.data files and display the differential profile
11 'perf diff' [baseline file] [data file1] [[data file2] ... ]
15 This command displays the performance difference amongst two or more perf.data
18 If no parameters are passed it will assume perf.data.old and perf.data.
21 specified perf.data files.
24 As the perf.data files could come from different binaries, the symbols addresses
114 The comparison is governed by the baseline file. The baseline perf.data
115 file is iterated for samples. All other perf.data files specified on
119 All samples from non-baseline perf.data files, that do not match any
174 - A/B being matching hist entry from data/baseline file specified
[all …]
Dperf-kvm.txt27 of an arbitrary workload and save it into a perf data file. We set the
29 is input, the perf data file name is perf.data.guest. If --host is input,
30 the perf data file name is perf.data.kvm. If you want to record data into
31 perf.data.host, please input --host --no-guest. The behaviors are shown as
33 Default('') -> perf.data.guest
34 --host -> perf.data.kvm
35 --guest -> perf.data.guest
36 --host --guest -> perf.data.kvm
37 --host --no-guest -> perf.data.host
42 'perf kvm diff' to displays the performance difference amongst two perf.data
[all …]
Dintel-bts.txt51 By default, perf script will decode trace data found in the perf.data file.
64 data.
75 By default, perf report will decode trace data found in the perf.data file.
83 perf inject also accepts the --itrace option in which case tracing data is
86 perf inject --itrace -i perf.data -o perf.data.new
/tools/perf/tests/
Ddso-data.c53 u8 data[10]; member
61 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
67 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
73 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
79 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
85 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
91 .data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
97 .data = { 7, 8, 9, 0, 0, 0, 0, 0, 0, 0 },
131 struct test_data_offset *data = &offsets[i]; in test__dso_data() local
136 size = dso__data_read_offset(dso, &machine, data->offset, in test__dso_data()
[all …]
/tools/firewire/
Dnosy-dump.c46 static void print_packet(uint32_t *data, size_t length);
147 subaction_create(uint32_t *data, size_t length) in subaction_create() argument
155 sa->ack = data[length / 4 - 1]; in subaction_create()
157 memcpy(&sa->packet, data, length); in subaction_create()
495 handle_request_packet(uint32_t *data, size_t length) in handle_request_packet() argument
497 struct link_packet *p = (struct link_packet *) data; in handle_request_packet()
503 sa = subaction_create(data, length); in handle_request_packet()
560 handle_response_packet(uint32_t *data, size_t length) in handle_response_packet() argument
562 struct link_packet *p = (struct link_packet *) data; in handle_response_packet()
572 sa = subaction_create(data, length); in handle_response_packet()
[all …]
/tools/perf/scripts/python/
Dcall-graph-from-postgresql.py71 self.data = ["", "", "", "", "", "", ""]
97 self.data[0] = comm
113 self.data[0] = str(pid) + ":" + str(tid)
143 child_item.data[0] = name
146 child_item.data[1] = dso
147 child_item.data[2] = str(count)
148 child_item.data[3] = str(time)
149 child_item.data[4] = self.timePercent(time)
150 child_item.data[5] = str(branch_count)
151 child_item.data[6] = self.branchPercent(branch_count)
[all …]
/tools/lib/bpf/
Dlibbpf.c193 Elf_Data *data; member
237 bpf_program__init(void *data, size_t size, char *name, int idx, in bpf_program__init() argument
260 memcpy(prog->insns, data, in bpf_program__init()
272 bpf_object__add_program(struct bpf_object *obj, void *data, size_t size, in bpf_object__add_program() argument
278 err = bpf_program__init(data, size, name, idx, &prog); in bpf_object__add_program()
443 void *data, size_t size) in bpf_object__init_license() argument
445 memcpy(obj->license, data, in bpf_object__init_license()
453 void *data, size_t size) in bpf_object__init_kversion() argument
461 memcpy(&kver, data, sizeof(kver)); in bpf_object__init_kversion()
469 bpf_object__init_maps(struct bpf_object *obj, void *data, in bpf_object__init_maps() argument
[all …]
/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c102 int (*get_trace)(struct intel_pt_buffer *buffer, void *data);
105 uint64_t max_insn_cnt, void *data);
106 void *data; member
217 decoder->data = params->data; in intel_pt_decoder_new()
477 ret = decoder->get_trace(&buffer, decoder->data); in intel_pt_get_data()
559 void *data; member
566 intel_pt_pkt_cb_t cb, void *data) in intel_pt_pkt_lookahead() argument
577 pkt_info.data = data; in intel_pt_pkt_lookahead()
642 struct intel_pt_calc_cyc_to_tsc_info *data = pkt_info->data; in intel_pt_calc_cyc_cb() local
664 if (!data->have_tma) in intel_pt_calc_cyc_cb()
[all …]
/tools/testing/selftests/powerpc/pmu/ebb/
Dtrace.c32 tb->tail = tb->data; in trace_buffer_allocate()
97 p = (u64 *)e->data; in trace_log_reg()
114 p = (u64 *)e->data; in trace_log_counter()
134 p = (char *)e->data; in trace_log_string()
205 p = (u64 *)e->data; in trace_print_reg()
220 value = (u64 *)e->data; in trace_print_counter()
228 str = (char *)e->data; in trace_print_string()
282 p = tb->data; in trace_buffer_print()
/tools/iio/
Dgeneric_buffer.c163 void process_scan(char *data, in process_scan() argument
173 print1byte(*(uint8_t *)(data + channels[k].location), in process_scan()
177 print2byte(*(uint16_t *)(data + channels[k].location), in process_scan()
181 print4byte(*(uint32_t *)(data + channels[k].location), in process_scan()
185 print8byte(*(uint64_t *)(data + channels[k].location), in process_scan()
221 char *data; in main() local
383 data = malloc(scan_size * buf_len); in main()
384 if (!data) { in main()
424 read_size = read(fp, data, toread * scan_size); in main()
434 process_scan(data + scan_size * i, channels, in main()
[all …]

123456