上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 81 下一页

2022年12月25日

RT-Mutex-1——内核文档翻译-rt-mutex.rst

摘要: 一、rt-mutex.rst 翻译:kernel-5.10\Documentation\locking\rt-mutex.rst 支持 PI 的 RT-mutex 子系统 具有优先级继承的 RT-mutexes 用于支持 PI-futexes,它启用 pthread_mutex_t 优先级继承属性 阅读全文

posted @ 2022-12-25 15:45 Hello-World3 阅读(319) 评论(0) 推荐(0)

2022年12月24日

RCU-1——内核文档翻译——Tree-RCU-Memory-Ordering.rst

摘要: 翻译:kernel-5.10\Documentation\RCU\Design\Memory-Ordering\Tree-RCU-Memory-Ordering.rst TREE_RCU 的宽限期内存次序之旅 2017 年 8 月 8 日 本文由 Paul E. McKenney 提供 介绍 本文档 阅读全文

posted @ 2022-12-24 15:44 Hello-World3 阅读(390) 评论(0) 推荐(0)

2022年12月23日

RCU-1——内核文档翻译——Expedited-Grace-Periods.rst

摘要: 翻译:kernel-5.10\Documentation\RCU\Design\Expedited-Grace-Periods\Expedited-Grace-Periods.rst 网页位置:https://www.kernel.org/doc/html/v6.0-rc7/RCU/Design/E 阅读全文

posted @ 2022-12-23 15:30 Hello-World3 阅读(768) 评论(0) 推荐(0)

2022年12月22日

RCU-1——内核文档翻译——Data-Structures.rst

摘要: 翻译:kernel-5.10\Documentation\RCU\Design\Data-Structures\Data-Structures.rst =TREE_RCU 数据结构导览 [LWN.net] = 2016 年 12 月 18 日 本文由 Paul E. McKenney 提供 介绍 本 阅读全文

posted @ 2022-12-22 20:59 Hello-World3 阅读(625) 评论(0) 推荐(0)

2022年11月26日

GCC-2——杂项汇总

摘要: 1. __builtin_constant_p 它是GCC的内建函数,用于判断一个值是否为编译时常数,如果参数是常数,函数返回 1,否则返回 0。 #include <stdio.h> #define MAX 10 //built in constant int global = 10; //non 阅读全文

posted @ 2022-11-26 23:20 Hello-World3 阅读(121) 评论(0) 推荐(0)

2022年11月23日

ebpf-5——打印java栈回溯

摘要: 1. 使用举例 root@localhost:/# export BCC_PERF_UNWIND=1 BCC_DBGSYMS=1 root@localhost:/# bpftrace -e 'u:/system/framework/arm64/boot-framework.oat:android.a 阅读全文

posted @ 2022-11-23 14:38 Hello-World3 阅读(593) 评论(0) 推荐(0)

2022年11月16日

Futex-3—Noraml Futex驱动分析

摘要: 基于 Linux-5.15,下文中进程和线程同指向。 一、Noraml Futex驱动简介 futex驱动提供一种内核阻塞用户空间进程的机制。futex系统调用提供了三种配对的调用接口,满足不同使用场合的,分别为 noraml futex,pi-futex,requeue-pi。本文只讲解 fute 阅读全文

posted @ 2022-11-16 21:37 Hello-World3 阅读(893) 评论(0) 推荐(0)

2022年11月8日

GDB-5——gdb tui在gdb中显示程序源码

摘要: 一、简介 gdb 在调试的时候不能很好的展示源码。gdb 里面可以用 list 命令显示源码,但是 list 命令显示没有代码高亮,也不能一眼定位到正在执行的那行代码在整个代码中的位置。可以使用 gdb 自带的 gdbtui。 二、使用方法 1. 开启gdb tui模式 方法一:使用 gdbtui 阅读全文

posted @ 2022-11-08 11:57 Hello-World3 阅读(1937) 评论(0) 推荐(0)

GDB-4——Android设备中使用GDB调试程序的例子

摘要: 一、一个简单的例子 1. 实验Demo (1) Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= mytest.c LOCAL_MODULE:= mytest LOCAL_C_FLAGS + 阅读全文

posted @ 2022-11-08 11:54 Hello-World3 阅读(680) 评论(0) 推荐(0)

GDB-3——GDB实用调试技巧

摘要: 1. 将 print 显示的字符串或字符数组显示完整 当我们使用 print 命令打印一个字符串或者字符数组时,如果该字符串太长,print 命令默认显示不全的,我们可以通过在 gdb 中输入 set print element 0 设置一下,这样再次使用 print 命令就能完整地显示该变量所有字 阅读全文

posted @ 2022-11-08 11:51 Hello-World3 阅读(997) 评论(0) 推荐(0)

上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 81 下一页

导航