$ show AndroidReverser-Test/Kernel-Trace
This repository provides a kernel module for tracing user-space functions using uprobe, along with a user-space tool to clear uprobes. The kernel module hooks into the mincore system call to set up tracing parameters and function probes. It uses a red-black tree implementation to store function information. The module is designed for Android and has been tested on kernel versions 5.10 and 5.15, with claimed support for 6.x kernels. The user-space tool is a simple executable that invokes the mincore system call to clear all set uprobes.
The LLM identified 1 files worth highlighting for reuse:
A self-contained implementation of a red-black tree for storing key-value pairs. It uses function pointers for memory allocation and tree operations, making it adaptable to different environments (kernel or user space). This component demonstrates non-trivial data structure engineering and can be extracted for use in other projects with minimal modification.