uc_hook_type

All type of hooks for uc_hook_add() API.

Values

ValueMeaning
INTR1 << 0

/ Hook all interrupt/syscall events

INSN1 << 1

/ Hook a particular instruction - only a very small subset of instructions supported here

CODE1 << 2

/ Hook a range of code

BLOCK1 << 3

/ Hook basic blocks

MEM_READ_UNMAPPED1 << 4

/ Hook for memory read on unmapped memory

MEM_WRITE_UNMAPPED1 << 5

/ Hook for invalid memory write events

MEM_FETCH_UNMAPPED1 << 6

/ Hook for invalid memory fetch for execution events

MEM_READ_PROT1 << 7

/ Hook for memory read on read-protected memory

MEM_WRITE_PROT1 << 8

/ Hook for memory write on write-protected memory

MEM_FETCH_PROT1 << 9

/ Hook for memory fetch on non-executable memory

MEM_READ1 << 10

/ Hook memory read events.

MEM_WRITE1 << 11

/ Hook memory write events.

MEM_FETCH1 << 12

/ Hook memory fetch for execution events

MEM_READ_AFTER1 << 13

/ Hook memory read events, but only successful access. / The callback will be triggered after successful read.

MEM_UNMAPPEDMEM_READ_UNMAPPED + MEM_WRITE_UNMAPPED + MEM_FETCH_UNMAPPED

/ Hook type for all events of unmapped memory access

MEM_PROTMEM_READ_PROT + MEM_WRITE_PROT + MEM_FETCH_PROT

/ Hook type for all events of illegal protected memory access

MEM_READ_INVALIDMEM_READ_PROT + MEM_READ_UNMAPPED

/ Hook type for all events of illegal read memory access

MEM_WRITE_INVALIDMEM_WRITE_PROT + MEM_WRITE_UNMAPPED

/ Hook type for all events of illegal write memory access

MEM_FETCH_INVALIDMEM_FETCH_PROT + MEM_FETCH_UNMAPPED

/ Hook type for all events of illegal fetch memory access

MEM_INVALIDMEM_UNMAPPED + MEM_PROT

/ Hook type for all events of illegal memory access

MEM_VALIDMEM_READ + MEM_WRITE + MEM_FETCH

/ Hook type for all events of valid memory access

Meta