python测试linux内核,用于Linux内核调试的Python.pdf

PyCon China

Hangzhou 2019

Python for Linux Kernel

Debugging

Feng Li (李枫)

hkli2013@126.com

Oct 19,2019

Agenda

I. Linux Kernel Debugging

 Overview

 eBPF

 Development

II. BCC

 Overview

 Development

III. LISA

 Overview

 Internals

IV. Drgn

 Overview

V. Practice on ARM

 Development Environment

 My Practice

VI. Wrap-up

I. Linux Kernel Debugging

1) Overview

DTrace

 /wiki/DTrace

a comprehensive dynamic tracing framework created by Sun

Microsystems for troubleshooting kernel and application problems

on production systems in real time. Originally developed for Solaris,

it has since been released under the free CDDL in OpenSolaris and

its descendant illumos…

 /technetwork/server-storage/

solaris11/technologies/dtrace-1930301.html

 /en/operating-systems/oracle-linux/

dtrace-guide/

 /dtrace.html

Linux Tracing Landscape

Sanitizers BCC

 a

Source: “Dynamic Probes for Linux”, Masami Hiramatsu, Tracing Summit 2015

 $KERNEL_SRC/Documentation/kbuild/modules.rst

 $KERNEL_SRC/Documentation/trace/events.rst

 $KERNEL_SRC/Documentation/trace/ftrace*.rst

 $KERNEL_SRC/Documentation/kprobes

 $KERNEL_SRC/Documentation/trace/kprobetrace.rst

 $KERNEL_SRC/Documentation/trace/uprobetracer.rst

 $KERNEL_SRC/Documentation/trace/tracepoints*.rst

 $KERNEL_SRC/Documentation/trace/features/*.*

Browsing Kernel Code Online

 /

 /torvalds/linux

 /linux/latest/source

2) eBPF

2.1 BPF (Berkeley Packet Filter, aka cBPF)

 /wiki/Berkeley_Packet_Filter

 /papers/bpf-usenix93.pdf

 History

Source: ebpfbasics-190611051559.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值