MCPcopy Create free account
hub / github.com/iovisor/bcc / BPFInstr

Class BPFInstr

tests/python/test_disassembler.py:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11from unittest import main, TestCase
12
13class BPFInstr(ct.Structure):
14 _pack_ = 1
15 _fields_ = [('opcode', ct.c_uint8),
16 ('dst', ct.c_uint8, 4),
17 ('src', ct.c_uint8, 4),
18 ('offset', ct.c_int16),
19 ('imm', ct.c_int32)]
20
21class TestDisassembler(TestCase):
22 opcodes = [(0x04, "%dst += %imm"),

Callers 1

build_instrMethod · 0.70

Calls

no outgoing calls

Tested by 1

build_instrMethod · 0.56