摘要:
# 参考 - https://www.cnblogs.com/pengdonglin137/p/6431234.html - https://github.com/kvmtool/kvmtool - [KVM-api学习--基于kvmtool](https://zhuanlan.zhihu.com/
阅读全文
posted @ 2023-08-14 17:51
dolinux
阅读(153)
推荐(0)
摘要:
# 背景 在工作过程中,我们经常会遇到可执行程序依赖的glibc跟当前运行环境的版本不兼容,导致应用程序无法运行,比如: /lib64/libc.so.6: version `GLIBC_2.14’ not found 原因是运行环境的glibc的版本比编译环境的glibc的版本低。 # 几种可行的
阅读全文
posted @ 2023-08-11 16:13
dolinux
阅读(4459)
推荐(1)
摘要:
# 参考 - [基于rootfs构建Docker镜像](https://blog.csdn.net/xie__peng/article/details/129364707 "基于rootfs构建Docker镜像") - [将rootfs.tar.gz制作成docker image](https://
阅读全文
posted @ 2023-08-11 15:25
dolinux
阅读(538)
推荐(0)
摘要:
前些天从淘宝上买了一台不知道几手的dell T620塔式服务器,主要用来瞎折腾,下面记录一些使用经验。 T620 PowerEdge T620 Dell PowerEdge T620 Systems Owner's Manual Technical Guide dell技术支持 https://ww
阅读全文
posted @ 2023-08-10 16:07
dolinux
阅读(383)
推荐(0)
摘要:
# 作者 pengdonglin137@163.com # 背景 开发过程中,有时需要读取内核中某个变量的值,比如我想获取下面这个变量的内容: ```c const char linux_banner[] = "Linux version " UTS_RELEASE " (" LINUX_COMPI
阅读全文
posted @ 2023-08-07 14:08
dolinux
阅读(197)
推荐(0)
摘要:
# 需求 有一个笔记本电脑和一个支持HDMI输出的机顶盒,希望机顶盒的内容输出到笔记本的屏幕上。 # 硬件 hdmi转usb的视频采集卡。 - [绿联视频采集卡](https://detail.tmall.com/item.htm?abbucket=16&id=652906743661 "绿联视频采
阅读全文
posted @ 2023-07-27 11:23
dolinux
阅读(283)
推荐(0)
摘要:
# 背景 在工作中我们经常需要交叉编译一些可执行程序或者动态库,有时要编译的程序过于复杂,如果靠纯的交叉编译,费事又费力,需要解决大量的编译依赖以及报错。 # 解决方案 docker + qemu-user 利用qemu-user可以运行不同架构的用户态程序,而docker可以创建一个运行不同架构的
阅读全文
posted @ 2023-07-27 09:17
dolinux
阅读(2116)
推荐(0)
摘要:
原文:https://www.kernel.org/doc/html/latest/kbuild/modules.html This document describes how to build an out-of-tree kernel module. 1. Introduction "kbui
阅读全文
posted @ 2023-06-30 20:18
dolinux
阅读(1248)
推荐(0)
摘要:
[TOC] # 参考 [https://docs.kernel.org/trace/user_events.html](https://docs.kernel.org/trace/user_events.html) # 测试程序 [samples/user_events/example.c](htt
阅读全文
posted @ 2023-06-11 17:01
dolinux
阅读(198)
推荐(0)
摘要:
# 参考 [Typora修改代码编译器部分的宽度值](https://www.cnblogs.com/sherryyuan/p/16655603.html "Typora修改代码编译器部分的宽度值") # 打开主题文件夹 
推荐(0)
摘要:
在线编辑器 https://markdown.com.cn/ Typora 修改编辑器宽度 SourceInsight 【Source Insight】SI工具栏误触导致的恶心排版错乱问题恢复 为了防止排版弄坏,可以直接把C:\Users\Administrator\Documents\Source
阅读全文
posted @ 2023-06-01 09:46
dolinux
阅读(42)
推荐(0)
摘要:
在内核代码中经常看到下面的用法: /** * copy_to_user_nofault(): safely attempt to write to a user-space location * @dst: address to write to * @src: pointer to the dat
阅读全文
posted @ 2023-04-27 00:04
dolinux
阅读(237)
推荐(0)
posted @ 2023-04-07 18:51
dolinux
阅读(0)
推荐(0)
摘要:
为了学习linux内核,计划陆续将一些内核文档以及LWN上的文章通过chatgpt翻译成中文。 下面是网络上已经存在的一些内核文档翻译项目: LWN 中文翻译 公众号 Linux News搬运工 内核文档 -- 中文翻译 内核文档 RCU What is RCU? – “Read, Copy, Up
阅读全文
posted @ 2023-04-05 15:43
dolinux
阅读(247)
推荐(0)
摘要:
quarantine_size Deprecated, please use quarantine_size_mb. quarantine_size_mb Size (in Mb) of quarantine used to detect use-after-free errors. Lower v
阅读全文
posted @ 2023-03-10 19:28
dolinux
阅读(383)
推荐(0)
摘要:
参考 https://github.com/google/sanitizers/wiki/AddressSanitizer Program Instrumentation Options 工欲善其事必先利其器——AddressSanitizer Linux下内存检测工具:asan ASAN_OPTI
阅读全文
posted @ 2023-03-10 15:26
dolinux
阅读(178)
推荐(0)
摘要:
https://blog.csdn.net/quantum7/article/details/124235800
阅读全文
posted @ 2023-03-01 10:30
dolinux
阅读(63)
推荐(0)
摘要:
include\uapi\asm-generic\errno-base.h #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /
阅读全文
posted @ 2023-02-23 20:59
dolinux
阅读(1894)
推荐(0)
摘要:
https://www.bilibili.com/read/cv20389758/ https://blog.csdn.net/baidu_35848778/article/details/132161310 sudo apt install cpu-checker && kvm-ok sudo a
阅读全文
posted @ 2023-02-19 21:59
dolinux
阅读(291)
推荐(0)
摘要:
作者 彭东林 pengdonglin137@163.com 背景 最近在分析内核问题时用了function_graph,用它来分析为什么应用的某个系统调用会返回错误。在分析的时候,根据function_graph的输出确定代码执行流程,但是有时又需要知道函数的返回值来进一步定位出错位置。目前获取函数
阅读全文
posted @ 2023-02-16 15:27
dolinux
阅读(130)
推荐(0)
摘要:
参考 https://www.cnblogs.com/pengdonglin137/p/17115545.html https://blog.51cto.com/u_5041419/4728883 Linux系统multipath Iscsi多路径实验 框图 步骤 上文中在ubuntu下搭建了isc
阅读全文
posted @ 2023-02-14 10:03
dolinux
阅读(824)
推荐(0)
摘要:
参考 https://www.a5idc.net/helpview_1091.html https://blog.51cto.com/cerana/5725318 iSCSI代表Internet小型计算机系统接口是一种存储区域网络协议,可用于共享块设备,例如HDD / SSD分区或LVM分区,或网络
阅读全文
posted @ 2023-02-13 10:36
dolinux
阅读(1346)
推荐(1)
摘要:
开源项目 nettrace https://github.com/OpenCloudOS/nettrace 一款基于eBPF的集网络报文跟踪(故障定位)、网络故障诊断、网络异常监控于一体的网络工具集,旨在能够提供一种更加高效、易用的方法来解决复杂场景下的网络问题 perf-prof https://
阅读全文
posted @ 2023-02-10 09:55
dolinux
阅读(303)
推荐(1)
摘要:
任务优先级 任务 调度策略 优先级(prio,数字越小,优先级越高) 软中断线程 CFS SCHED_NORMAL 120 高优先级工作队列 CFS SCHED_NORMAL 100 普通优先级工作队列 CFS SCHED_NORMAL 120 中断线程 RT SCHED_FIFO 49 示例 软中
阅读全文
posted @ 2023-02-02 16:53
dolinux
阅读(145)
推荐(0)
摘要:
参考 https://blog.csdn.net/lls2012/article/details/103349511 上面的参考文章中介绍了一种加载动态库的符号表的方法,其中最重要的是获取动态库的.text段的起始地址,除了用readelf,还可以用objdump -h libxx.so |grep
阅读全文
posted @ 2023-01-11 15:30
dolinux
阅读(926)
推荐(0)
摘要:
内核中利用kasan检查访问内存是否合法时需要将要访问的内存地址映射到shadow区中的对应位置,然后再判断在shadow区里存放的数值。 下面是转换函数: ``` static inline void *kasan_mem_to_shadow(const void *addr) { return
阅读全文
posted @ 2023-01-09 21:20
dolinux
阅读(108)
推荐(0)
摘要:
目前kprobe不支持单个字符的输出显示方式,下面的patch给kprobe增加了一种%c的数据显示方式: From aafaf9fde1e72fb734a48840645ec43dce56661d Mon Sep 17 00:00:00 2001 From: Donglin Peng <dolin
阅读全文
posted @ 2022-12-13 15:04
dolinux
阅读(123)
推荐(0)
摘要:
# 知识库 - [Alibaba Cloud Linux知识库](https://www.alibabacloud.com/help/zh/elastic-compute-service/latest/knowledge-base "Alibaba Cloud Linux知识库") - [Aliba
阅读全文
posted @ 2022-12-08 09:31
dolinux
阅读(229)
推荐(0)
摘要:
参考 https://github.com/ohmyzsh/ohmyzsh https://ohmyz.sh/ https://github.com/ohmyzsh/ohmyzsh/wiki/Cheatsheet
阅读全文
posted @ 2022-11-24 22:33
dolinux
阅读(88)
推荐(0)
摘要:
https://github.com/jonas/tig/releases x86 执行./configure 修改config.make 执行make ❯ file src/tig src/tig: ELF 64-bit LSB executable, x86-64, version 1 (GNU
阅读全文
posted @ 2022-11-24 20:18
dolinux
阅读(106)
推荐(0)
摘要:
http://www.ccproxy.com/ 代理服务器快速入门 CCProxy二级代理上网设置 注册码 CCProxy无限用户版 序列号:JHEHIHCDDAHC 注册码:15f7f78febfaee55afeafefff7cb7fdfb3 共享网络给手机 设置IP 找到VPN软件设置的代理地址
阅读全文
posted @ 2022-11-23 22:12
dolinux
阅读(2693)
推荐(0)
摘要:
What's the difference between MOV, MOVZ, MOVN and MOVK in ARMv8 assembly?
阅读全文
posted @ 2022-11-10 23:10
dolinux
阅读(147)
推荐(0)
摘要:
Rust 参考 Rust 程序设计语言 Rust 参考手册 中文版 Rust 教程 vim插件 rust语言官网 Rust 官方文档中文教程 通过例子学 Rust 中文版 crates.io 开源项目 十大 Rust 开源项目 Rust for Linux 可重用操作系统内核技术 Go Go语言10
阅读全文
posted @ 2022-11-08 22:30
dolinux
阅读(186)
推荐(0)
摘要:
参考 使用Qemu运行Ubuntu文件系统(1) qemu-img命令详解 qemu-nbd 简单操作 操作 创建qcow2格式文件 qemu-img create -f qcow2 ubuntu22.qcow2 100G 也可以创建带有backend的qcow2:qemu-img create -
阅读全文
posted @ 2022-11-05 11:39
dolinux
阅读(381)
推荐(0)
摘要:
处理器设计 香山官方文档 指南 内核技术 循序渐进,学习开发一个RISC-V上的操作系统 - 汪辰 - 2021春 仓库:https://gitee.com/unicornx/riscv-operating-system-mooc RISC-V Linux 内核剖析 https://tinylab.
阅读全文
posted @ 2022-11-05 10:24
dolinux
阅读(158)
推荐(0)
摘要:
参考 /usr/share/doc/kexec-tools/early-kdump-howto.txt 启用早期 kdump 正文 Early Kdump HOWTO Introduction Early kdump is a mechanism to make kdump operational
阅读全文
posted @ 2022-10-29 00:00
dolinux
阅读(135)
推荐(0)
摘要:
# 参考 - http://rpm.org/documentation.html - [RPM Reference Manual](https://rpm-software-management.github.io/rpm/manual/ "RPM Reference Manual") - [Spe
阅读全文
posted @ 2022-10-27 11:40
dolinux
阅读(79)
推荐(0)
摘要:
目录重要网站eBPF大会编程eBPF 汇编ebpf-librarieslibbpf-bootstraplibbpfBCCbpftracebpftimeubpfrbpf技术专题入门man手册编译器Kfunc/FentryCO-REpaholeTail CallMAPbpftool调试网络XDPCili
阅读全文
posted @ 2022-10-20 09:52
dolinux
阅读(1095)
推荐(0)
摘要:
参考手册 bpftrace参考手册 bpftrace Cheat Sheet 小技巧 读取内核全局变量的值(参考) # bpftrace -qe 'BEGIN {printf("banner: %s\ntotalram: 0x%lx\n", str(kaddr("linux_banner")), *
阅读全文
posted @ 2022-09-01 21:29
dolinux
阅读(936)
推荐(0)
摘要:
查看PCI网卡 # lspci | grep Eth 19:00.0 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 02) 19:00.1 Ethernet controller
阅读全文
posted @ 2022-09-01 15:01
dolinux
阅读(683)
推荐(0)