联合会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客地址:http://home.cnblogs.com/u/zengjianrong/
focus
博客园
首页
新随笔
联系
管理
订阅
随笔- 122 文章- 0 评论- 1 阅读-
75820
[置顶]
内核态发生非法地址访问是否会panic
摘要: https://mp.weixin.qq.com/s?__biz=MzAwMDUwNDgxOA==&mid=2652663676&idx=1&sn=b18ab57322594ebb8e7072e635e8bd1c&chksm=810f29e1b678a0f7238e8a71fd88f14c3c71e
阅读全文
posted @ 2019-08-01 02:02 black_man
阅读(939)
评论(0)
推荐(0)
编辑
2024年5月8日
dpkg常用命令
查看库的源安装包
dpkg -S /usr/lib/libz.so
查看安装包的信息
apt-cache show zlib1g-dev
查看安装包的详细信息
dpkg -L zlib1g-dev
posted @ 2024-05-08 19:46 black_man
阅读(18)
评论(0)
推荐(0)
编辑
2024年5月7日
打印宏定义
摘要: #define PRINT_MACRO_HELPER(x) #x #define PRINT_MACRO(x) #x"="PRINT_MACRO_HELPER(x) #pragma message(PRINT_MACRO(VERSION_NUM)) #if (VERSION_NUM < 202309
阅读全文
posted @ 2024-05-07 11:24 black_man
阅读(31)
评论(0)
推荐(0)
编辑
2024年3月7日
python3升级后的报错
摘要: AttributeError: module ‘collections‘ has no attribute ‘Mapping‘ 将collections替换为collections.abc即可 比如 from collections import Mapping # 替换为 from collect
阅读全文
posted @ 2024-03-07 20:30 black_man
阅读(146)
评论(0)
推荐(0)
编辑
2024年3月5日
google benchmark
摘要: 最小用例:https://github.com/google/benchmark?tab=readme-ov-file#usage 排除干扰:https://github.com/google/benchmark/blob/main/docs/reducing_variance.md 1. benm
阅读全文
posted @ 2024-03-05 15:37 black_man
阅读(71)
评论(0)
推荐(0)
编辑
2023年6月8日
cereal代码阅读有感
摘要: 1. 优雅地实现单例模板,见::cereal::detail::StaticObject; 对比apollo的单例:https://zhuanlan.zhihu.com/p/391151328 2. 静态初始化,见CEREAL_CLASS_VERSION; 3. 静态类对象避免重定义,见::cere
阅读全文
posted @ 2023-06-08 10:52 black_man
阅读(122)
评论(0)
推荐(0)
编辑
2023年5月31日
python常用命令
摘要: 查看安装包版本信息:python3 -m pip freeze 安装:python3 -m pip install xxx 卸载:python3 -m pip uninstall xxx 更新:python3 -m pip install --upgrade pip setuptools wheel
阅读全文
posted @ 2023-05-31 16:14 black_man
阅读(10)
评论(0)
推荐(0)
编辑
2023年5月12日
优先级反转
摘要: 为了解决优先级反转,通常会给锁配置相关属性。 但,当锁的相关线程们,均配置的是CFS+同个nice时,由于vruntime大小差异导致的优先级反转,是否还能通过锁的配置属性生效? PTHREAD_PRIO_PROTECT + pthread_mutex_setprioceiling 此时应该只能通过
阅读全文
posted @ 2023-05-12 11:43 black_man
阅读(23)
评论(0)
推荐(0)
编辑
2023年4月4日
enable_shared_from_this、weak_ptr
摘要: enable_shared_from_this:让类成员函数可获得自身的shared ptr封装,通过shared_from_this/weak_from_this API; 注意:调用shared_from_this的前提是此对象本身就是shared_ptr封装的类型,可通过将构造函数设置为私有、
阅读全文
posted @ 2023-04-04 18:53 black_man
阅读(41)
评论(0)
推荐(0)
编辑
2023年3月29日
编译器/汇编实践工具
摘要: https://godbolt.org/ 可在线编译执行,选择不同体系架构、不同版本的编译器; 可用于简单的验证编译器问题,比如优化选项带来的变化等。 编译加速:cmake UNITY_BUILD https://zhuanlan.zhihu.com/p/146434531
阅读全文
posted @ 2023-03-29 17:47 black_man
阅读(26)
评论(0)
推荐(0)
编辑
2022年12月28日
cmake资料汇总
摘要: CMake梳理依赖关系 梳理依赖关系的方法,通常是在cmake命令中追加参数graphviz,如cmake .. --graphviz=../target_deps_graphviz,用来生成每个目标的依赖dot文件,再结合dot命令,如dot -Tpng -o target.png ./targe
阅读全文
posted @ 2022-12-28 16:27 black_man
阅读(79)
评论(0)
推荐(0)
编辑
下一页
公告
昵称:
black_man
园龄:
12年4个月
粉丝:
5
关注:
17
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
更多链接
我的标签
sip
(1)
netfilter
(1)
nat
(1)
mgcp
(1)
Makefile c
(1)
kernel arp linux mac ip
(1)
dns attack linux c
(1)
conntrack
(1)
arp ip mac linux c
(1)
alg
(1)
更多
随笔分类
architecture(2)
C/C++(14)
life~(4)
linux(23)
plan(2)
RTOS(1)
随笔档案
2024年5月(2)
2024年3月(2)
2023年6月(1)
2023年5月(2)
2023年4月(1)
2023年3月(1)
2022年12月(1)
2022年11月(2)
2022年8月(2)
2022年7月(4)
2022年6月(5)
2022年3月(2)
2022年1月(1)
2021年12月(1)
2021年7月(1)
2021年6月(4)
2021年5月(1)
2021年3月(2)
2021年2月(5)
2021年1月(1)
2020年12月(1)
2020年8月(1)
2020年6月(1)
2020年5月(3)
2020年4月(2)
2020年2月(5)
2020年1月(10)
2019年12月(5)
2019年11月(13)
2019年10月(2)
2019年8月(1)
2019年7月(1)
2019年6月(1)
2019年2月(1)
2019年1月(1)
2018年10月(1)
2018年9月(1)
2018年5月(2)
2017年8月(1)
2017年7月(1)
2017年5月(1)
2017年4月(3)
2016年10月(1)
2015年5月(1)
2015年4月(1)
2015年1月(1)
2014年12月(6)
2014年8月(1)
2014年6月(1)
2013年8月(1)
2013年7月(2)
2013年5月(1)
2013年4月(5)
2013年2月(1)
2012年10月(1)
更多
阅读排行榜
1. 用vscode阅读linux kernel(6691)
2. printf输出二进制(6646)
3. ubuntu升级gcc/g++版本(6284)
4. i2c的读写时序图(5483)
5. docker容器中ubuntu软件源更换(2567)
评论排行榜
1. i2c的读写时序图(1)
推荐排行榜
1. LINUX CFS 调度tick逻辑,即check_preemt_tick解析(1)
2. i2c的读写时序图(1)
最新评论
1. Re:i2c的读写时序图
ack应该是第九个时钟吧
--runningsword
点击右上角即可分享