HomeSort by relevance Sort by last modified time
    Searched refs:MakeInstruction (Results 1 - 4 of 4) sorted by null

  /external/chromium_org/sandbox/linux/seccomp-bpf/
codegen_unittest.cc 46 return codegen->MakeInstruction(BPF_RET + BPF_K,
56 return codegen->MakeInstruction(
59 codegen->MakeInstruction(BPF_RET + BPF_K, ErrorCode(EPERM)),
60 codegen->MakeInstruction(BPF_RET + BPF_K,
74 Instruction* ret = codegen->MakeInstruction(
76 return codegen->MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, ret, ret);
91 Instruction* insn0 = codegen->MakeInstruction(BPF_LD + BPF_W + BPF_ABS, 42);
97 Instruction* insn1 = codegen->MakeInstruction(BPF_JMP + BPF_JA, 0, insn0);
102 Instruction* insn2 = codegen->MakeInstruction(BPF_RET + BPF_K, ErrorCode(42));
109 Instruction* insn3 = codegen->MakeInstruction(
    [all...]
codegen.h 40 // gen.MakeInstruction(BPF_LD+BPF_W+BPF_ABS,
43 // gen.MakeInstruction(BPF_JMP+BPF_EQ+BPF_K, __NR_getpid,
46 // gen.MakeInstruction(BPF_RET+BPF_K, ErrorCode(ErrorCode::ERR_ALLOWED)));
69 Instruction* MakeInstruction(uint16_t code,
72 Instruction* MakeInstruction(uint16_t code, const ErrorCode& err);
73 Instruction* MakeInstruction(uint16_t code,
79 // parameter had not originally been given in the call to MakeInstruction(),
sandbox_bpf.cc 575 Instruction* head = gen->MakeInstruction(
578 tail = gen->MakeInstruction(
582 gen->MakeInstruction(
606 gen->MakeInstruction(BPF_LD + BPF_W + BPF_ABS, SECCOMP_NR_IDX);
664 Instruction* escape_hatch = gen->MakeInstruction(
667 gen->MakeInstruction(
671 gen->MakeInstruction(
674 gen->MakeInstruction(
678 gen->MakeInstruction(BPF_RET + BPF_K,
694 Instruction* invalidX32 = gen->MakeInstruction(
    [all...]
codegen.cc 140 Instruction* CodeGen::MakeInstruction(uint16_t code,
168 Instruction* CodeGen::MakeInstruction(uint16_t code, const ErrorCode& err) {
176 return MakeInstruction(code, err.err_);
179 Instruction* CodeGen::MakeInstruction(uint16_t code,
632 Instruction* ja = MakeInstruction(BPF_JMP + BPF_JA, 0, last_insn->next);
688 Instruction* ja = MakeInstruction(BPF_JMP + BPF_JA, 0, insn->jt_ptr);
699 Instruction* ja = MakeInstruction(BPF_JMP + BPF_JA, 0, insn->jf_ptr);

Completed in 547 milliseconds