Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 33) sorted by relevance

12

/tools/perf/scripts/python/
Dpowerpc-hcalls.py153 def hcall_table_lookup(opcode): argument
154 if (opcode in hcall_table):
155 return hcall_table[opcode]
157 return opcode
164 for opcode in output:
165 h_name = hcall_table_lookup(opcode)
166 time = output[opcode]['time']
167 cnt = output[opcode]['cnt']
168 min_t = output[opcode]['min']
169 max_t = output[opcode]['max']
[all …]
/tools/arch/x86/lib/
Dinat.c13 insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode) in inat_get_opcode_attribute() argument
15 return inat_primary_table[opcode]; in inat_get_opcode_attribute()
26 insn_attr_t inat_get_escape_attribute(insn_byte_t opcode, int lpfx_id, in inat_get_escape_attribute() argument
37 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute()
42 return table[opcode]; in inat_get_escape_attribute()
65 insn_attr_t inat_get_avx_attribute(insn_byte_t opcode, insn_byte_t vex_m, in inat_get_avx_attribute() argument
75 if (!inat_is_group(table[opcode]) && vex_p) { in inat_get_avx_attribute()
81 return table[opcode]; in inat_get_avx_attribute()
Dinsn.c275 struct insn_field *opcode = &insn->opcode; in insn_get_opcode() local
279 if (opcode->got) in insn_get_opcode()
288 insn_set_byte(opcode, 0, op); in insn_get_opcode()
289 opcode->nbytes = 1; in insn_get_opcode()
330 opcode->bytes[opcode->nbytes++] = op; in insn_get_opcode()
341 opcode->got = 1; in insn_get_opcode()
736 return insn->opcode.got && insn->modrm.got && insn->sib.got && in insn_complete()
/tools/arch/loongarch/include/asm/
Dinst.h60 unsigned int opcode : 17; member
66 unsigned int opcode : 6; member
73 unsigned int opcode : 6; member
79 unsigned int opcode : 22; member
86 unsigned int opcode : 10; member
93 unsigned int opcode : 8; member
100 unsigned int opcode : 6; member
107 unsigned int opcode : 17; member
165 insn->reg2i16_format.opcode = OP; \
/tools/testing/selftests/filesystems/fuse/
Dtest_bpf.c10 switch (fa->opcode) { in readdir_test()
26 bpf_printk("opcode %d", fa->opcode); in readdir_test()
35 switch (fa->opcode) { in partial_test()
327 bpf_printk("Unknown opcode %d", fa->opcode); in partial_test()
336 switch (fa->opcode) { in trace_test()
516 bpf_printk("Unknown opcode %d", fa->opcode); in trace_test()
524 switch (fa->opcode) { in trace_hidden()
573 bpf_printk("Unknown opcode: %d", fa->opcode); in trace_hidden()
581 if (fa->opcode & FUSE_PREFILTER) in trace_simple()
583 fa->opcode & FUSE_OPCODE_FILTER); in trace_simple()
[all …]
Dfuse_daemon.c61 static const char *fuse_opcode_to_string(int opcode) in fuse_opcode_to_string() argument
63 switch (opcode & FUSE_OPCODE_FILTER) { in fuse_opcode_to_string()
256 switch (in_header->opcode) { in main()
270 printf("opcode is %d (%s)\n", in_header->opcode, in main()
272 in_header->opcode)); in main()
Dfd_bpf.c38 switch (fa->opcode) { in trace_daemon()
242 if (fa->opcode & FUSE_PREFILTER) in trace_daemon()
244 fa->opcode & FUSE_OPCODE_FILTER); in trace_daemon()
245 else if (fa->opcode & FUSE_POSTFILTER) in trace_daemon()
247 fa->opcode & FUSE_OPCODE_FILTER); in trace_daemon()
249 bpf_printk("*** UNKNOWN *** opcode: %d", fa->opcode); in trace_daemon()
Dtest_fuse.h85 TESTEQUAL(in_header->opcode, _opcode); \
96 TESTEQUAL(in_header->opcode, _opcode); \
107 TESTEQUAL(in_header->opcode, _opcode); \
122 TESTEQUAL(in_header->opcode, _opcode); \
135 TESTEQUAL(in_header->opcode, -1); \
149 if (in_header->opcode == FUSE_FORGET) \
151 if (in_header->opcode == FUSE_BATCH_FORGET) \
154 TESTEQUAL(in_header->opcode, \
/tools/objtool/arch/powerpc/
Ddecode.c46 unsigned int opcode; in arch_decode_instruction() local
52 opcode = ins >> 26; in arch_decode_instruction()
56 switch (opcode) { in arch_decode_instruction()
67 if (opcode == 1) in arch_decode_instruction()
/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk292 opcode = $(i++)
311 if (match(opcode, group_expr)) {
312 if (!(opcode in group)) {
313 group[opcode] = ggid
316 flags = add_flags(flags, "INAT_MAKE_GROUP(" group[opcode] ")")
327 if (match(opcode, rex_expr))
331 if (match(opcode, fpu_expr))
341 else if (match(ext, vexok_expr) || match(opcode, vexok_opcode_expr))
346 if (!prefix_num[opcode])
347 semantic_error("Unknown prefix: " opcode)
[all …]
/tools/arch/s390/include/uapi/asm/
Dsie.h88 #define exit_code_ipa0(ipa0, opcode, mnemonic) \ argument
89 { (ipa0 << 8 | opcode), #ipa0 " " mnemonic }
90 #define exit_code(opcode, mnemonic) \ argument
91 { opcode, mnemonic }
/tools/firewire/
Ddecode-fcp.c137 uint32_t opcode:8; member
154 info = &opcode_info[frame->opcode]; in decode_avc()
157 "(unknown opcode 0x%02x)", frame->opcode); in decode_avc()
/tools/objtool/arch/loongarch/
Ddecode.c81 switch (inst.reg0i26_format.opcode) { in decode_insn_reg0i26_fomat()
102 switch (inst.reg1i21_format.opcode) { in decode_insn_reg1i21_fomat()
122 switch (inst.reg2i12_format.opcode) { in decode_insn_reg2i12_fomat()
190 switch (inst.reg2i14_format.opcode) { in decode_insn_reg2i14_fomat()
232 switch (inst.reg2i16_format.opcode) { in decode_insn_reg2i16_fomat()
287 switch (inst.reg3_format.opcode) { in decode_insn_reg3_fomat()
340 } else if (inst.reg0i15_format.opcode == break_op && in arch_decode_instruction()
344 } else if (inst.reg0i15_format.opcode == break_op && in arch_decode_instruction()
348 } else if (inst.reg2_format.opcode == ertn_op) { in arch_decode_instruction()
/tools/perf/util/
Dgenelf_debug.c227 static void emit_extended_opcode(struct buffer_ext *be, ubyte opcode, in emit_extended_opcode() argument
234 buffer_ext_add(be, &opcode, 1); in emit_extended_opcode()
238 static void emit_opcode(struct buffer_ext *be, ubyte opcode) in emit_opcode() argument
240 buffer_ext_add(be, &opcode, 1); in emit_opcode()
244 ubyte opcode, long data) in emit_opcode_signed() argument
246 buffer_ext_add(be, &opcode, 1); in emit_opcode_signed()
250 static void emit_opcode_unsigned(struct buffer_ext *be, ubyte opcode, in emit_opcode_unsigned() argument
253 buffer_ext_add(be, &opcode, 1); in emit_opcode_unsigned()
325 unsigned long opcode = temp + in get_special_opcode() local
329 return opcode <= 255 ? opcode : 0; in get_special_opcode()
/tools/perf/arch/powerpc/util/
Ddwarf-regs.c123 int opcode = PPC_OP(raw_insn); in get_offset_opcode() local
126 if ((opcode == OP_LD) || (opcode == OP_STD)) in get_offset_opcode()
/tools/perf/arch/powerpc/annotate/
Dinstructions.c195 int opcode = PPC_OP(raw_insn); in check_ppc_insn() local
208 if ((opcode & 0x20)) { in check_ppc_insn()
214 sprintf(name_insn, "%d", opcode); in check_ppc_insn()
218 } else if (opcode == 31) { in check_ppc_insn()
236 mem_insns_31_opcode.value = opcode; in check_ppc_insn()
/tools/arch/x86/include/asm/
Dinsn.h75 struct insn_field opcode; /* member
252 return insn_offset_opcode(insn) + insn->opcode.nbytes; in insn_offset_modrm()
295 return insn->opcode.bytes[0] == POP_SS_OPCODE || in insn_masking_exception()
296 (insn->opcode.bytes[0] == MOV_SREG_OPCODE && in insn_masking_exception()
Dinat.h102 extern insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode);
104 extern insn_attr_t inat_get_escape_attribute(insn_byte_t opcode,
110 extern insn_attr_t inat_get_avx_attribute(insn_byte_t opcode,
/tools/testing/cxl/test/
Dmem.c44 .opcode = cpu_to_le16(CXL_MBOX_OP_GET_SUPPORTED_LOGS),
48 .opcode = cpu_to_le16(CXL_MBOX_OP_IDENTIFY),
52 .opcode = cpu_to_le16(CXL_MBOX_OP_GET_LSA),
56 .opcode = cpu_to_le16(CXL_MBOX_OP_GET_PARTITION_INFO),
60 .opcode = cpu_to_le16(CXL_MBOX_OP_SET_LSA),
65 .opcode = cpu_to_le16(CXL_MBOX_OP_GET_HEALTH_INFO),
69 .opcode = cpu_to_le16(CXL_MBOX_OP_GET_POISON),
73 .opcode = cpu_to_le16(CXL_MBOX_OP_INJECT_POISON),
77 .opcode = cpu_to_le16(CXL_MBOX_OP_CLEAR_POISON),
81 .opcode = cpu_to_le16(CXL_MBOX_OP_GET_FW_INFO),
[all …]
/tools/objtool/arch/x86/
DBuild6 inat_tables_maps = ../arch/x86/lib/x86-opcode-map.txt
/tools/testing/selftests/bpf/progs/
Dtest_tcp_custom_syncookie.c222 __u8 *opcode, *opsize, *wscale; in tcp_parse_option() local
228 opcode = next(ctx, 1); in tcp_parse_option()
229 if (!opcode) in tcp_parse_option()
232 if (*opcode == TCPOPT_EOL) in tcp_parse_option()
235 if (*opcode == TCPOPT_NOP) in tcp_parse_option()
245 switch (*opcode) { in tcp_parse_option()
/tools/include/uapi/linux/
Dio_uring.h31 __u8 opcode; /* type of operation for this sqe */ member
631 __u16 opcode; member
721 __u8 opcode; member
/tools/include/io_uring/
Dmini_liburing.h237 sqe->opcode = (__u8)IORING_OP_URING_CMD; in io_uring_prep_cmd()
262 sqe->opcode = (__u8)IORING_OP_SEND; in io_uring_prep_send()
274 sqe->opcode = (__u8)IORING_OP_SEND_ZC; in io_uring_prep_sendzc()
/tools/bpf/bpftool/
Dcfg.c179 __u8 opcode = BPF_OP(cur->code); in func_partition_bb_head() local
181 if (opcode == BPF_EXIT || opcode == BPF_CALL) in func_partition_bb_head()
188 if (opcode != BPF_JA) { in func_partition_bb_head()
/tools/perf/util/intel-pt-decoder/
Dintel-pt-insn-decoder.c45 switch (insn->opcode.bytes[0]) { in intel_pt_insn_decoder()
47 switch (insn->opcode.bytes[1]) { in intel_pt_insn_decoder()

12