binder学习笔记——binder trace
2022/8/1 23:22:45
本文主要是介绍binder学习笔记——binder trace,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
1. 异步binder trace打印
(1) 异步binder发送端显示:
Name binder transaction async Category binder Start time 17s 455ms 421us 82ns Duration 0s Thread surfaceflinger 2731 Process /system/bin/surfaceflinger 1606 User ID 1000 Slice ID 286208 flags 0x11 this is a one-way call: async, no return; allow replies with file descriptors; code 0x01 Java Layer Dependent transaction id 7414482 destination node 56653 destination process 3713 reply transaction? false calling tid 2731 type internal_slice depth 0 stack_id 8598901110785906 parent_stack_id 0 parent_id null arg_set_id 373693
(2) 异步binder接收端显示:
Name binder async rcv Category binder Start time 17s 483ms 700us 666ns Duration 0s Thread binder:4128_3 4209 Process com.android.launcher 4128 User ID 10178 Slice ID 288578 flags 0x11 this is a one-way call: async, no return; allow replies with file descriptors; code 0x01 Java Layer Dependent transaction id 7414483 destination node 36400 destination process 4128 reply transaction? false calling tid 2731 type internal_slice depth 0 stack_id 1717227819666250 parent_stack_id 0 parent_id null arg_set_id 373985
(3) 根据 "transaction id 7414483" 找到对应trace:
surfaceflinger-2731 ( 1606) [000] .... 69136.712199: binder_transaction: transaction=7414483 dest_node=36400 dest_proc=4128 dest_thread=0 reply=0 flags=0x11 code=0x1 binder:4128_3-4209 ( 4128) [005] .... 69136.740323: binder_transaction_received: transaction=7414483
(4) trace代码位置
binder_transaction trace_binder_transaction(reply, t, target_node); //运行在异步binder发送端进程上下文 binder_thread_read trace_binder_transaction_received(t); //运行在异步binder接收端进程上下文
(5) 按"{" "}" 键在异步binder的发送端和接收端跳转。
这篇关于binder学习笔记——binder trace的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-01巧用 TiCDC Syncpoint 构建银行实时交易和准实时计算一体化架构
- 2024-05-01银行核心背后的落地工程体系丨Oracle - TiDB 数据迁移详解
- 2024-04-26高性能表格工具VTable总体构成-icode9专业技术文章分享
- 2024-04-16软路由代理问题, tg 无法代理问题-icode9专业技术文章分享
- 2024-04-16程序猿用什么锅-icode9专业技术文章分享
- 2024-04-16自建 NAS 的方案-icode9专业技术文章分享
- 2024-04-14ansible 在远程主机上执行脚本,并传入参数-icode9专业技术文章分享
- 2024-04-14ansible 在远程主机上执行脚本,并传入参数, 加上remote_src: yes 配置-icode9专业技术文章分享
- 2024-04-14ansible 检测远程主机的8080端口,如果关闭,则echo 进程已关闭-icode9专业技术文章分享
- 2024-04-14result 成功怎么写-icode9专业技术文章分享