摘要: ftrace简述 ftrace是一个Linux下的追踪框架,从kernel version 2.6.27由Steven Rostedt首次引入,用于追踪内核中函数的调用流程、调试和分析系统延迟信息等目的,了解内核中的正在发生的一些细节信息,方便内核开发人员或者系统运维人员快速定位问题。 ftrace 阅读全文
posted @ 2025-05-04 10:12 bug批发零售 阅读(35) 评论(0) 推荐(0)
摘要: pthread_key_create(&key, void (destructor)(void*)); 此函数是为了初始化一个线程私有数据的key,这个key是对所有线程都是共享可用的。 pthread_setspecific 设置线程私有数据 pthread_getspecific 从给定的key 阅读全文
posted @ 2025-04-11 13:53 bug批发零售 阅读(8) 评论(0) 推荐(0)
摘要: 常用的一些man命令: man 7 tcp # 查看tcp协议 man 7 ip # 查看ip协议 man ascii # 查看ascii码 man man # 查看man手册的帮助 man 3p pthread_create # 查看pthread_create函数帮助,POSIX Program 阅读全文
posted @ 2025-04-10 15:05 bug批发零售 阅读(1) 评论(0) 推荐(0)
摘要: 配置界面 关闭不相关的窗格和栏 关闭终端工具实现的语法方案 取消鼠标箭头悬停在tab上时会自动切换到该会话 修改外观显示 快捷键 Key Action Ctrl+Alt+1 Activate the first tab Ctrl+Alt+2 Activate the second tab Ctrl+ 阅读全文
posted @ 2025-02-24 13:48 bug批发零售 阅读(121) 评论(0) 推荐(0)
摘要: 编译icu库 下载icu库的源码包: https://github.com/unicode-org/icu/releases 需要注意75版本之后全部强制使用c++17标准,所以如果项目中如果想用75版本之后的新版本的话就要将项目的C++语言升级到c++17之后 参考编译手册进行编译: https: 阅读全文
posted @ 2025-02-20 14:12 bug批发零售 阅读(211) 评论(0) 推荐(0)
摘要: 偶然发现一个调试bash脚本的工具,使用的方法和gdb差不多: https://bashdb.sourceforge.net/ 使用方法: bashdb scripts_name 还有一个bash工具的合集(世界上最大的bash脚本合集): https://github.com/oils-for-u 阅读全文
posted @ 2024-12-07 14:37 bug批发零售 阅读(20) 评论(0) 推荐(0)
摘要: 当前系统中使用了一个SYS_futex的系统调用,等待有空时研究一下 https://man7.org/linux/man-pages/man2/futex.2.html 阅读全文
posted @ 2024-12-06 21:06 bug批发零售 阅读(6) 评论(0) 推荐(0)
摘要: 向量 typedef int v4si attribute ((vector_size (16))); 将v4si定义为一个4个int的数组,每个元素是4字节,这种方式是为了使用向量计算,以下是一个简单的示例: #include <stdio.h> typedef int v4si __attrib 阅读全文
posted @ 2024-12-06 13:17 bug批发零售 阅读(17) 评论(0) 推荐(0)
摘要: 装饰器的技巧: def task(desc): def decorator(f): TASKS[f.__name__] = desc def wrap(user, *args, **kwargs): return f(*args, **kwargs) return wrap return decor 阅读全文
posted @ 2024-09-29 17:45 bug批发零售 阅读(3) 评论(0) 推荐(0)
摘要: 示例: bash test.sh 组合按键ctrl+Z暂停 bg %1 disown %1 exit 参考: 耗时很长的程序忘加nohup就运行了怎么办? - ipid君的回答 - 知乎 https://www.zhihu.com/question/586298694/answer/29916478 阅读全文
posted @ 2024-08-05 15:58 bug批发零售 阅读(5) 评论(0) 推荐(0)