LoadImm emits `dst = (size)value`. As of kernel 4.20, only DWord size is accepted.
(dst Register, value int64, size Size)
| 226 | // |
| 227 | // As of kernel 4.20, only DWord size is accepted. |
| 228 | func LoadImm(dst Register, value int64, size Size) Instruction { |
| 229 | return Instruction{ |
| 230 | OpCode: LoadImmOp(size), |
| 231 | Dst: dst, |
| 232 | Constant: value, |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | // LoadMapPtr stores a pointer to a map in dst. |
| 237 | func LoadMapPtr(dst Register, fd int) Instruction { |
searching dependent graphs…