摘要: 原文链接: Performance Speed Limits How fast can it go? Sometimes you just want to know how fast your code can go, without benchmarking it. Sometimes you h 阅读全文
posted @ 2023-10-04 01:19 LiYanbin 阅读(7) 评论(0) 推荐(0) 编辑
摘要: https://github.com/lattera/glibc/blob/master/sysdeps/posix/libc_fatal.c: 阅读全文
posted @ 2023-08-18 15:41 LiYanbin 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 64位 typedef struct mem_list* cns_detail_encode_result[encode_type_max]; (gdb) p &(( struct mem_list**)0x7fffb4557950)[0] # & 取对应点的位置 $29 = ( struct me 阅读全文
posted @ 2023-08-12 11:04 LiYanbin 阅读(4) 评论(0) 推荐(0) 编辑
摘要: centos7 gcc 4.8.5 服务器安装libasan libasan-static +# C_FLAGS += -fsanitize=address -fno-omit-frame-pointer +# LDFLAGS += -lasan + +# self.asan_cflags = " 阅读全文
posted @ 2023-08-10 11:34 LiYanbin 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 转载:https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/proc_connecting-to-a-wifi-network 阅读全文
posted @ 2023-08-05 13:10 LiYanbin 阅读(38) 评论(0) 推荐(0) 编辑
摘要: > typdef定义数组后的初始化 | 计算机内部只知晓地址,类型为上层的高级语义 ```c #include typedef int ARR_INT_2[2]; void test(ARR_INT_2 *t) { int *t1; int *t2; t1 = &(((int*)t)[0]); t2 阅读全文
posted @ 2023-07-23 18:03 LiYanbin 阅读(9) 评论(0) 推荐(0) 编辑
摘要: ```python import sys import traceback def print_traceback(): '打印通常的回溯信息,且附有每帧中的局部变量的列表' tb=sys.exc_info()[2] #返回当前异常的(type,value,traceback) while tb.t 阅读全文
posted @ 2023-07-13 11:11 LiYanbin 阅读(81) 评论(0) 推荐(0) 编辑
摘要: # PYTHON随笔-logging ``` import logging from logging.handlers import RotatingFileHandler gLogFile = '/home/mcs/log/dbm_py.log' LOG_FORMAT = "%(asctime)s 阅读全文
posted @ 2023-07-13 09:21 LiYanbin 阅读(10) 评论(0) 推荐(0) 编辑
摘要: https://forums.virtualbox.org/viewtopic.php?t=107853 阅读全文
posted @ 2023-06-20 00:47 LiYanbin 阅读(56) 评论(0) 推荐(0) 编辑
摘要: SHELL-TIPS 使用sed修改配置值 tag="888";sed -e "s/reinv_t_tag=.*/reinv_t_tag=$tag/g" custom.config shell 获取本地打开的端口的pid netstat -tlpn | awk -v port="80" '$4 ~ 阅读全文
posted @ 2023-06-19 11:06 LiYanbin 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://mp.weixin.qq.com/s/T1BmaP2-XbJIpLNsFxKeEQ 0. 背景介绍 我们手里这块RK3399开发板出厂时带的是2017.09版本的U-Boot。 U-Boot 2017.09 (Sep 26 2021 - 08:53:15 +0000) Mo 阅读全文
posted @ 2023-06-17 21:59 LiYanbin 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/maybeYoc/article/details/122937844 文章目录 1 概述 2 armv8 u-boot的启动 3 u-boot源码整体结构和一些编译配置方式 3.1 编译配置方式 3.2 u-boot源码结构 4 u-boot a 阅读全文
posted @ 2023-06-01 22:37 LiYanbin 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://mp.weixin.qq.com/s/qqxDObNs8vjTFLQueX1J-A 哈喽,我是老吴。 非常怀念写文章的感觉。 昨晚复习了一些 Linux 驱动的基础知识,给大家分享一下吧。 先说结论: 多年来,我接触到的 Linux 驱动教程大多都是从 0 编写,这样对初学 阅读全文
posted @ 2023-05-30 11:04 LiYanbin 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/u012489236/article/details/127954817 上一章我们学习了,kprobe 可以实现动态内核的注入,基于中断的方法在任意指令中插入追踪代码,并且通过 pre_handler/post_handler去接收回调。另一个 阅读全文
posted @ 2023-05-29 17:04 LiYanbin 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/u012489236/article/details/127942216 Linux krpobe调试技术是内核开发者专门为了编译跟踪内核函数执行状态所涉及的一种轻量级内核调试技术,利用kprobe技术,内核开发人员可以在内核的绝大多数指定函数中 阅读全文
posted @ 2023-05-29 17:00 LiYanbin 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/u012489236/article/details/127838701 学习完了ftrace的function的基本功能,其作用主要是用来跟踪特定内核函数调用的频次,对于内核,特别是初学者,对于函数的调用关系不清晰,并且内核中有很多函数指针,会 阅读全文
posted @ 2023-05-29 16:51 LiYanbin 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/u012489236/article/details/127814059 前面我们学习了ftrace的一些基本概念和用法,本章开始我们深入学习ftrace提供了哪些机制,根据之前的学习,我们知道了ftrace可用来快速排查以下问题 特定的内核函数 阅读全文
posted @ 2023-05-29 16:47 LiYanbin 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/u012489236/article/details/119519361 Ftrace设计作为一个内部的tracer提供给系统的开发者和设计者,帮助他们弄清kernel正在发生的行为,它能够调式分析延迟和性能问题。对于前一章节,我们学习了Ftra 阅读全文
posted @ 2023-05-29 16:44 LiYanbin 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/u012489236/article/details/119494200 对于ftrace架构,主要来了解下内核是如何实现的,其主要包括如下内容: ring buffer的原理和代码分析 tracer(function、function_grap 阅读全文
posted @ 2023-05-29 16:38 LiYanbin 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/u012489236/article/details/119427091 我们做内核开发的时候,我们经常要去跟踪linux内核的函数调用关系,对于我们来说ftrace是一个十分好用的工具,值得我们好好学习。ftrace不只是一个函数跟踪工具,它的 阅读全文
posted @ 2023-05-29 16:32 LiYanbin 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/zhuwade/article/details/121944736 由于我们公司自己需要开发烧录工具,本人通过google搜相关文档和看ARM公司的技术文档,终于实现了这个功能。因为涉及的内容知识点比较多,对于玩嵌入式MCU的小白来说要普及的知识 阅读全文
posted @ 2023-05-28 16:29 LiYanbin 阅读(592) 评论(0) 推荐(0) 编辑