没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Pin TutorialPin Tutorial 2007 1What is Instrumentation?A technique that inserts extra code into a program to collect runtime informationInstrumentation approaches:• Source instrumentation: – Instrument source programs • Binary instrumentation:– Instrument executables directlyPin Tutorial 2007 2 No need to recompile or relink Discover code at runtime Handle dynamically-generated code Attach to running processesWhy use Dynamic Instrumentation?Pin Tutorial 2007 3Advantages of Pin
资源推荐
资源详情
资源评论
Pin Tutorial
Pin Tutorial 2007
1
What is Instrumentation?
A technique that inserts extra code into
a program to collect runtime information
Instrumentation approaches:
• Source instrumentation:
– Instrument source programs
• Binary instrumentation:
– Instrument executables directly
Pin Tutorial 2007
2
No need to recompile or relink
Discover code at runtime
Handle dynamically-generated code
Attach to running processes
Why use Dynamic Instrumentation?
Pin Tutorial 2007
3
Advantages of Pin Instrumentation
Easy-to-use Instrumentation:
• Uses dynamic instrumentation
– Do not need source code, recompilation, post-linking
Programmable Instrumentation:
• Provides rich APIs to write in C/C++ your own
instrumentation tools (called Pintools)
Multiplatform:
• Supports x86, x86-64, Itanium, Xscale
• Supports Linux, Windows, MacOS
Robust:
• Instruments real-life applications: Database, web browsers, …
• Instruments multithreaded applications
• Supports signals
Efficient:
• Applies compiler optimizations on instrumentation code
Pin Tutorial 2007
4
Using Pin
Launch and instrument an application
$ pin –t pintool –- application
Instrumentation engine
(provided in the kit)
Instrumentation tool
(write your own, or use one
provided in the kit)
Attach to and instrument an application
$ pin –t pintool –pid 1234
剩余39页未读,继续阅读
资源评论
weixin_38599412
- 粉丝: 6
- 资源: 930
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功