| /tools/include/linux/ |
| A D | filter.h | 40 .imm = 0 }) 48 .imm = 0 }) 58 .imm = IMM }) 66 .imm = IMM }) 76 .imm = LEN }) 86 .imm = 0 }) 94 .imm = 0 }) 122 .imm = 0 }) 130 .imm = 0 }) 178 .imm = 0 }) [all …]
|
| /tools/objtool/arch/powerpc/ |
| A D | decode.c | 48 unsigned long imm; in arch_decode_instruction() local 54 imm = 0; in arch_decode_instruction() 65 imm = ins & 0x3fffffc; in arch_decode_instruction() 66 if (imm & 0x2000000) in arch_decode_instruction() 67 imm -= 0x4000000; in arch_decode_instruction() 68 imm |= ins & 2; /* AA flag */ in arch_decode_instruction() 78 insn->immediate = imm; in arch_decode_instruction()
|
| /tools/bpf/bpftool/ |
| A D | xlated_dumper.c | 180 unsigned long address = dd->address_call_base + insn->imm; in print_call() 184 (__u32) insn->imm < dd->nr_jited_ksyms && dd->jited_ksyms) in print_call() 185 address = dd->jited_ksyms[insn->imm]; in print_call() 202 "map[id:%d]", insn->imm); in print_imm() 205 "map[id:%d][0]+%d", insn->imm, (insn + 1)->imm); in print_imm() 208 "map[idx:%d]+%d", insn->imm, (insn + 1)->imm); in print_imm() 211 "subprog[%+d]", insn->imm); in print_imm() 291 print_hex_data_json((uint8_t *)(&insn[i].imm), in dump_xlated_json() 294 print_hex_data_json((uint8_t *)(&insn[i].imm), in dump_xlated_json()
|
| /tools/testing/selftests/arm64/fp/ |
| A D | sme-inst.h | 13 .macro rdsvl nx, imm 15 | (\imm << 5) \
|
| /tools/testing/selftests/bpf/ |
| A D | test_verifier.c | 526 if (fp[len].code != 0 || fp[len].imm != 0) in probe_filter_length() 1047 prog[*fixup_map_hash_8b].imm = map_fds[0]; in do_test_fixup() 1083 prog[*fixup_prog1].imm = map_fds[4]; in do_test_fixup() 1091 prog[*fixup_prog2].imm = map_fds[5]; in do_test_fixup() 1099 prog[*fixup_map_in_map].imm = map_fds[6]; in do_test_fixup() 1123 prog[*fixup_map_sockmap].imm = map_fds[9]; in do_test_fixup() 1139 prog[*fixup_map_xskmap].imm = map_fds[11]; in do_test_fixup() 1221 prog[*fixup_map_timer].imm = map_fds[21]; in do_test_fixup() 1228 prog[*fixup_map_kptr].imm = map_fds[22]; in do_test_fixup() 1367 if (masked->imm == INSN_IMM_MASK) in compare_masked_insn() [all …]
|
| A D | test_lru_map.c | 73 insns[0].imm = mfd; in bpf_map_lookup_elem_with_ref_bit()
|
| /tools/arch/x86/tools/ |
| A D | gen-insn-attr-x86.awk | 246 function convert_operands(count,opnd, i,j,imm,mod) 248 imm = null 255 if (imm) { 258 imm = add_flags(imm, "INAT_SCNDIMM") 260 imm = imm_flag[i] 264 return add_flags(imm, mod)
|
| /tools/objtool/arch/x86/ |
| A D | decode.c | 167 u64 imm; in arch_decode_instruction() local 295 imm = ins.immediate.value; in arch_decode_instruction() 298 imm <<= 32; in arch_decode_instruction() 299 imm = (s64)imm >> 32; in arch_decode_instruction() 301 imm <<= 56; in arch_decode_instruction() 302 imm = (s64)imm >> 56; in arch_decode_instruction() 308 imm = -imm; in arch_decode_instruction() 315 op->src.offset = imm; in arch_decode_instruction()
|
| /tools/lib/bpf/ |
| A D | gen_loader.c | 708 move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4, in emit_relo_kfunc_btf() 709 kdesc->insn + offsetof(struct bpf_insn, imm)); in emit_relo_kfunc_btf() 757 offsetof(struct bpf_insn, imm))); in emit_relo_kfunc_btf() 775 offsetof(struct bpf_insn, imm))); in emit_ksym_relo_log() 777 offsetof(struct bpf_insn, imm))); in emit_ksym_relo_log() 798 move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_typeless() 799 kdesc->insn + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_typeless() 816 sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm))); in emit_relo_ksym_typeless() 847 move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_btf() 848 kdesc->insn + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_btf() [all …]
|
| A D | relo_core.c | 1068 if (res->validate && insn->imm != orig_val) { in bpf_core_patch_insn() 1071 insn_idx, insn->imm, (unsigned long long)orig_val, in bpf_core_patch_insn() 1075 orig_val = insn->imm; in bpf_core_patch_insn() 1076 insn->imm = new_val; in bpf_core_patch_insn() 1131 __u64 imm; in bpf_core_patch_insn() local 1142 imm = (__u32)insn[0].imm | ((__u64)insn[1].imm << 32); in bpf_core_patch_insn() 1143 if (res->validate && imm != orig_val) { in bpf_core_patch_insn() 1146 insn_idx, (unsigned long long)imm, in bpf_core_patch_insn() 1151 insn[0].imm = new_val; in bpf_core_patch_insn() 1152 insn[1].imm = new_val >> 32; in bpf_core_patch_insn() [all …]
|
| A D | libbpf_internal.h | 628 insn->imm = bswap_32(insn->imm); in bpf_insn_bswap()
|
| A D | libbpf.c | 6115 insn[0].imm = relo->map_idx; in bpf_object__relocate_data() 6118 insn[0].imm = map->fd; in bpf_object__relocate_data() 6126 insn[1].imm = insn[0].imm + relo->sym_off; in bpf_object__relocate_data() 6129 insn[0].imm = relo->map_idx; in bpf_object__relocate_data() 6132 insn[0].imm = map->fd; in bpf_object__relocate_data() 6143 insn[0].imm = obj->kconfig_map_idx; in bpf_object__relocate_data() 6148 insn[1].imm = ext->kcfg.data_off; in bpf_object__relocate_data() 6156 insn[1].imm = ext->ksym.addr >> 32; in bpf_object__relocate_data() 7363 *func_id = insn->imm; in insn_is_helper_call() 7390 insn->imm = BPF_FUNC_probe_read; in bpf_object__sanitize_prog() [all …]
|
| A D | features.c | 74 insns[0].imm = map; in probe_kern_global_data()
|
| /tools/perf/util/ |
| A D | print_insn.c | 95 thread__find_symbol(thread, cpumode, op->imm, &al)) { in print_insn_x86() 99 printed += fprintf(fp, " [%#" PRIx64 "]", op->imm); in print_insn_x86()
|
| A D | annotate.h | 513 bool imm; member
|
| A D | evlist.c | 458 for (int imm = 0; imm <= 1; imm++) { in __evlist__disable() local 469 if (pos->immediate != imm) in __evlist__disable()
|
| A D | annotate.c | 2524 op_loc->imm = true; in annotate_get_insn_location() 2538 op_loc->imm = true; in annotate_get_insn_location() 2616 if (loc->segment == INSN_SEG_X86_GS && loc->imm && in is_stack_canary() 2754 op_loc->segment == INSN_SEG_X86_GS && op_loc->imm) { in __hist_entry__get_data_type()
|
| /tools/arch/x86/include/asm/ |
| A D | inat.h | 90 #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS) argument
|
| /tools/testing/selftests/bpf/progs/ |
| A D | netif_receive_skb.c | 241 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,}); in BPF_PROG() 244 .imm = 5,}); in BPF_PROG()
|
| A D | syscall.c | 145 insns[3].imm = ret; in load_prog()
|
| /tools/testing/selftests/bpf/verifier/ |
| A D | basic_instr.c | 187 .imm = 32,
|
| /tools/perf/arch/x86/annotate/ |
| A D | instructions.c | 273 if (src->imm) in update_insn_state_x86() 334 src->segment == INSN_SEG_X86_GS && src->imm) { in update_insn_state_x86() 372 if (src->imm) { in update_insn_state_x86()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | btf_dump.c | 794 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,}); in test_btf_dump_struct_data() 799 .imm = 5,}); in test_btf_dump_struct_data() 808 {.code = 1, .dst_reg = 2, .src_reg = 3, .off = 4, .imm = 5}); in test_btf_dump_struct_data()
|
| A D | test_sysctl.c | 1391 if (fp[len].code != 0 || fp[len].imm != 0) in probe_prog_length() 1414 prog[insn_num].imm = (uint32_t)value.num; in fixup_sysctl_value() 1415 prog[insn_num + 1].imm = (uint32_t)(value.num >> 32); in fixup_sysctl_value()
|
| A D | align.c | 595 if (fp[len].code != 0 || fp[len].imm != 0) in probe_filter_length()
|