STAPIN and PinSight: Extending Intel Pin with Source-Level Semantics for AI-Assisted Program Analysis

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.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Software Testing and Debugging Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

STAPIN and PinSight: Extending Intel Pin with Source-Level Semantics for AI-Assisted Program Analysis

Harish Patil, Idan Shalom, Mircea Gherzan, Pablo Sebastian Cabot et al.
arXiv
Software Testing and Debugging Techniques
preprint

STAPIN and PinSight: Extending Intel Pin with Source-Level Semantics for AI-Assisted Program Analysis

Harish Patil, Idan Shalom, Mircea Gherzan, Pablo Sebastian Cabot, Muhammad Mustafa
preprint en

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.

arXiv
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon