MCPcopy Create free account
hub / github.com/F-Stack/f-stack / eval_defined

Function eval_defined

dpdk/lib/bpf/bpf_validate.c:638–646  ·  view source on GitHub ↗

* check that destination and source operand are in defined state. */

Source from the content-addressed store, hash-verified

636 * check that destination and source operand are in defined state.
637 */
638static const char *
639eval_defined(const struct bpf_reg_val *dst, const struct bpf_reg_val *src)
640{
641 if (dst != NULL && dst->v.type == RTE_BPF_ARG_UNDEF)
642 return "dest reg value is undefined";
643 if (src != NULL && src->v.type == RTE_BPF_ARG_UNDEF)
644 return "src reg value is undefined";
645 return NULL;
646}
647
648static const char *
649eval_alu(struct bpf_verifier *bvf, const struct ebpf_insn *ins)

Callers 4

eval_aluFunction · 0.85
eval_beleFunction · 0.85
eval_storeFunction · 0.85
eval_jccFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected