Skip to content

Commit

Permalink
Merge pull request #550 from zhangzihengya/develop
Browse files Browse the repository at this point in the history
更新子仓库,解决uprobe中的模糊匹配问题
  • Loading branch information
chenamy2017 authored Oct 20, 2023
2 parents fd37f08 + c0d1274 commit befb6d7
Show file tree
Hide file tree
Showing 23 changed files with 866,105 additions and 11 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@
[submodule "eBPF_Supermarket/CPU_Subsystem/libbpf_sar/libbpf-bootstrap"]
path = eBPF_Supermarket/CPU_Subsystem/libbpf_sar/libbpf-bootstrap
url = https://github.com/libbpf/libbpf-bootstrap.git
[submodule "eBPF_Supermarket/eBPF_proc_image/blazesym"]
path = eBPF_Supermarket/eBPF_proc_image/blazesym
url = https://github.com/libbpf/blazesym.git
[submodule "eBPF_Supermarket/eBPF_proc_image/bpftool"]
path = eBPF_Supermarket/eBPF_proc_image/bpftool
url = https://github.com/libbpf/bpftool.git
[submodule "eBPF_Supermarket/eBPF_proc_image/libbpf"]
path = eBPF_Supermarket/eBPF_proc_image/libbpf
url = https://github.com/libbpf/libbpf.git
8 changes: 4 additions & 4 deletions eBPF_Supermarket/eBPF_proc_image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
OUTPUT := .output
CLANG ?= clang
LIBBPF_SRC := $(abspath libbpf-bootstrap/libbpf/src)
BPFTOOL_SRC := $(abspath libbpf-bootstrap/bpftool/src)
LIBBPF_SRC := $(abspath libbpf/src)
BPFTOOL_SRC := $(abspath bpftool/src)
LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a)
BPFTOOL_OUTPUT ?= $(abspath $(OUTPUT)/bpftool)
BPFTOOL ?= $(BPFTOOL_OUTPUT)/bootstrap/bpftool
LIBBLAZESYM_SRC := $(abspath libbpf-bootstrap/blazesym/)
LIBBLAZESYM_SRC := $(abspath blazesym/)
LIBBLAZESYM_INC := $(abspath $(LIBBLAZESYM_SRC)/include)
LIBBLAZESYM_OBJ := $(abspath $(OUTPUT)/libblazesym.a)
ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' \
Expand All @@ -34,7 +34,7 @@ ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' \
| sed 's/mips.*/mips/' \
| sed 's/riscv64/riscv/' \
| sed 's/loongarch64/loongarch/')
VMLINUX := libbpf-bootstrap/vmlinux/$(ARCH)/vmlinux.h
VMLINUX := vmlinux/$(ARCH)/vmlinux.h
# Use our own libbpf API headers and Linux UAPI headers distributed with
# libbpf to avoid dependency on system-wide headers, which could be missing or
# outdated
Expand Down
2 changes: 1 addition & 1 deletion eBPF_Supermarket/eBPF_proc_image/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 基于eBPF的Linux系统性能监测工具-进程画像

## 一、项目介绍
## 一、介绍

本项目是一个Linux进程生命周期画像工具,通过该工具可以清晰展示出一个进程从创建到终止的完整生命周期,并可以额外展示出进程/线程持有锁的区间画像、进程/线程上下文切换原因的标注、线程之间依赖关系(线程)、进程关联调用栈信息标注等。在这些功能的前提下,加入了更多的可视化元素和交互方式,使得整个画像更加直观、易于理解。

Expand Down
1 change: 1 addition & 0 deletions eBPF_Supermarket/eBPF_proc_image/blazesym
Submodule blazesym added at 3acba3
1 change: 1 addition & 0 deletions eBPF_Supermarket/eBPF_proc_image/bpftool
Submodule bpftool added at b55f53
1 change: 1 addition & 0 deletions eBPF_Supermarket/eBPF_proc_image/libbpf
Submodule libbpf added at e26b84
1 change: 0 additions & 1 deletion eBPF_Supermarket/eBPF_proc_image/libbpf-bootstrap
Submodule libbpf-bootstrap deleted from 11750e
8 changes: 4 additions & 4 deletions eBPF_Supermarket/eBPF_proc_image/tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
OUTPUT := .output
CLANG ?= clang
LIBBPF_SRC := $(abspath ../libbpf-bootstrap/libbpf/src)
BPFTOOL_SRC := $(abspath ../libbpf-bootstrap/bpftool/src)
LIBBPF_SRC := $(abspath ../libbpf/src)
BPFTOOL_SRC := $(abspath ../bpftool/src)
LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a)
BPFTOOL_OUTPUT ?= $(abspath $(OUTPUT)/bpftool)
BPFTOOL ?= $(BPFTOOL_OUTPUT)/bootstrap/bpftool
LIBBLAZESYM_SRC := $(abspath ../libbpf-bootstrap/blazesym/)
LIBBLAZESYM_SRC := $(abspath ../blazesym/)
LIBBLAZESYM_INC := $(abspath $(LIBBLAZESYM_SRC)/include)
LIBBLAZESYM_OBJ := $(abspath $(OUTPUT)/libblazesym.a)
ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' \
Expand All @@ -34,7 +34,7 @@ ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' \
| sed 's/mips.*/mips/' \
| sed 's/riscv64/riscv/' \
| sed 's/loongarch64/loongarch/')
VMLINUX := ../libbpf-bootstrap/vmlinux/$(ARCH)/vmlinux.h
VMLINUX := ../vmlinux/$(ARCH)/vmlinux.h
# Use our own libbpf API headers and Linux UAPI headers distributed with
# libbpf to avoid dependency on system-wide headers, which could be missing or
# outdated
Expand Down
2 changes: 1 addition & 1 deletion eBPF_Supermarket/eBPF_proc_image/tools/keytime_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static void handle_event(void *ctx, int cpu, void *data, __u32 data_sz)
printf("%-15llu %-15s %-16s %-6d %-6d %-15.3lf %-3d ", e->exit, c, e->comm, e->pid, e->ppid, time, e->retval);
}else if(e->start==0 && e->exit!=0){
printf("%-15llu %-15s %-16s %-6d %-6d %-15s %-3d \\\n", e->exit, c, e->comm, e->pid, e->ppid, miss, e->retval);
return 0;
return;
}else{
printf("%-15llu %-15s %-16s %-6d %-6d %-15s %-3s ", e->start, c, e->comm, e->pid, e->ppid, pad, pad);
}
Expand Down
1 change: 1 addition & 0 deletions eBPF_Supermarket/eBPF_proc_image/vmlinux/arm/vmlinux.h
Loading

0 comments on commit befb6d7

Please sign in to comment.