Callsite Trampolines
summary
Compiler extension generates a per-callsite wrapper that creates a small static record (placed in a custom ELF section) and replaces calls with trampoline instantiations so each callsite gets its own counters for bytes and hits. Proof‑of‑concept lives in Clang/“Clank”, compiles kernel code, and supports memory allocation profiling, dynamic fault injection, latency and error‑source tracking with low runtime cost; implementation is functional but needs cleanup, GCC/clang plugin or external transformer is recommended for upstreaming. per-callsite static variables callsite wrapper keyword 39-patch kernel integration
AI-written summary · about
chapters (9)
- 0:00Introduction and motivation
- 7:43Callsite trampolines concept
- 13:20Implementation in Clang
- 21:11Template design choices
- 30:12Alternatives and trade-offs
- 41:01Performance and use cases
- 53:27Tooling and deployment options
- 1:00:14Community feedback and next steps
- 1:07:07Q&A and closing
related talks
18mCompiling countermeasures against fault attacks with “Tracing LLVM”
51mCompile-time tools supporting generic programming in C++
01h 04mCompiler Bugs And Bug Compilers
14mOn-Stack Replacement for Program Generators and Source-to-Source Compilers
01h 04mJust-in-Time Compilation: The Next Big Thing?
22mBeacons: An End-to-End Compiler Framework for Predicting and Utilizing Dynamic ...
40mCompact C Type Format in the GNU Toolchain
14mCollapsing Towers for Side-Channel Security
