# tcprt **Repository Path**: anolis/tcprt ## Basic Information - **Project Name**: tcprt - **Description**: No description available - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 3 - **Created**: 2024-08-15 - **Last Updated**: 2025-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简介 tcprt-bpf是基于 ebpf 实现的细粒度tcp连接监控工具,曾作为内核模块tcp_rt.ko使用,可用于网络状态监控,快速故障定位等。 要求内核为Anolis cloud-kernel 5.10-017及以上。 目录结构如下: - libbpf: 依赖指定版本的libbpf,作为git submodule - src:源码 - kern:内核bpf - user:用户态应用 - tool:日志读取工具tcprtlog - scripts:相关脚本,主要用于构建rpm包 # 编译运行 依赖: - libbpf v1.0.0 - libyaml-devel - elfutils-devel - clang - llvm > 由于依赖的libbpf版本较新,OS版本可能不满足要求,故将libbpf作为submodule加入仓库。 ```shell # 编译 git submodule update --init make # 运行 build/tcprt -L -g /run/bpf-cgroup2/ -b build -c src/user/tcprt.yaml # 停止 build/tcprt -U ``` # 文档 官网文档:https://help.aliyun.com/zh/alinux/user-guide/tcp-rt-configurations # 开源许可 本软件采用 Mulan PSL v2 许可协议。