Enabling Efficient Mobile Tracing with BTrace

Research output: Contribution to book/Conference proceedings/Anthology/ReportConference contributionContributedpeer-review

Contributors

  • Jiawei Wang - , Professor (rtd.) of Operating Systems, Dresden Research Lab Huawei Technologies, Huawei Technologies Co., Ltd. (Author)
  • Nian Liu - , Huawei Technologies Co., Ltd. (Author)
  • Arnau Casadevall-Saiz - , Vrije Universiteit Brussel, Dresden Research Lab Huawei Technologies, Huawei Technologies Co., Ltd. (Author)
  • Yutao Liu - , Dresden Research Lab Huawei Technologies, Huawei Technologies Co., Ltd. (Author)
  • Diogo Behrens - , Dresden Research Lab Huawei Technologies, Huawei Technologies Co., Ltd. (Author)
  • Ming Fu - , Huawei Technologies Co., Ltd. (Author)
  • Ning Jia - , Huawei Technologies Co., Ltd. (Author)
  • Hermann Härtig - , Professor (rtd.) of Operating Systems (Author)
  • Haibo Chen - , Shanghai Jiao Tong University, Huawei Technologies Co., Ltd. (Author)

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.

Details

Original languageEnglish
Title of host publicationProceedings of the 30th ACM International Conference On Architectural Support For Programming Languages And Operating Systems (ASPLOS 2025)
PublisherAssoc Computing Machinery
Pages325-338
Number of pages14
Volume2
ISBN (electronic)979-8-4007-1079-7
Publication statusPublished - 30 Mar 2025
Peer-reviewedYes

Conference

Title30th International Conference on Architectural Support for Programming Languages and Operating Systems
Abbreviated titleASPLOS 2025
Conference number30
Duration30 March - 3 April 2025
Website
LocationPostillion Hotel & Convention Centre WTC Rotterdam
CityRotterdam
CountryNetherlands

External IDs

Scopus 105002579711

Keywords

DFG Classification of Subject Areas according to Review Boards

Subject groups, research areas, subject areas according to Destatis

Keywords

  • mobile, software debugging, tracing