Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 41) sorted by relevance

12

/tools/perf/arch/x86/annotate/
Dinstructions.c3 { .name = "adc", .ops = &mov_ops, },
4 { .name = "adcb", .ops = &mov_ops, },
5 { .name = "adcl", .ops = &mov_ops, },
6 { .name = "add", .ops = &mov_ops, },
7 { .name = "addl", .ops = &mov_ops, },
8 { .name = "addq", .ops = &mov_ops, },
9 { .name = "addsd", .ops = &mov_ops, },
10 { .name = "addw", .ops = &mov_ops, },
11 { .name = "and", .ops = &mov_ops, },
12 { .name = "andb", .ops = &mov_ops, },
[all …]
/tools/perf/arch/s390/annotate/
Dinstructions.c4 static int s390_call__parse(struct arch *arch, struct ins_operands *ops, in s390_call__parse() argument
13 tok = strchr(ops->raw, ','); in s390_call__parse()
17 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse()
34 ops->target.name = strdup(name); in s390_call__parse()
37 if (ops->target.name == NULL) in s390_call__parse()
39 target.addr = map__objdump_2mem(map, ops->target.addr); in s390_call__parse()
42 map__rip_2objdump(target.map, map->map_ip(target.map, target.addr)) == ops->target.addr) in s390_call__parse()
43 ops->target.sym = target.sym; in s390_call__parse()
49 struct ins_operands *ops, int max_ins_name);
57 struct ins_operands *ops, in s390_mov__parse() argument
[all …]
/tools/perf/arch/arm64/annotate/
Dinstructions.c13 struct ins_operands *ops, in arm64_mov__parse() argument
16 char *s = strchr(ops->raw, ','), *target, *endptr; in arm64_mov__parse()
22 ops->source.raw = strdup(ops->raw); in arm64_mov__parse()
25 if (ops->source.raw == NULL) in arm64_mov__parse()
29 ops->target.raw = strdup(target); in arm64_mov__parse()
30 if (ops->target.raw == NULL) in arm64_mov__parse()
33 ops->target.addr = strtoull(target, &endptr, 16); in arm64_mov__parse()
46 ops->target.name = strdup(s); in arm64_mov__parse()
49 if (ops->target.name == NULL) in arm64_mov__parse()
55 zfree(&ops->target.raw); in arm64_mov__parse()
[all …]
/tools/perf/arch/csky/annotate/
Dinstructions.c9 struct ins_ops *ops = NULL; in csky__associate_ins_ops() local
24 ops = &jump_ops; in csky__associate_ins_ops()
30 ops = &call_ops; in csky__associate_ins_ops()
34 ops = &ret_ops; in csky__associate_ins_ops()
36 if (ops) in csky__associate_ins_ops()
37 arch__associate_ins_ops(arch, name, ops); in csky__associate_ins_ops()
38 return ops; in csky__associate_ins_ops()
/tools/usb/usbip/libsrc/
Dusbip_host_common.h43 struct usbip_host_driver_ops ops; member
57 if (!hdriver->ops.open) in usbip_driver_open()
59 return hdriver->ops.open(hdriver); in usbip_driver_open()
64 if (!hdriver->ops.close) in usbip_driver_close()
66 hdriver->ops.close(hdriver); in usbip_driver_close()
71 if (!hdriver->ops.refresh_device_list) in usbip_refresh_device_list()
73 return hdriver->ops.refresh_device_list(hdriver); in usbip_refresh_device_list()
79 if (!hdriver->ops.get_device) in usbip_get_device()
81 return hdriver->ops.get_device(hdriver, num); in usbip_get_device()
Dusbip_host_common.c82 if (hdriver->ops.read_device(edev->sudev, &edev->udev) < 0) in usbip_exported_device_new()
103 if (!hdriver->ops.read_interface) in usbip_exported_device_new()
105 hdriver->ops.read_interface(&edev->udev, i, &edev->uinf[i]); in usbip_exported_device_new()
140 if (hdriver->ops.is_my_device(dev)) { in refresh_exported_devices()
Dusbip_host_driver.c44 .ops = {
/tools/perf/arch/sparc/annotate/
Dinstructions.c122 struct ins_ops *ops = NULL; in sparc__associate_instruction_ops() local
127 ops = &call_ops; in sparc__associate_instruction_ops()
131 ops = &ret_ops; in sparc__associate_instruction_ops()
133 ops = &mov_ops; in sparc__associate_instruction_ops()
144 ops = &jump_ops; in sparc__associate_instruction_ops()
146 ops = &jump_ops; in sparc__associate_instruction_ops()
150 ops = &jump_ops; in sparc__associate_instruction_ops()
154 if (ops) in sparc__associate_instruction_ops()
155 arch__associate_ins_ops(arch, name, ops); in sparc__associate_instruction_ops()
157 return ops; in sparc__associate_instruction_ops()
/tools/perf/util/
Dannotate.c131 static int arch__associate_ins_ops(struct arch* arch, const char *name, struct ins_ops *ops) in arch__associate_ins_ops() argument
144 ins->ops = ops; in arch__associate_ins_ops()
207 static void ins__delete(struct ins_operands *ops) in ins__delete() argument
209 if (ops == NULL) in ins__delete()
211 zfree(&ops->source.raw); in ins__delete()
212 zfree(&ops->source.name); in ins__delete()
213 zfree(&ops->target.raw); in ins__delete()
214 zfree(&ops->target.name); in ins__delete()
218 struct ins_operands *ops, int max_ins_name) in ins__raw_scnprintf() argument
220 return scnprintf(bf, size, "%-*s %s", max_ins_name, ins->name, ops->raw); in ins__raw_scnprintf()
[all …]
Dunwind-libunwind.c16 struct unwind_libunwind_ops *ops) in unwind__register_ops() argument
18 mg->unwind_libunwind_ops = ops; in unwind__register_ops()
26 struct unwind_libunwind_ops *ops = local_unwind_libunwind_ops; in unwind__prepare_access() local
52 ops = x86_32_unwind_libunwind_ops; in unwind__prepare_access()
55 ops = arm64_unwind_libunwind_ops; in unwind__prepare_access()
58 if (!ops) { in unwind__prepare_access()
63 unwind__register_ops(mg, ops); in unwind__prepare_access()
Dannotate.h28 struct ins_ops *ops; member
51 struct ins_operands *ops; member
59 void (*free)(struct ins_operands *ops);
60 int (*parse)(struct arch *arch, struct ins_operands *ops, struct map_symbol *ms);
62 struct ins_operands *ops, int max_ins_name);
69 int ins__scnprintf(struct ins *ins, char *bf, size_t size, struct ins_operands *ops, int max_ins_na…
151 struct ins_operands ops; member
189 return dl->ops.target.offset_avail && !dl->ops.target.outside; in disasm_line__has_local_offset()
214 struct annotation_write_ops *ops,
Dhist.c524 struct hist_entry_ops *ops = template->ops; in hist_entry__new() local
529 if (!ops) in hist_entry__new()
530 ops = template->ops = &default_ops; in hist_entry__new()
535 he = ops->new(callchain_size); in hist_entry__new()
539 ops->free(he); in hist_entry__new()
681 struct hist_entry_ops *ops) in __hists__add_entry() argument
715 .ops = ops, in __hists__add_entry()
739 struct hist_entry_ops *ops, in hists__add_entry_ops() argument
748 sample, sample_self, ops); in hists__add_entry_ops()
1163 err = iter->ops->prepare_entry(iter, al); in hist_entry_iter__add()
[all …]
/tools/perf/arch/powerpc/annotate/
Dinstructions.c7 struct ins_ops *ops; in powerpc__associate_instruction_ops() local
19 ops = &jump_ops; in powerpc__associate_instruction_ops()
39 ops = &call_ops; in powerpc__associate_instruction_ops()
46 ops = &ret_ops; in powerpc__associate_instruction_ops()
48 arch__associate_ins_ops(arch, name, ops); in powerpc__associate_instruction_ops()
49 return ops; in powerpc__associate_instruction_ops()
/tools/perf/arch/powerpc/util/
Dskip-callchain-idx.c50 Dwarf_Op *ops = &dummy; in check_return_reg() local
54 result = dwarf_frame_register(frame, ra_regno, ops_mem, &ops, &nops); in check_return_reg()
65 if ((nops != 0 || ops != NULL) && in check_return_reg()
66 !(nops == 1 && ops[0].atom == DW_OP_regx && in check_return_reg()
67 ops[0].number2 == 0 && ops[0].offset == 0)) in check_return_reg()
74 result = dwarf_frame_cfa(frame, &ops, &nops); in check_return_reg()
84 if (nops == 1 && ops[0].atom == DW_OP_bregx && ops[0].number == 1 && in check_return_reg()
85 ops[0].number2 == 0) in check_return_reg()
Dkvm-stat.c101 { .name = "vmexit", .ops = &exit_events },
102 { .name = "hcall", .ops = &hcall_events },
/tools/testing/nvdimm/test/
Diomap.c45 struct iomap_ops *ops; in __get_nfit_res() local
47 ops = list_first_or_null_rcu(&iomap_head, typeof(*ops), list); in __get_nfit_res()
48 if (ops) in __get_nfit_res()
49 return ops->nfit_test_lookup(resource); in __get_nfit_res()
105 if (pgmap->ops && pgmap->ops->kill) in nfit_test_kill()
106 pgmap->ops->kill(pgmap); in nfit_test_kill()
110 if (pgmap->ops && pgmap->ops->cleanup) { in nfit_test_kill()
111 pgmap->ops->cleanup(pgmap); in nfit_test_kill()
136 if (pgmap->ops && (pgmap->ops->kill || pgmap->ops->cleanup)) in __wrap_devm_memremap_pages()
146 if (!pgmap->ops || !pgmap->ops->kill || !pgmap->ops->cleanup) { in __wrap_devm_memremap_pages()
[all …]
/tools/perf/arch/arm/annotate/
Dinstructions.c16 struct ins_ops *ops; in arm__associate_instruction_ops() local
20 ops = &call_ops; in arm__associate_instruction_ops()
22 ops = &jump_ops; in arm__associate_instruction_ops()
26 arch__associate_ins_ops(arch, name, ops); in arm__associate_instruction_ops()
27 return ops; in arm__associate_instruction_ops()
/tools/perf/bench/
Dfutex-hash.c50 unsigned long ops; member
72 unsigned long ops = w->ops; /* avoid cacheline bouncing */ in workerfn() local
82 for (i = 0; i < nfutexes; i++, ops++) { in workerfn()
96 w->ops = ops; in workerfn()
207 unsigned long t = worker[i].ops / bench__runtime.tv_sec; in bench_futex_hash()
Dfutex-lock-pi.c30 unsigned long ops; member
82 unsigned long ops = w->ops; in workerfn() local
111 ops++; /* account for thread's share of work */ in workerfn()
114 w->ops = ops; in workerfn()
213 unsigned long t = worker[i].ops / bench__runtime.tv_sec; in bench_futex_lock_pi()
Depoll-wait.c122 unsigned long ops; member
187 unsigned long ops = w->ops; in workerfn() local
230 ops++; in workerfn()
236 w->ops = ops; in workerfn()
521 unsigned long t = worker[i].ops / bench__runtime.tv_sec; in bench_epoll_wait()
Depoll-ctl.c70 unsigned long ops[EPOLL_NR_OPS]; member
157 w->ops[op]++; in do_epoll_op()
392 t[j] = worker[i].ops[j]; in bench_epoll_ctl()
/tools/perf/arch/x86/util/
Dkvm-stat.c145 { .name = "vmexit", .ops = &exit_events },
146 { .name = "mmio", .ops = &mmio_events },
147 { .name = "ioport", .ops = &ioport_events },
/tools/perf/ui/browsers/
Dannotate.c102 struct annotation_write_ops ops = { in annotate_browser__write() local
120 ops.width += 1; in annotate_browser__write()
122 annotation_line__write(al, notes, &ops, ab->opts); in annotate_browser__write()
124 if (ops.current_entry) in annotate_browser__write()
137 name = pos->ops.locked.ins.name; in is_fused()
186 target = notes->offsets[cursor->ops.target.offset]; in annotate_browser__draw_current_jump()
189 cursor->ops.target.offset); in annotate_browser__draw_current_jump()
418 if (!dl->ops.target.sym) { in annotate_browser__callq()
423 notes = symbol__annotation(dl->ops.target.sym); in annotate_browser__callq()
426 if (!symbol__hists(dl->ops.target.sym, evsel->evlist->core.nr_entries)) { in annotate_browser__callq()
[all …]
/tools/perf/Documentation/
Dperf-bench.txt35 170792 ops/sec
127 123581 ops/sec
134 59004 ops/sec
/tools/perf/arch/s390/util/
Dkvm-stat.c93 { .name = "vmexit", .ops = &exit_events },

12