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

Function emit_opcode

dpdk/lib/bpf/bpf_jit_x86.c:220–227  ·  view source on GitHub ↗

* emit OPCODE+REGIDX byte */

Source from the content-addressed store, hash-verified

218 * emit OPCODE+REGIDX byte
219 */
220static void
221emit_opcode(struct bpf_jit_state *st, uint8_t ops, uint32_t reg)
222{
223 uint8_t v;
224
225 v = ops | (reg & 7);
226 emit_bytes(st, &v, sizeof(v));
227}
228
229
230/*

Callers 1

emit_ld_imm64Function · 0.85

Calls 1

emit_bytesFunction · 0.85

Tested by

no test coverage detected