(cls, op)
| 119 | |
| 120 | @classmethod |
| 121 | def build_instr(cls, op): |
| 122 | dst = random.randint(0, 0xf) |
| 123 | src = random.randint(0, 0xf) |
| 124 | offset = random.randint(0, 0xffff) |
| 125 | imm = random.randint(0, 0xffffffff) |
| 126 | return BPFInstr(op, dst, src, offset, imm) |
| 127 | |
| 128 | @classmethod |
| 129 | def format_instr(cls, instr, fmt): |