paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Enabling Efficient Mobile Tracing with BTrace

BTrace:面向移动端的高效追踪
ASPLOS Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22025匹配度 1/10 · 论文聚焦移动端运行时追踪工具的系统优化(缓冲区划分与动态分配),属于系统/运行时领域,与用户关注的静态分析、LLM/Agent、浮点程序分析及贝叶斯程序分析等核心方向均无直接关联。虽有工业部署案例,但主题不匹配。引用 2 inbox
Jiawei Wang, Nian Liu, Arnau Casadevall-Saiz, Yutao Liu, Diogo Behrens, Ming Fu, Ning Jia, Hermann Härtig, Haibo Chen
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:BTrace 将全局缓冲区划分为可动态分配给最繁忙核心的块,兼顾低开销与长连续追踪,提升移动端追踪能力。

随着智能手机系统日益复杂,高效追踪对提升系统稳定性和用户体验至关重要。然而现有追踪工具在手机场景下表现不佳:其分布式设计(每核或每线程缓冲区)虽优先考虑性能,却以较高概率丢失关键线索,这在此前的服务器等场景中尚可容忍,但在手机上严重削弱了追踪的实用性。为此,作者提出 BTrace:它将一个全局缓冲区划分为多个块,并动态分配给需求最大的核心,从而兼得每核缓冲区的性能优势与保持更长时间连续追踪的能力,同时妥善处理核心超订(core oversubscription)与缓冲区调整等智能手机特有需求。BTrace 已在生产环境中部署,相比当前表现最好的追踪器 Linux ftrace,平均可获得 2 倍长的连续追踪,性能提升 20%;借助 BTrace,作者成功定位了多个依赖长时段追踪、现有追踪器难以发现的缺陷。

问题
现有移动端追踪工具采用每核或每线程缓冲区的分布式设计,性能虽好但会以高概率丢失关键追踪线索,难以支撑手机场景下对长连续追踪的需求。
方法
BTrace 将全局缓冲区切分为多个块并动态分配给最繁忙的核心,在保留每核缓冲区性能优势的同时延长连续追踪长度,并额外处理核心超订与缓冲区大小调整等手机特有情形。
评估
BTrace 已在实际生产环境中部署,与 Linux ftrace 对比显示平均可记录 2 倍长的连续追踪且性能提升 20%,并借助其长时段追踪能力发现多个此前难以定位的缺陷。
原文摘要(Abstract)

With the growing complexity of smartphone systems, effective tracing becomes vital for enhancing their stability and optimizing the user experience. Unfortunately, existing tracing tools are inefficient in smartphone scenarios. Their distributed designs (with either per-core or per-thread buffers) prioritize performance but lead to missing crucial clues with high probability. While these problems can be overlooked in previous scenarios (e.g., servers), they drastically limit the usefulness of tracing on smartphones. To enable efficient tracing on smartphones, we propose BTrace: a tracing tool that combines the performance benefits of per-core buffers with the capability of retaining longer continuous traces by partitioning a global buffer into multiple blocks, which are dynamically assigned to the most demanding cores. BTrace further gracefully handles unique requirements of modern smartphones, e.g., core oversubscription and resizing. BTrace has been deployed in production, recording an average of 2x continuous traces compared to the current best-performing tracer (Linux ftrace) and improving performance by 20%. Using BTrace, we successfully identified numerous bugs that require traces of long duration and are challenging to locate with existing tracers.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{WangLCLBFJH025,
  title = {Enabling Efficient Mobile Tracing with BTrace},
  author = {Jiawei Wang and Nian Liu and Arnau Casadevall-Saiz and Yutao Liu and Diogo Behrens and Ming Fu and Ning Jia and Hermann Härtig and Haibo Chen},
  booktitle = {ASPLOS},
  year = {2025},
  doi = {10.1145/3676641.3715994}
}