Hybrid binary rewriting for memory access instrumentation
- đ¤ Speaker: Amitabha Roy (University of Cambridge)
- đ Date & Time: Thursday 05 May 2011, 16:00 - 17:00
- đ Venue: SS03, Computer Laboratory, William Gates Builiding
Abstract
Memory access instrumentation is fundamental to many applications such as software transactional memory systems, profiling tools and race detectors. In this talk I present a technique to efficiently instrument memory accesses in x86 machine code to support software transactional memory and profiling. The two primary options in building such an instrumentation system are static and dynamic binary rewriting: the former instruments binaries at link time before execution, while the latter binary rewriting instruments binaries at runtime. Static binary rewriting offers extremely low overhead but is hampered by the limits of static analysis. Dynamic binary rewriting is able to use runtime information but typically incurs higher overhead. In this talk I discuss an alternative: hybrid binary rewriting. Hybrid binary rewriting is built around the idea of a persistent instrumentation cache (PIC) that is associated with a binary and contains instrumented code from it. It supports two execution modes when using instrumentation: active and passive modes. In the active execution mode, a dynamic binary rewriting engine (PIN) is used to intercept execution, and generate instrumentation into the PIC , which is an on-disk file. This execution mode can take full advantage of runtime information. Later, passive execution can be used where instrumented code is executed out of the PIC and uninstrumented code directly from the native binary, leading to overheads similar to that of static binary rewriting.
Series This talk is part of the Computer Laboratory Systems Research Group Seminar series.
Included in Lists
- All Talks (aka the CURE list)
- bld31
- Cambridge Centre for Data-Driven Discovery (C2D3)
- Cambridge talks
- Chris Davis' list
- CL's SRG seminar
- Computer Laboratory Systems Research Group Seminar
- Department of Computer Science and Technology talks and seminars
- Interested Talks
- ndk22's list
- ob366-ai4er
- rp587
- School of Technology
- SS03, Computer Laboratory, William Gates Builiding
- SS03 of the Computer Lab
- Trust & Technology Initiative - interesting events
- yk449
Note: Ex-directory lists are not shown.
![[Talks.cam]](/static/images/talkslogosmall.gif)

Amitabha Roy (University of Cambridge)
Thursday 05 May 2011, 16:00-17:00