Home
last modified time | relevance | path

Searched refs:insns (Results 1 - 25 of 170) sorted by relevance

1234567

/kernel/linux/linux-5.10/arch/arm64/crypto/
H A Dsha512-armv8.pl480 my @insns = (&$body,&$body,&$body,&$body);
484 eval(shift(@insns));
485 eval(shift(@insns));
486 eval(shift(@insns));
488 eval(shift(@insns));
489 eval(shift(@insns));
491 eval(shift(@insns));
492 eval(shift(@insns));
494 eval(shift(@insns));
496 eval(shift(@insns));
[all...]
/kernel/linux/linux-6.6/arch/arm64/crypto/
H A Dsha512-armv8.pl480 my @insns = (&$body,&$body,&$body,&$body);
484 eval(shift(@insns));
485 eval(shift(@insns));
486 eval(shift(@insns));
488 eval(shift(@insns));
489 eval(shift(@insns));
491 eval(shift(@insns));
492 eval(shift(@insns));
494 eval(shift(@insns));
496 eval(shift(@insns));
[all...]
/kernel/linux/linux-5.10/arch/arm/crypto/
H A Dsha256-armv4.pl309 my @insns = (&$body,&$body,&$body,&$body);
313 eval(shift(@insns));
314 eval(shift(@insns));
315 eval(shift(@insns));
317 eval(shift(@insns));
318 eval(shift(@insns));
319 eval(shift(@insns));
321 eval(shift(@insns));
322 eval(shift(@insns));
324 eval(shift(@insns));
[all...]
/kernel/linux/linux-6.6/arch/arm/crypto/
H A Dsha256-armv4.pl309 my @insns = (&$body,&$body,&$body,&$body);
313 eval(shift(@insns));
314 eval(shift(@insns));
315 eval(shift(@insns));
317 eval(shift(@insns));
318 eval(shift(@insns));
319 eval(shift(@insns));
321 eval(shift(@insns));
322 eval(shift(@insns));
324 eval(shift(@insns));
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/
H A Dpkey_exec_prot.c28 static unsigned int *insns; variable
62 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE)) { in segv_handler()
84 if (mprotect(insns, pgsize, PROT_EXEC)) { in segv_handler()
131 insns = (unsigned int *) mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in test()
133 FAIL_IF(insns == MAP_FAILED); in test()
137 insns[i] = PPC_INST_NOP; in test()
144 insns[0] = PPC_INST_TRAP; in test()
151 insns[numinsns - 1] = PPC_INST_BLR; in test()
162 fault_addr = insns; in test()
179 FAIL_IF(sys_pkey_mprotect(insns, pgsiz in test()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/
H A Dpkey_exec_prot.c28 static unsigned int *insns; variable
62 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE)) { in segv_handler()
84 if (mprotect(insns, pgsize, PROT_EXEC)) { in segv_handler()
131 insns = (unsigned int *) mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in test()
133 FAIL_IF(insns == MAP_FAILED); in test()
137 insns[i] = PPC_INST_NOP; in test()
144 insns[0] = PPC_INST_TRAP; in test()
151 insns[numinsns - 1] = PPC_INST_BLR; in test()
162 fault_addr = insns; in test()
179 FAIL_IF(sys_pkey_mprotect(insns, pgsiz in test()
[all...]
H A Dexec_prot.c30 static unsigned int *insns; variable
73 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE | PROT_EXEC)) { in segv_handler()
98 FAIL_IF(mprotect(insns, pgsize, rights) != 0); in check_exec_fault()
99 asm volatile("mtctr %0; bctrl" : : "r"(insns)); in check_exec_fault()
138 insns = (unsigned int *)mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in test()
140 FAIL_IF(insns == MAP_FAILED); in test()
144 insns[i] = PPC_INST_NOP; in test()
151 insns[0] = PPC_INST_TRAP; in test()
158 insns[numinsns - 1] = PPC_INST_BLR; in test()
164 fault_addr = insns; in test()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt.c20 const struct bpf_insn insns[64]; member
42 .insns = {
54 .insns = {
66 .insns = {
88 .insns = {
103 .insns = {
122 .insns = {
151 .insns = {
165 .insns = {
194 .insns
852 load_prog(const struct bpf_insn *insns, enum bpf_attach_type expected_attach_type) load_prog() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt.c25 const struct bpf_insn insns[64]; member
47 .insns = {
59 .insns = {
71 .insns = {
93 .insns = {
108 .insns = {
127 .insns = {
156 .insns = {
170 .insns = {
199 .insns
919 load_prog(const struct bpf_insn *insns, enum bpf_attach_type expected_attach_type) load_prog() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/
H A Devent_output.c24 * is against the insns, instead of filled prog.
41 .insns = { __PERF_EVENT_INSNS__ },
49 .insns = { __PERF_EVENT_INSNS__ },
57 .insns = { __PERF_EVENT_INSNS__ },
65 .insns = { __PERF_EVENT_INSNS__ },
73 .insns = { __PERF_EVENT_INSNS__ },
81 .insns = { __PERF_EVENT_INSNS__ },
89 .insns = { __PERF_EVENT_INSNS__ },
97 .insns = { __PERF_EVENT_INSNS__ },
105 .insns
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/verifier/
H A Devent_output.c24 * is against the insns, instead of filled prog.
41 .insns = { __PERF_EVENT_INSNS__ },
49 .insns = { __PERF_EVENT_INSNS__ },
57 .insns = { __PERF_EVENT_INSNS__ },
65 .insns = { __PERF_EVENT_INSNS__ },
73 .insns = { __PERF_EVENT_INSNS__ },
81 .insns = { __PERF_EVENT_INSNS__ },
89 .insns = { __PERF_EVENT_INSNS__ },
97 .insns = { __PERF_EVENT_INSNS__ },
105 .insns
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_tag.c27 static void bpf_gen_imm_prog(unsigned int insns, int fd_map) in bpf_gen_imm_prog() argument
32 for (i = 0; i < insns; i++) in bpf_gen_imm_prog()
37 static void bpf_gen_map_prog(unsigned int insns, int fd_map) in bpf_gen_map_prog() argument
41 for (i = 0; i + 1 < insns; i += 2) { in bpf_gen_map_prog()
48 if (insns % 2 == 0) in bpf_gen_map_prog()
49 prog[insns - 2] = BPF_ALU64_IMM(BPF_MOV, i % BPF_REG_10, 42); in bpf_gen_map_prog()
50 prog[insns - 1] = BPF_EXIT_INSN(); in bpf_gen_map_prog()
53 static int bpf_try_load_prog(int insns, int fd_map, in bpf_try_load_prog() argument
54 void (*bpf_filler)(unsigned int insns, in bpf_try_load_prog()
59 bpf_filler(insns, fd_ma in bpf_try_load_prog()
114 tag_from_alg(int insns, uint8_t *tag, uint32_t len) tag_from_alg() argument
154 tag_exit_report(int insns, int fd_map, uint8_t *ftag, uint8_t *atag, uint32_t len) tag_exit_report() argument
165 do_test(uint32_t *tests, int start_insns, int fd_map, void (*bpf_filler)(unsigned int insns, int fd)) do_test() argument
[all...]
H A Dtest_sock.c29 struct bpf_insn insns[MAX_INSNS]; member
50 .insns = {
67 .insns = {
84 .insns = {
101 .insns = {
118 .insns = {
132 .insns = {
146 .insns = {
160 .insns = {
174 .insns
[all...]
H A Dtest_sysctl.c30 struct bpf_insn insns[MAX_INSNS]; member
49 .insns = {
60 .insns = {
71 .insns = {
82 .insns = {
103 .insns = {
125 .insns = {
148 .insns = {
163 .insns = {
185 .insns
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_tag.c27 static void bpf_gen_imm_prog(unsigned int insns, int fd_map) in bpf_gen_imm_prog() argument
32 for (i = 0; i < insns; i++) in bpf_gen_imm_prog()
37 static void bpf_gen_map_prog(unsigned int insns, int fd_map) in bpf_gen_map_prog() argument
41 for (i = 0; i + 1 < insns; i += 2) { in bpf_gen_map_prog()
48 if (insns % 2 == 0) in bpf_gen_map_prog()
49 prog[insns - 2] = BPF_ALU64_IMM(BPF_MOV, i % BPF_REG_10, 42); in bpf_gen_map_prog()
50 prog[insns - 1] = BPF_EXIT_INSN(); in bpf_gen_map_prog()
53 static int bpf_try_load_prog(int insns, int fd_map, in bpf_try_load_prog() argument
54 void (*bpf_filler)(unsigned int insns, in bpf_try_load_prog()
59 bpf_filler(insns, fd_ma in bpf_try_load_prog()
114 tag_from_alg(int insns, uint8_t *tag, uint32_t len) tag_from_alg() argument
154 tag_exit_report(int insns, int fd_map, uint8_t *ftag, uint8_t *atag, uint32_t len) tag_exit_report() argument
165 do_test(uint32_t *tests, int start_insns, int fd_map, void (*bpf_filler)(unsigned int insns, int fd)) do_test() argument
[all...]
H A Dtest_sock.c28 struct bpf_insn insns[MAX_INSNS]; member
52 .insns = {
65 .insns = {
78 .insns = {
91 .insns = {
104 .insns = {
118 .insns = {
132 .insns = {
142 .insns = {
152 .insns
[all...]
H A Dtest_sysctl.c30 struct bpf_insn insns[MAX_INSNS]; member
49 .insns = {
60 .insns = {
71 .insns = {
82 .insns = {
103 .insns = {
125 .insns = {
148 .insns = {
163 .insns = {
185 .insns
[all...]
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf_probes.c68 probe_load(enum bpf_prog_type prog_type, const struct bpf_insn *insns, in probe_load() argument
119 xattr.insns = insns; in probe_load()
131 struct bpf_insn insns[2] = { in bpf_probe_prog_type() local
138 insns[0].imm = 2; in bpf_probe_prog_type()
141 probe_load(prog_type, insns, ARRAY_SIZE(insns), NULL, 0, ifindex); in bpf_probe_prog_type()
315 struct bpf_insn insns[2] = { in bpf_probe_helper() local
322 probe_load(prog_type, insns, ARRAY_SIZE(insns), bu in bpf_probe_helper()
347 struct bpf_insn insns[BPF_MAXINSNS + 1]; bpf_probe_large_insn_limit() local
[all...]
/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dalternative.c36 static void __init_or_module add_jump_padding(void *insns, unsigned int len) in add_jump_padding() argument
43 memcpy(insns, &brcl, sizeof(brcl)); in add_jump_padding()
44 insns += sizeof(brcl); in add_jump_padding()
48 memcpy(insns, &nop16, 2); in add_jump_padding()
49 insns += 2; in add_jump_padding()
54 static void __init_or_module add_padding(void *insns, unsigned int len) in add_padding() argument
57 add_jump_padding(insns, len); in add_padding()
59 memcpy(insns, nops[len / 2 - 1], len); in add_padding()
/kernel/linux/linux-6.6/lib/
H A Dtest_bpf.c68 struct sock_filter insns[MAX_INSNS]; member
71 void *insns; member
104 self->u.ptr.insns = insn; in bpf_fill_maxinsns1()
123 self->u.ptr.insns = insn; in bpf_fill_maxinsns2()
150 self->u.ptr.insns = insn; in bpf_fill_maxinsns3()
169 self->u.ptr.insns = insn; in bpf_fill_maxinsns4()
192 self->u.ptr.insns = insn; in bpf_fill_maxinsns5()
214 self->u.ptr.insns = insn; in bpf_fill_maxinsns6()
240 self->u.ptr.insns = insn; in bpf_fill_maxinsns7()
263 self->u.ptr.insns in bpf_fill_maxinsns8()
467 __bpf_ld_imm64(struct bpf_insn insns[2], u8 reg, s64 imm64) __bpf_ld_imm64() argument
483 struct bpf_insn *insns; __bpf_fill_max_jmp() local
827 struct bpf_insn *insns; __bpf_fill_pattern() local
916 __bpf_emit_alu64_imm(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 imm) __bpf_emit_alu64_imm() argument
937 __bpf_emit_alu32_imm(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 imm) __bpf_emit_alu32_imm() argument
958 __bpf_emit_alu64_reg(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_alu64_reg() argument
980 __bpf_emit_alu32_reg(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_alu32_reg() argument
1221 struct bpf_insn *insns; __bpf_fill_alu_imm_regs() local
1405 struct bpf_insn *insns; __bpf_fill_alu_reg_pairs() local
1594 __bpf_emit_atomic64(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_atomic64() argument
1641 __bpf_emit_atomic32(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_atomic32() argument
1688 __bpf_emit_cmpxchg64(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_cmpxchg64() argument
1728 __bpf_emit_cmpxchg32(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_cmpxchg32() argument
2302 __bpf_emit_jmp_imm(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 imm) __bpf_emit_jmp_imm() argument
2325 __bpf_emit_jmp32_imm(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 imm) __bpf_emit_jmp32_imm() argument
2346 __bpf_emit_jmp_reg(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_jmp_reg() argument
2368 __bpf_emit_jmp32_reg(struct bpf_test *self, void *arg, struct bpf_insn *insns, s64 dst, s64 src) __bpf_emit_jmp32_reg() argument
2704 struct bpf_insn *insns; __bpf_fill_staggered_jumps() local
14844 struct bpf_insn insns[MAX_INSNS]; global() member
[all...]
/kernel/linux/linux-5.10/arch/sparc/kernel/
H A Dsetup_64.c189 unsigned int *insns; in per_cpu_patch() local
193 insns = &p->starfire[0]; in per_cpu_patch()
198 insns = &p->cheetah_jbus[0]; in per_cpu_patch()
200 insns = &p->cheetah_safari[0]; in per_cpu_patch()
203 insns = &p->sun4v[0]; in per_cpu_patch()
210 *(unsigned int *) (addr + 0) = insns[0]; in per_cpu_patch()
214 *(unsigned int *) (addr + 4) = insns[1]; in per_cpu_patch()
218 *(unsigned int *) (addr + 8) = insns[2]; in per_cpu_patch()
222 *(unsigned int *) (addr + 12) = insns[3]; in per_cpu_patch()
250 *(unsigned int *) (addr + 0) = start->insns[ in sun4v_patch_2insn_range()
[all...]
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Dsetup_64.c187 unsigned int *insns; in per_cpu_patch() local
191 insns = &p->starfire[0]; in per_cpu_patch()
196 insns = &p->cheetah_jbus[0]; in per_cpu_patch()
198 insns = &p->cheetah_safari[0]; in per_cpu_patch()
201 insns = &p->sun4v[0]; in per_cpu_patch()
208 *(unsigned int *) (addr + 0) = insns[0]; in per_cpu_patch()
212 *(unsigned int *) (addr + 4) = insns[1]; in per_cpu_patch()
216 *(unsigned int *) (addr + 8) = insns[2]; in per_cpu_patch()
220 *(unsigned int *) (addr + 12) = insns[3]; in per_cpu_patch()
248 *(unsigned int *) (addr + 0) = start->insns[ in sun4v_patch_2insn_range()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dsyscall.c64 static struct bpf_insn insns[] = { in bpf_prog() local
85 .insn_cnt = sizeof(insns) / sizeof(insns[0]), in bpf_prog()
98 prog_load_attr.insns = (long) insns; in bpf_prog()
107 insns[3].imm = ret; in bpf_prog()
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dmodule.c104 Elf32_Word insns[2]; /* each stub entry has two insns */ member
112 Elf64_Word insns[4]; /* each stub entry has four insns */ member
451 stub->insns[0] = 0x20200000; /* ldil L'XXX,%r1 */ in get_stub()
452 stub->insns[1] = 0xe0202002; /* be,n R'XXX(%sr4,%r1) */ in get_stub()
454 stub->insns[0] |= reassemble_21(lrsel(value, addend)); in get_stub()
455 stub->insns[1] |= reassemble_17(rrsel(value, addend) / 4); in get_stub()
482 stub->insns[0] = 0x0f6010db; /* ldd 0(%dp),%dp */ in get_stub()
483 stub->insns[ in get_stub()
[all...]
/kernel/linux/linux-6.6/arch/parisc/kernel/
H A Dmodule.c85 Elf32_Word insns[2]; /* each stub entry has two insns */ member
93 Elf64_Word insns[4]; /* each stub entry has four insns */ member
434 stub->insns[0] = 0x20200000; /* ldil L'XXX,%r1 */ in get_stub()
435 stub->insns[1] = 0xe0202002; /* be,n R'XXX(%sr4,%r1) */ in get_stub()
437 stub->insns[0] |= reassemble_21(lrsel(value, addend)); in get_stub()
438 stub->insns[1] |= reassemble_17(rrsel(value, addend) / 4); in get_stub()
465 stub->insns[0] = 0x0f6010db; /* ldd 0(%dp),%dp */ in get_stub()
466 stub->insns[ in get_stub()
[all...]

Completed in 15 milliseconds

1234567