ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

binder学习笔记——binder trace

2022-08-01 23:00:13  阅读:256  来源: 互联网

标签:异步 4128 trace 笔记 binder transaction id


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的发送端和接收端跳转。

 

标签:异步,4128,trace,笔记,binder,transaction,id
来源: https://www.cnblogs.com/hellokitty2/p/16542177.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有