Home
last modified time | relevance | path

Searched refs:argidx (Results 1 – 4 of 4) sorted by relevance

/external/minijail/
Dbpf.c45 size_t bpf_load_arg(struct sock_filter *filter, int argidx) in bpf_load_arg() argument
47 set_bpf_stmt(filter, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg()
51 size_t bpf_load_arg(struct sock_filter *filter, int argidx) in bpf_load_arg() argument
54 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg()
56 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in bpf_load_arg()
136 size_t bpf_arg_comp(struct sock_filter **pfilter, int op, int argidx, in bpf_arg_comp() argument
147 curr_block += bpf_load_arg(curr_block, argidx); in bpf_arg_comp()
Dbpf.h176 size_t bpf_load_arg(struct sock_filter *filter, int argidx);
189 int op, int argidx, unsigned long c, unsigned int label_id);
Dsyscall_filter_unittest.cc108 const int argidx = 1; in TEST() local
109 size_t len = bpf_load_arg(load_arg, argidx); in TEST()
114 EXPECT_EQ_STMT(&load_arg[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
116 EXPECT_EQ_STMT(&load_arg[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
118 EXPECT_EQ_STMT(&load_arg[2], BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in TEST()
185 const int argidx = 1; in TEST() local
189 size_t len = bpf_arg_comp(&arg_comp, op, argidx, c, label_id); in TEST()
194 EXPECT_EQ_STMT(&arg_comp[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
198 EXPECT_EQ_STMT(&arg_comp[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST()
200 EXPECT_EQ_STMT(&arg_comp[2], BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in TEST()
Dsyscall_filter.c208 long int argidx = strtol(argidx_str + 3, &argidx_ptr, 10); in compile_atom() local
247 size_t len = bpf_arg_comp(&comp_block, op, argidx, c, id); in compile_atom()