分会场2_张银奎_深挖eBPF的插桩和回调过程_报告PPT.pdf

编号:713419 PDF 42页 956.20KB 下载积分:VIP专享
下载报告请您先登录!

分会场2_张银奎_深挖eBPF的插桩和回调过程_报告PPT.pdf

1、深挖eBPF的插桩和回调过程第三届 eBPF开发者大会w w w.e b p f t r a v e l.c o m中 国 西 安张银奎 软件调试作者2025-4-19第三届 eBPF开发者大会w w w.e b p f t r a v e l.c o m中 国 西 安系统调用修补内核触发回调输出事件调试方法SYSCALL_DEFINE3(bpf,int,cmd,union bpf_attr_user*,uattr,unsigned int,size)geduerulan:$cat HelloYourLand.py#!/usr/bin/pythonfrom bcc import BPFprog

2、=int hello(void*ctx)bpf_trace_printk(Here is YourLand!n);return 0;b=BPF(text=prog)b.attach_kprobe(event=b.get_syscall_fnname(clone),fn_name=hello)#headerprint(%-18s%-16s%-6s%s%(TIME(s),COMM,PID,MESSAGE)while 1:try:(task,pid,cpu,flags,ts,msg)=b.trace_fields()except ValueError:continueprint(%-18.9f%-1

3、6s%-d%s%(ts,task,pid,msg)ggeduerulan:$sudo./HelloYourLand.pysudo password for geduer:TIME(s)COMM PID MESSAGE359.216558000 b 2759 bHere is YourLand!365.169917000 b 2588 bHere is YourLand!365.182842000 b 2812 bHere is YourLand!366.049768000 b 1 bHere is YourLand!366.328557000 bsshd 2588 bHere is YourL

4、and!366.349306000 bsshd 2816 bHere is YourLand!366.355594000 b 2817 bHere is YourLand!366.367741000 b 2819 bHere is YourLand!366.375037000 b 2820 bHere is YourLand!366.391117000 b00-header 2820 bHere is YourLand!366.399792000 b00-header 2820 bHere is YourLand!366.407825000 b00-header 2820 bHere is Y

5、ourLand!366.418288000 brun-parts 2819 bHere is YourLand!366.427935000 brun-parts 2819 bHere is YourLand!366.433061000 brun-parts 2819 bHere is YourLand!366.437419000 b85-fwupd 2827 bHere is YourLand!366.445348000 brun-parts 2819 bHere is YourLand!366.452698000 b90-updates-avai 2829 bHere is YourLand

6、!366.459509000 b90-updates-avai 2829 bHere is YourLand!366.461085000 b90-updates-avai 2829 bHere is YourLand!366.473640000 brun-parts 2819 bHere is YourLand!bpf(BPF_PROG_LOAD,prog_type=BPF_PROG_TYPE_SOCKET_FILTER,insn_cnt=2,insns=0 x7fffca1100,license=GPL,log_level=0,log_size=0,log_buf=NULL,kern_ver

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(分会场2_张银奎_深挖eBPF的插桩和回调过程_报告PPT.pdf)为本站 (科技新城) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠