v4
2026-10-23
MAP 分配标签选择性追踪 · v4
为内存分配分析新增分配/释放 tracepoint,并用 IOCTL 控制追踪状态及过滤查询。
原始补丁链接
子 Patch(4)
1/4
alloc_tag: Add trace events for tracing allocations
The memory allocation profiling framework intercepts allocations across the core subsystems, but currently lacks runtime tracing hooks for standard observability tools to dynamically track the context
2/4
alloc_tag: Introduce IOCTLs to toggle allocation tracepoints
Introduce a new IOCTL (ALLOCINFO_IOC_TOGGLE_TRACE) to selectively toggle tracing on allocation call sites. Userspace tools can use the existing filtering mechanism to specify the set of tags to togg
3/4
alloc_tag: Extend allocinfo_filter to support tracing queries
Extend the allocinfo filtering mechanism to allow users to filter tags based on their trace state. Signed-off-by: Abhishek Bapat abhishekbapat@google.com Acked-by: Suren Baghdasaryan <surenb@google
4/4
alloc_tag: Add a test for trace state toggle and filtering
Following the introduction of the ALLOCINFO_IOC_TOGGLE_TRACE IOCTL and ALLOCINFO_FILTER_MASK_TRACE_ON filters for selective memory allocation tracing, update the kselftests to validate this behaviour.