Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 25 of 26) sorted by relevance

12

/tools/include/linux/
Dfilter.h40 .imm = 0 })
48 .imm = 0 })
58 .imm = IMM })
66 .imm = IMM })
76 .imm = LEN })
86 .imm = 0 })
94 .imm = 0 })
104 .imm = IMM })
112 .imm = IMM })
122 .imm = IMM })
[all …]
/tools/bpf/bpftool/
Dxlated_dumper.c173 unsigned long address = dd->address_call_base + insn->imm; in print_call()
177 (__u32) insn->imm < dd->nr_jited_ksyms && dd->jited_ksyms) in print_call()
178 address = dd->jited_ksyms[insn->imm]; in print_call()
195 "map[id:%u]", insn->imm); in print_imm()
198 "map[id:%u][0]+%u", insn->imm, (insn + 1)->imm); in print_imm()
201 "map[idx:%u]+%u", insn->imm, (insn + 1)->imm); in print_imm()
204 "subprog[%+d]", insn->imm); in print_imm()
284 print_hex_data_json((uint8_t *)(&insn[i].imm), in dump_xlated_json()
287 print_hex_data_json((uint8_t *)(&insn[i].imm), in dump_xlated_json()
/tools/objtool/arch/x86/
Ddecode.c119 u64 imm; in arch_decode_instruction() local
235 imm = insn.immediate.value; in arch_decode_instruction()
238 imm <<= 32; in arch_decode_instruction()
239 imm = (s64)imm >> 32; in arch_decode_instruction()
241 imm <<= 56; in arch_decode_instruction()
242 imm = (s64)imm >> 56; in arch_decode_instruction()
248 imm = -imm; in arch_decode_instruction()
255 op->src.offset = imm; in arch_decode_instruction()
/tools/testing/selftests/bpf/
Dtest_verifier.c448 if (fp[len].code != 0 || fp[len].imm != 0) in probe_filter_length()
743 prog[*fixup_map_hash_8b].imm = map_fds[0]; in do_test_fixup()
752 prog[*fixup_map_hash_48b].imm = map_fds[1]; in do_test_fixup()
761 prog[*fixup_map_hash_16b].imm = map_fds[2]; in do_test_fixup()
771 prog[*fixup_map_array_48b].imm = map_fds[3]; in do_test_fixup()
779 prog[*fixup_prog1].imm = map_fds[4]; in do_test_fixup()
787 prog[*fixup_prog2].imm = map_fds[5]; in do_test_fixup()
795 prog[*fixup_map_in_map].imm = map_fds[6]; in do_test_fixup()
803 prog[*fixup_cgroup_storage].imm = map_fds[7]; in do_test_fixup()
811 prog[*fixup_percpu_cgroup_storage].imm = map_fds[8]; in do_test_fixup()
[all …]
Dtest_cgroup_storage.c67 prog[0].imm = percpu_map_fd; in main()
68 prog[7].imm = map_fd; in main()
Dtest_sock.c323 if (fp[len].code != 0 || fp[len].imm != 0) in probe_prog_length()
Dtest_sysctl.c1405 if (fp[len].code != 0 || fp[len].imm != 0) in probe_prog_length()
1428 prog[insn_num].imm = (uint32_t)value.num; in fixup_sysctl_value()
1429 prog[insn_num + 1].imm = (uint32_t)(value.num >> 32); in fixup_sysctl_value()
Dtest_lru_map.c77 insns[0].imm = mfd; in bpf_map_lookup_elem_with_ref_bit()
/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk239 function convert_operands(count,opnd, i,j,imm,mod)
241 imm = null
248 if (imm) {
251 imm = add_flags(imm, "INAT_SCNDIMM")
253 imm = imm_flag[i]
257 return add_flags(imm, mod)
/tools/lib/bpf/
Drelo_core.c877 insn->imm = 195896080; /* => 0xbad2310 => "bad relo" */ in bpf_core_poison_insn()
947 if (res->validate && insn->imm != orig_val) { in bpf_core_patch_insn()
950 insn_idx, insn->imm, orig_val, new_val); in bpf_core_patch_insn()
953 orig_val = insn->imm; in bpf_core_patch_insn()
954 insn->imm = new_val; in bpf_core_patch_insn()
1007 __u64 imm; in bpf_core_patch_insn() local
1018 imm = insn[0].imm + ((__u64)insn[1].imm << 32); in bpf_core_patch_insn()
1019 if (res->validate && imm != orig_val) { in bpf_core_patch_insn()
1022 insn_idx, (unsigned long long)imm, in bpf_core_patch_insn()
1027 insn[0].imm = new_val; in bpf_core_patch_insn()
[all …]
Dlibbpf_probes.c138 insns[0].imm = 2; in bpf_probe_prog_type()
Dlibbpf.c3681 if ((sym->st_value % BPF_INSN_SZ) || (insn->imm % BPF_INSN_SZ)) { in bpf_program__record_reloc()
3683 prog->name, sym_name, (size_t)sym->st_value, insn->imm); in bpf_program__record_reloc()
4134 insns[0].imm = map; in probe_kern_global_data()
5312 insn[0].imm = relo->map_idx; in bpf_object__relocate_data()
5315 insn[0].imm = obj->maps[relo->map_idx].fd; in bpf_object__relocate_data()
5319 insn[1].imm = insn[0].imm + relo->sym_off; in bpf_object__relocate_data()
5322 insn[0].imm = relo->map_idx; in bpf_object__relocate_data()
5325 insn[0].imm = obj->maps[relo->map_idx].fd; in bpf_object__relocate_data()
5333 insn[0].imm = obj->kconfig_map_idx; in bpf_object__relocate_data()
5336 insn[0].imm = obj->maps[obj->kconfig_map_idx].fd; in bpf_object__relocate_data()
[all …]
Dgen_loader.c545 offsetof(struct bpf_insn, imm); in emit_relo()
575 offsetof(struct bpf_insn, imm); in cleanup_relos()
Dxsk.c390 insns[0].imm = map_fd; in get_xsk_prog()
Dlinker.c2086 insn->imm += sec->dst_off / sizeof(struct bpf_insn); in linker_append_elf_relos()
2088 insn->imm += sec->dst_off; in linker_append_elf_relos()
/tools/arch/x86/include/asm/
Dinat.h84 #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS) argument
/tools/testing/selftests/bpf/progs/
Dnetif_receive_skb.c245 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,}); in BPF_PROG()
248 .imm = 5,}); in BPF_PROG()
Dsyscall.c107 insns[3].imm = ret; in bpf_prog()
/tools/testing/selftests/bpf/verifier/
Dbasic_instr.c187 .imm = 32,
/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c686 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,}); in test_btf_dump_struct_data()
691 .imm = 5,}); in test_btf_dump_struct_data()
700 {.code = 1, .dst_reg = 2, .src_reg = 3, .off = 4, .imm = 5}); in test_btf_dump_struct_data()
Dalign.c595 if (fp[len].code != 0 || fp[len].imm != 0) in probe_filter_length()
/tools/perf/util/
Devlist.c440 for (int imm = 0; imm <= 1; imm++) { in __evlist__disable() local
449 if (pos->immediate != imm) in __evlist__disable()
/tools/testing/selftests/filesystems/fuse/
Dbpf_loader.c700 insns[insn_idx].imm = in relocate_maps()
/tools/include/uapi/linux/
Dbpf.h76 __s32 imm; /* signed immediate constant */ member
/tools/arch/x86/lib/
Dx86-opcode-map.txt343 # 3DNow! uses the last imm byte as opcode extension.

12