Searched refs:MakeInstruction (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/sandbox/linux/bpf_dsl/ |
D | codegen_unittest.cc | 114 CodeGen::Node MakeInstruction(uint16_t code, in MakeInstruction() function in sandbox::__anon7ec0eee30111::ProgramTest 118 CodeGen::Node res = gen_.MakeInstruction(code, k, jt, jf); in MakeInstruction() 181 CodeGen::Node head = MakeInstruction(BPF_RET + BPF_K, 0); in TEST_F() 190 CodeGen::Node head = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, in TEST_F() 191 MakeInstruction(BPF_RET + BPF_K, 1), in TEST_F() 192 MakeInstruction(BPF_RET + BPF_K, 0)); in TEST_F() 201 CodeGen::Node ret = MakeInstruction(BPF_RET + BPF_K, 0); in TEST_F() 202 CodeGen::Node head = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, ret, ret); in TEST_F() 220 CodeGen::Node insn0 = MakeInstruction(BPF_RET + BPF_K, 42); in TEST_F() 221 CodeGen::Node insn1 = MakeInstruction(BPF_LD + BPF_W + BPF_ABS, 42, insn0); in TEST_F() [all …]
|
D | policy_compiler.cc | 146 return gen_.MakeInstruction( in CheckArch() 148 gen_.MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, SECCOMP_ARCH, passed, in CheckArch() 174 return gen_.MakeInstruction( in MaybeAddEscapeHatch() 176 gen_.MakeInstruction( in MaybeAddEscapeHatch() 178 gen_.MakeInstruction( in MaybeAddEscapeHatch() 180 gen_.MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, hipc, in MaybeAddEscapeHatch() 196 return gen_.MakeInstruction( in DispatchSyscall() 208 return gen_.MakeInstruction( in CheckSyscallNumber() 212 return gen_.MakeInstruction( in CheckSyscallNumber() 274 return gen_.MakeInstruction(BPF_JMP + BPF_JGE + BPF_K, mid->from, jt, jf); in AssembleJumpTable() [all …]
|
D | codegen.h | 73 Node MakeInstruction(uint16_t code,
|
D | codegen.cc | 64 CodeGen::Node CodeGen::MakeInstruction(uint16_t code, in MakeInstruction() function in sandbox::CodeGen
|