ShanghaiTech University Knowledge Management System
bpftime: userspace eBPF Runtime for Uprobe, Syscall and Kernel-User Interactions | |
2023-12-08 | |
状态 | 已发表 |
摘要 | In kernel-centric operations, the uprobe component of eBPF frequently encounters performance bottlenecks, largely attributed to the overheads borne by context switches. Transitioning eBPF operations to user space bypasses these hindrances, thereby optimizing performance. This also enhances configurability and obviates the necessity for root access or privileges for kernel eBPF, subsequently minimizing the kernel attack surface. This paper introduces bpftime, a novel user-space eBPF runtime, which leverages binary rewriting to implement uprobe and syscall hook capabilities. Through bpftime, userspace uprobes achieve a 10x speed enhancement compared to their kernel counterparts without requiring dual context switches. Additionally, this runtime facilitates the programmatic hooking of syscalls within a process, both safely and efficiently. Bpftime can be seamlessly attached to any running process, limiting the need for either a restart or manual recompilation. Our implementation also extends to interprocess eBPF Maps within shared memory, catering to summary aggregation or control plane communication requirements. Compatibility with existing eBPF toolchains such as clang and libbpf is maintained, not only simplifying the development of user-space eBPF without necessitating any modifications but also supporting CO-RE through BTF. Through bpftime, we not only enhance uprobe performance but also extend the versatility and user-friendliness of eBPF runtime in user space, paving the way for more efficient and secure kernel operations. |
DOI | arXiv:2311.07923 |
相关网址 | 查看原文 |
出处 | Arxiv |
WOS记录号 | PPRN:86201008 |
WOS类目 | Computer Science, Software Engineering |
文献类型 | 预印本 |
条目标识符 | https://kms.shanghaitech.edu.cn/handle/2MSLDSTB/381335 |
专题 | 信息科学与技术学院_博士生 |
作者单位 | 1.eunomia bpf Community, Shanghai, Peoples R China 2.eunomia bpf Community, Wuhan, Peoples R China 3.Univ Calif Santa Cruz, Santa Cruz, CA, USA 4.ShanghaiTech Univ, Shanghai, Peoples R China 5.South China Univ Technol, Guangzhou, Guangdong, Peoples R China |
推荐引用方式 GB/T 7714 | Zheng, Yusheng,Yu, Tong,Yang, Yiwei,et al. bpftime: userspace eBPF Runtime for Uprobe, Syscall and Kernel-User Interactions. 2023. |
条目包含的文件 | ||||||
文件名称/大小 | 文献类型 | 版本类型 | 开放类型 | 使用许可 |
修改评论
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。