Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
For performance, sometimes we need to adjust the address space layout.
-
systemd-nspawn --system-call-filter=perf_event_open
-
~/.gdbinit: add-auto-load-safe-path / .gdbinit in project working directory: set pagination off set $_exitcode = -1 run if $_exitcode !
-
Set caps: systemd-nspawn --capability=CAP_IPC_LOCK
-
市面上常见的硬盘盒或硬盘柜几乎都设计了电源按钮开关,并不是外部供电就自动开机的,这也是一种保护措施。
-
Installation git clone --depth 1 https://github.com/heiher/nginx cd nginx git clone --depth 1 https://github.com/heiher/nginx-dav-ext-module .
-
Tagged packet Untagged packet IN OUT IN OUT Tagged Port Unmodified Unmodified Tag by PVID Tag by PVID Untagged Port Drop Untag Tag by PVID Unmodified
-
在Linux系统上,使用dd命令清除SSD存储数据比较慢,快速的方法是使用blkdiscard命令。
-
From: https://en.wikipedia.org/wiki/Memory_ordering
-
背景 某个设备配套的刷机程序是个Linux recovery kernel,刷机过程会先从U盘加载刷机脚本,仅在签名校验通过后才执行脚本。
-
git log --all --full-history --
-
在macOS上通过虚拟机运行其它操作系统,又不想用商业软件,那么开源的QEMU是一个比较好的选择。
-
gdb /bin/bash (gdb) b main (gdb) r (gdb) info proc map Mapped address spaces: Start Addr End Addr Size Offset objfile ... 0x7ffff7fd1000 0x7ffff7fd3000 0x2000 0x0 [vdso] ...
-
A very non-intuitive property of the Alpha processor is that it allows the following behavior: Initially: p = & x, x = 1, y = 0 Thread 1 Thread 2 -------------------------------- y = 1 | memoryBarrier | i = *p p = & y |…
-
Dual network connections eth0 Address: 192.168.0.2 NetMask: 255.255.255.0 Gateway: 192.168.0.1 eth1 Address: 192.168.1.2 NetMask: 255.255.255.0 Gateway: 192.168.1.1 Routing policy Transmit via eth0 when source address is 192.168.0.2 Transmit via eth1 when…
-
Alpha 立即数装载方式 使用立即数装载指令 使用访存指令从内存装载 Alpha 立即数装载指令 lda 格式:lda ra, imm16(rb) 功能:val(ra) = val(rb) + sign_extend_to_64bit(imm16) ldah 格式:ldah ra, imm16(rb) 功能:val(ra) = val(rb) + sign_extend_to_64bit(imm16 * 65536) 通用64位立即数装载代码生成 # li64.S .text .glo…
-
在MIPS标准的协处理器0(CP0)中定义一组硬件watchpoints接口,由于某些原因,龙芯3系列处理器并未实现,这就导致了在该架构Linux系统中用gdb watch只能使用软件断点,真心非常、非常慢。
-
ibus-table 是 Python 语言实现的 ibus 输入法框架的码表引擎,ibus 的绝大多数形码输入法使用该引擎,如郑码、五笔等等。
-
远程连接物理机调试、测试固件、内核级补丁时,因补丁功能异常导致死机是经常发生的,如果你有一个 Rpi,那就可以派上用场了,本文记录了使用 Rpi2 的 GPIO 远程控制 PC 电源开关的方法。
-
在 Linux 系统上使用带宽更高、延迟更小的 SSD 作为 HDD 的缓存来打造软件实现的“混合硬盘”是一种容量和性能折中的方案。
-
The calling convention of the System V AMD64 ABI is followed on Solaris, Linux, FreeBSD, Mac OS X, and other UNIX-like or POSIX-compliant operating systems.
-
gcc -dM -E - < /dev/null
-
objcopy --globalize-symbol=SYMBOL_NAME INPUT_FILE OUTPUT_FILE
-
用于在目标程序的 main 函数执行前完成一些操作 😉 特定情况下用来调试还是不错的。
-
Extracting initrd image mkdir initrd && cd initrd gzip -dc initrd.cpio.gz | cpio -id Creating initrd image find . | cpio -H newc -o | gzip > ..
-
Windows 系统编程中经常把资源(图标、图片、声音等等)链接到程序中,并在程序中访问。
-
Welcome to my space!