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

Function save_safe_eval_state

dpdk/lib/bpf/bpf_validate.c:2190–2203  ·  view source on GitHub ↗

* add @start state to the list of @safe states. */

Source from the content-addressed store, hash-verified

2188 * add @start state to the list of @safe states.
2189 */
2190static void
2191save_safe_eval_state(struct bpf_verifier *bvf, struct inst_node *node)
2192{
2193 if (node->evst.start == NULL)
2194 return;
2195
2196 SLIST_INSERT_HEAD(&node->evst.safe, node->evst.start, next);
2197 node->evst.nb_safe++;
2198
2199 RTE_BPF_LOG(DEBUG, "%s(bvf=%p,node=%u,state=%p): nb_safe=%u;\n", __func__, bvf, get_node_idx(bvf, node),
2200 node->evst.start, node->evst.nb_safe);
2201
2202 node->evst.start = NULL;
2203}
2204
2205/*
2206 * Save current eval state.

Callers 1

evaluateFunction · 0.85

Calls 1

get_node_idxFunction · 0.85

Tested by

no test coverage detected