随笔分类 -  linux kernel

摘要:spinlock、mutex lock 应用场景 linux内核同步机制spinlock、mutex lock,分别用在什么场景 mutex lock 是睡眠锁,在等待锁时进程进入睡眠状态,在锁被释放后,内核唤醒等待的进程运行; spinlock 是不睡眠,一直轮询等待; 使用spinlock,临界 阅读全文
posted @ 2024-04-09 19:18 王阳开 阅读(89) 评论(0) 推荐(0) 编辑
摘要:linux kernel modify printk buf size linux内核配置log缓存大小 configure CONFIG_LOG_BUF_SHIFT modify code: wyk@ubuntu:~/soc/linux$ git diff kernel/printk/printk 阅读全文
posted @ 2023-12-14 18:09 王阳开 阅读(30) 评论(0) 推荐(0) 编辑
摘要:linux /proc/meminfo reference: https://blog.csdn.net/JustDoIt_201603/article/details/106629059 阅读全文
posted @ 2023-11-28 15:24 王阳开 阅读(4) 评论(0) 推荐(0) 编辑
摘要:linux print_hex_dump() linux/lib/hexdump.c /** * print_hex_dump - print a text hex dump to syslog for a binary blob of data * @level: kernel log level 阅读全文
posted @ 2023-11-07 21:04 王阳开 阅读(176) 评论(0) 推荐(0) 编辑
摘要:linux spi spi_sync()执行流程? spi_async()执行流程? spi peripheral driver中,调用spi_sync() 为什么会看到spi* 内核线程会有负载? int spi_sync(struct spi_device *spi, struct spi_me 阅读全文
posted @ 2023-10-13 20:31 王阳开 阅读(141) 评论(0) 推荐(0) 编辑
摘要:linux CMA CMA(Contiguous Memory Allocator)是Linux内核中的一种内存分配器,它的作用是为设备驱动程序和其他需要大块连续内存的组件提供内存分配支持。 reference: linux/Documentation/devicetree/bindings/res 阅读全文
posted @ 2023-10-09 14:33 王阳开 阅读(268) 评论(0) 推荐(0) 编辑
摘要:# linux gpio regulator reference: linux/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml ``` module_vdd: regulator-vdd { compatible = 阅读全文
posted @ 2023-08-25 11:23 王阳开 阅读(42) 评论(0) 推荐(0) 编辑
摘要:linux time subsystem linux 时间子系统 reference: 从硬件到软件,Linux 时间子系统全栈解析 https://kernel.meizu.com/2023/12/13/Full-stack-resolution-of-the-Linux-time-subsyst 阅读全文
posted @ 2023-06-07 19:21 王阳开 阅读(21) 评论(0) 推荐(0) 编辑
摘要:# pstore refernece [Linux pstore 实现自动“抓捕”内核崩溃日志](https://blog.csdn.net/21cnbao/article/details/106678646?ops_request_misc=&request_id=b7629579effa48a5 阅读全文
posted @ 2023-06-06 19:54 王阳开 阅读(88) 评论(0) 推荐(0) 编辑
摘要:# arm linux新增加一个系统调用 reference: [在ARM Linux内核中增加一个新的系统调用](https://blog.csdn.net/21cnbao/article/details/51295955?spm=1001.2014.3001.5502) 阅读全文
posted @ 2023-06-02 17:43 王阳开 阅读(34) 评论(0) 推荐(0) 编辑
摘要:linux Kernel Build System https://www.kernel.org/doc/html/latest/kbuild/index.html reference: 内核编译相关 https://zhuanlan.zhihu.com/p/362640343 阅读全文
posted @ 2023-05-17 14:44 王阳开 阅读(13) 评论(0) 推荐(0) 编辑
摘要:linux eBPF reference: 《eBPF 核心技术与实战》 BPF内核调试开发坏境的搭建 BPF示例在64位ARM上的调试 Kernel调试追踪技术之 eBPF on ARM64 万字干货,eBPF 经典入门指南 Linux超能力BPF技术介绍及学习分享 eBPF学习 kernel c 阅读全文
posted @ 2023-05-16 16:57 王阳开 阅读(42) 评论(0) 推荐(0) 编辑
摘要:# linux kernel code 阅读全文
posted @ 2023-04-06 11:22 王阳开 阅读(40) 评论(0) 推荐(0) 编辑
摘要:mailbox Linux Kernel编程 Mailbox驱动框架 阅读全文
posted @ 2023-02-15 17:50 王阳开 阅读(101) 评论(0) 推荐(0) 编辑
摘要:linux usb driver reference: https://www.beyondlogic.org/usbnutshell/usb1.shtml Linux USB驱动开发 USB中文网 Linux USB 3.0驱动分析 USB枚举过程 USB原理:从零基础入门到放弃 《Linux驱动 阅读全文
posted @ 2023-02-03 15:50 王阳开 阅读(48) 评论(0) 推荐(0) 编辑
摘要:linux 内核中的上下文判断 linux/include/linux/preempt.h ... /* * Are we doing bottom half or hardware interrupt processing? * * in_irq() - We're in (hard) IRQ c 阅读全文
posted @ 2023-01-11 10:45 王阳开 阅读(102) 评论(0) 推荐(0) 编辑
摘要:kprobes kprobes Kretprobes是linux系统的一个动态调试机制, 使用它可以向内核添加探针(Probe),在代码执行前或执行后触发一个回调函数。 这个机制通常用于调试内核代码,跟踪应用程序执行或收集性能统计信息。 通过使用kprobe,开发人员可以在不影响系统运行逻辑的情况下 阅读全文
posted @ 2022-12-05 11:19 王阳开 阅读(96) 评论(0) 推荐(0) 编辑
摘要:ftrace reference: https://www.cnblogs.com/arnoldlu/p/7211249.html ftrace(三)trace-cmd和kernelshark 使用stacktrace查看函数调用栈 阅读全文
posted @ 2022-08-23 20:33 王阳开 阅读(28) 评论(0) 推荐(0) 编辑
摘要:linux pinctrl reference: https://blog.csdn.net/tanli20090506/article/details/77165538 https://blog.csdn.net/m0_46525308/article/details/114666583 http 阅读全文
posted @ 2022-08-17 17:15 王阳开 阅读(26) 评论(0) 推荐(0) 编辑
摘要:linux dts reference https://www.cnblogs.com/schips/p/linux_driver_device_dts.html debug dts node dts_file { compatible = "dts_file"; file = __FILE__, 阅读全文
posted @ 2022-07-01 11:49 王阳开 阅读(45) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示