|
KittyMemoryEx 1.0.0
Dedicated library for runtime code patching, memory scanning, tracing, injection and some more useful memory utilities. works for both Android and Linux
|
Class to manage trap signaling hardware watchpoins. More...
#include <KittyPerfEvent.hpp>


Public Member Functions | |
| bool | add (pid_t tid, uintptr_t addr, KT_WATCH_TYPE bp_type, KT_WATCH_LEN bp_len) |
| Adds a new trap signaling hardware watchpoint to the watch list. | |
| Public Member Functions inherited from KittyPerfWatch | |
| bool | add (pid_t tid, uintptr_t addr, KT_WATCH_TYPE bp_type, KT_WATCH_LEN bp_len) |
| Adds a new hardware watchpoint to the watch list. | |
| void | poll (int timeout_ms, const std::function< bool(const KittyPerfSample &)> &cb) |
| Polls the watch list for new samples. | |
| void | clear () |
| Clears all watchpoints from the watch list. | |
Additional Inherited Members | |
| Protected Member Functions inherited from KittyPerfWatch | |
| bool | enable () |
| bool | disable () |
| void | consumeRecord (const WatchInfo &w, KittyPerfSample *out) |
| void | pollOnce (int timeout_ms, KittyPerfSample *out) |
| Static Protected Member Functions inherited from KittyPerfWatch | |
| static int | perf_event_open (struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) |
| Protected Attributes inherited from KittyPerfWatch | |
| std::vector< WatchInfo > | _watches |
Class to manage trap signaling hardware watchpoins.
| bool KittyPerfTrap::add | ( | pid_t | tid, |
| uintptr_t | addr, | ||
| KT_WATCH_TYPE | bp_type, | ||
| KT_WATCH_LEN | bp_len ) |
Adds a new trap signaling hardware watchpoint to the watch list.
| tid | The thread ID to attach the watchpoint to. |
| addr | The address to watch. |
| bp_type | The type of watchpoint (read, write, or read/write). |
| bp_len | The length of the watchpoint in bytes. |