摘要: # apt 相关命令 ```shell # 查找包 apt-cache search gcc ``` 阅读全文
posted @ 2023-08-16 22:49 chumoath 阅读(3) 评论(0) 推荐(0)
摘要: # cmake 生成模块依赖图片 ```shell # CMKAE_SOURCE_DIR 目录 / 其他有 CMakeLists.txt 的目录 cmake --graphviz=dp.dot . sudo apt install graphviz dot -Tpng -odp.png -Gdpi= 阅读全文
posted @ 2023-08-16 22:32 chumoath 阅读(353) 评论(0) 推荐(0)
摘要: # 内建变量 ```cmake # cmake -S source_dir -B build_dir CMAKE_MINIMUM_REQUIRED(VERSION 3.14) CMAKE_SOURCE_DIR # 顶层 CMakeLists.txt 所在目录 CMAKE_BINARY_DIR # b 阅读全文
posted @ 2023-08-16 22:16 chumoath 阅读(466) 评论(2) 推荐(0)
摘要: # 步骤 1. 将 Makefile 重命名 2. 删除 .idea 3. File -> Invalidate Caches 即可 阅读全文
posted @ 2023-08-16 21:43 chumoath 阅读(183) 评论(0) 推荐(0)
摘要: # 四次挥手 - 原因: TCP inactive 的 四个条件 (双方都要满足) 1. receive fin (inbound end) 2. send fin (outbound end) 3. fin is acked (the peer receive the fin, otherwise 阅读全文
posted @ 2023-08-16 21:34 chumoath 阅读(11) 评论(0) 推荐(0)
摘要: # CS144 实验注意点 ## TCP implement ### ByteStream - 看测试,通过所有测试即可 - 重要的是 input_ended() 、end_input() 和 eof() 的 区别 - input_ended 是 查看 byte_stream 是否 已经被 写入 e 阅读全文
posted @ 2023-08-16 21:34 chumoath 阅读(71) 评论(0) 推荐(0)
摘要: # cpu struct ```c | satp mmu cpu1 | | | | | satp mmu cpu2 | pa -> RAM | | | | satp mmu cpu3 | ``` # mem layout ## user pagetable ```c trampoline (last 阅读全文
posted @ 2023-08-16 21:34 chumoath 阅读(8) 评论(0) 推荐(0)
摘要: # 挂死调用栈实现 ## dump.c - backtrace 在 libgcc 中实现 ```c #include #include #include #include #include #define STACK_BUFFER 16 int get_data_from_awk(char *cmd 阅读全文
posted @ 2023-08-16 02:35 chumoath 阅读(25) 评论(0) 推荐(0)
摘要: # 修改内核 - 添加 CONFIG_IO_STRICT_DEVMEM=y - /drivers/char/mem.c #ifdef CONFIG_STRICT_DEVMEM # 临时修改 - bootargs 添加 iomem=relaxed strict-devmem=0/relaxed - # 阅读全文
posted @ 2023-08-16 02:31 chumoath 阅读(424) 评论(0) 推荐(0)
摘要: # 各个界面 1. Structure View -> Tool Windows -> Structure / Hierarchy / Debug / Messages / TODO 2. 回退工具按钮 View -> Apperance -> ToolBar / StatusBar / other 阅读全文
posted @ 2023-08-16 02:29 chumoath 阅读(78) 评论(0) 推荐(0)