STAPIN and PinSight: Extending Intel Pin with Source-Level Semantics for AI-Assisted Program Analysis
Harish Patil, Idan Shalom, Pablo Sebastian Cabot, Mircea Gherzan, Muhammad Mustafa
Abstract
Intel Pin is a widely used dynamic binary instrumentation (DBI) framework, but its runtime data is not directly associated with source-level variables, types, or expressions. STAPIN (Symbol Table API for Pin) integrates debugger-derived source semantics with Pin's live execution state, providing Pintools with access to source variables, types, locations, scopes, and expressions during execution. Across 22 SPEC CPU2017 benchmark cases, nearly 20,000 first-use symbol queries completed successfully, with 1.21x geometric-mean overhead relative to Pin-only instrumentation. Query completion does not establish systematic semantic-value correctness, and the overhead includes context transfer and instrumentation lifecycle costs. Optimized-code and multithreaded experiments demonstrate source-aware analysis and requesting-thread association across 24,984 recorded checks. We demonstrate STAPIN through PinSight, an MCP server that enables LLM clients to construct and execute task-specific dynamic analyses. Fixed and agent-generated analyses illustrate selective observation, compiled aggregation, and a multithreaded cross-routine investigation with 33.9 million recorded correlation events. These results demonstrate the feasibility of agent-assisted source-aware instrumentation; comparisons with GDB are limited by differing observation policies and timing boundaries.
Create a lesson
Metadata
- Categories
- cs.PL, cs.SE
- Comments
- 14 pages, 8 figures, 4 tables. Research artifact: https://doi.org/10.5281/zenodo.24290975. Companion repository: https://github.com/hgpatil/PinSight
Related papers
C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof
Shared title terminologycs.PLEunsu Kim, Sukyoung Ryu, Jaemin Hong
A SymPL Program Logic for Geometric Numerical Integrators
Shared title terminologycs.PLVaibhav Mehta, Idhant Gode, Justin Hsu
Urdu-C: A Localized Educational C-Like Compiler with Multi-Backend Code Generation and Program Visualization
Shared title terminologycs.PLSyed Sarib Sultan, Adnan Rashid
Quantum Program Verification Needs a New SAT/SMT Solver
Shared title terminologycs.PLMingsheng Ying
Assessing LLM Program Reasoning through Equivalence Proofs
Shared title terminologycs.PLHaozhi Wang, Anders Miltner, Jocelyn Qiaochu Chen
Vx: A Programming Language for Scalable, Maintainable and Secure Systems
Shared title terminologycs.PLAditya Kumar