摘要: 基于 eBPF/XDP 的高精度工业协议监控系统设计概述 1. 项目背景与目标 在对实时性要求极高的系统中(如微机保护装置、差动保护自动化控制),底层通信通常摒弃了传统的 TCP/IP 协议栈,直接采用二层(Layer 2)以太网帧传输核心业务数据(如 SV 采样值、GOOSE 报文)。 传统的网络 阅读全文
posted @ 2026-05-23 10:22 BlackSnow 阅读(0) 评论(0) 推荐(0)
摘要: FUN2.h // // Created by Administrator on 2026/3/23. // #ifndef CMD_FUN2_H #define CMD_FUN2_H #include <stdio.h> class FUN2 { public: int testFun2(); } 阅读全文
posted @ 2026-05-19 22:56 BlackSnow 阅读(1) 评论(0) 推荐(0)
摘要: 9.1命令原型 nexti 执行下一行的源代码中的一条汇编指令 9.2 使用样例 查看汇编 (gdb) disassemble Dump of assembler code for function main(int, char**): 0x000055555555543b <+0>: endbr6 阅读全文
posted @ 2026-05-19 22:51 BlackSnow 阅读(2) 评论(0) 推荐(0)
摘要: 8.1 run 命令含义 run [arglist] 运行您的程序(如果指定了arglist,则将arglist作为参数运行程序) 8.2 关于程序的入参 wangguangbo@DESKTOP-O5D0MDL:/mnt/d/CMD$ gdb -q --args ./cmd 123 abc "1 b 阅读全文
posted @ 2026-05-19 22:51 BlackSnow 阅读(2) 评论(0) 推荐(0)
摘要: 7.1 disable<断点编号>(禁用断点(保留但不触发)) (gdb) disable 6 (gdb) i b Num Type Disp Enb Address What 4 breakpoint keep y 0x0000555555555458 in main(int, char**) a 阅读全文
posted @ 2026-05-19 22:50 BlackSnow 阅读(3) 评论(0) 推荐(0)
摘要: 6.1 delete<断点编号>(删除指定断点) (gdb) i b Num Type Disp Enb Address What 1 breakpoint keep y 0x0000000000001597 in main(int, char**) at main.cpp:46 2 breakpo 阅读全文
posted @ 2026-05-19 22:48 BlackSnow 阅读(2) 评论(0) 推荐(0)
摘要: 5.1 info breakpoints(查看所有断点信息) (gdb) i b Num Type Disp Enb Address What 4 breakpoint keep y 0x0000555555555458 in main(int, char**) at main.cpp:36 5 b 阅读全文
posted @ 2026-05-19 22:48 BlackSnow 阅读(2) 评论(0) 推荐(0)
摘要: 4.1 rb<模糊函数名> (gdb) rb testFun Breakpoint 1 at 0x1aa8: file FUN2.cpp, line 8. int FUN2::testFun2(); Breakpoint 2 at 0x17ac: file main.cpp, line 12. vo 阅读全文
posted @ 2026-05-19 22:47 BlackSnow 阅读(0) 评论(0) 推荐(0)
摘要: 启动 execsnoop 非常简单,但需要记住一个核心前提:必须以 root 权限运行(因为 eBPF 程序需要加载到内核中)。 由于您使用的是通过 dnf 安装的 bcc-tools,这些脚本通常存放在 /usr/share/bcc/tools/ 目录下。以下是具体的启动步骤和常用技巧: 1. 默 阅读全文
posted @ 2026-05-17 21:37 BlackSnow 阅读(6) 评论(0) 推荐(0)
摘要: 安装 execsnoop 本质上就是安装 BCC 工具包。以下是具体的安装方法: 1. 使用 DNF 安装 (CentOS 8+, RHEL, Fedora) 这是最标准且快捷的方法。打开终端并执行以下命令: sudo dnf install -y bcc-tools 如何运行: 通过这种方式安装后 阅读全文
posted @ 2026-05-17 21:17 BlackSnow 阅读(4) 评论(0) 推荐(0)