OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MakeInstruction
(Results
1 - 4
of
4
) sorted by null
/external/chromium_org/sandbox/linux/seccomp-bpf/
codegen_unittest.cc
48
return codegen->
MakeInstruction
(BPF_RET+BPF_K,
58
return codegen->
MakeInstruction
(BPF_JMP+BPF_JEQ+BPF_K, 42,
59
codegen->
MakeInstruction
(BPF_RET+BPF_K,
61
codegen->
MakeInstruction
(BPF_RET+BPF_K,
76
codegen->
MakeInstruction
(BPF_RET+BPF_K,
78
return codegen->
MakeInstruction
(BPF_JMP+BPF_JEQ+BPF_K, 42, ret, ret);
93
Instruction *insn0 = codegen->
MakeInstruction
(BPF_LD+BPF_W+BPF_ABS, 42);
99
Instruction *insn1 = codegen->
MakeInstruction
(BPF_JMP+BPF_JA, 0, insn0);
104
Instruction *insn2 = codegen->
MakeInstruction
(BPF_RET+BPF_K, ErrorCode(42));
111
Instruction *insn3 = codegen->
MakeInstruction
(BPF_LD+BPF_W+BPF_ABS, 42
[
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, uint32_t k,
71
Instruction *
MakeInstruction
(uint16_t code, const ErrorCode& err);
72
Instruction *
MakeInstruction
(uint16_t code, uint32_t k,
76
// parameter had not originally been given in the call to
MakeInstruction
(),
sandbox_bpf.cc
546
gen->
MakeInstruction
(BPF_LD+BPF_W+BPF_ABS, SECCOMP_ARCH_IDX,
548
gen->
MakeInstruction
(BPF_JMP+BPF_JEQ+BPF_K, SECCOMP_ARCH,
550
gen->
MakeInstruction
(BPF_RET+BPF_K,
573
gen->
MakeInstruction
(BPF_LD+BPF_W+BPF_ABS, SECCOMP_NR_IDX);
631
gen->
MakeInstruction
(BPF_LD+BPF_W+BPF_ABS, SECCOMP_IP_LSB_IDX,
632
gen->
MakeInstruction
(BPF_JMP+BPF_JEQ+BPF_K, low,
634
gen->
MakeInstruction
(BPF_LD+BPF_W+BPF_ABS, SECCOMP_IP_MSB_IDX,
635
gen->
MakeInstruction
(BPF_JMP+BPF_JEQ+BPF_K, hi,
637
gen->
MakeInstruction
(BPF_RET+BPF_K, ErrorCode(ErrorCode::ERR_ALLOWED)),
653
gen->
MakeInstruction
(BPF_RET+BPF_K
[
all
...]
codegen.cc
136
Instruction *CodeGen::
MakeInstruction
(uint16_t code, uint32_t k,
162
Instruction *CodeGen::
MakeInstruction
(uint16_t code, const ErrorCode& err) {
170
return
MakeInstruction
(code, err.err_);
173
Instruction *CodeGen::
MakeInstruction
(uint16_t code, uint32_t k,
601
Instruction *ja =
MakeInstruction
(BPF_JMP+BPF_JA, 0, last_insn->next);
658
Instruction *ja =
MakeInstruction
(BPF_JMP+BPF_JA, 0, insn->jt_ptr);
669
Instruction *ja =
MakeInstruction
(BPF_JMP+BPF_JA, 0, insn->jf_ptr);
Completed in 34 milliseconds