摘要:
lunch目標 aosp_cf_x86_64_phone-userdebug 配置文件: device/google/cuttlefish/vsoc_x86_64/phone/aosp_cf.mk
閱讀全文
posted @ 2024-09-15 09:22
dolinux
閱讀(114)
推薦(0)
摘要:
toybox 類似busybox
閱讀全文
posted @ 2024-09-15 08:57
dolinux
閱讀(28)
推薦(0)
摘要:
參考 Cache Line 偽共享發現與優化 什么是偽共享?又該怎么避免偽共享的問題? 內核文檔:False Sharing C2C - False Sharing Detection in Linux Perf
閱讀全文
posted @ 2024-09-06 14:26
dolinux
閱讀(51)
推薦(0)
摘要:
平臺 ARM64 Linux 6.10 作者 pengdonglin137@163.com 背景 最近在學習Linux的缺頁異常時突然奇想,在不進行內存換出的情況下,如何讓進程再次觸發缺頁? 基于對ARMv8的理解,它的MMU的頁表項中有個AF位,當AF為0時,當訪問到對應的虛擬頁時,會觸發缺頁。
閱讀全文
posted @ 2024-08-23 16:05
dolinux
閱讀(242)
推薦(0)
摘要:
參考文檔 工具:WSS Working Set Size Estimation clear_refs: Soft-Dirty PTEs https://man7.org/linux/man-pages/man5/proc_pid_clear_refs.5.html Idle Page Trackin
閱讀全文
posted @ 2024-08-21 14:55
dolinux
閱讀(67)
推薦(0)
摘要:
參考 Linux 6.2 Implementing Dynamic Shadow Call Stack Support For AArch64 內核補丁: arm64: dynamic shadow call stack support arm64: unwind: add asynchronous
閱讀全文
posted @ 2024-08-15 14:56
dolinux
閱讀(47)
推薦(0)
摘要:
正常的vm命令輸出: crash_new> vm PID: 2380 TASK: ffffff88414bddc0 CPU: 5 COMMAND: "xxx" MM PGD RSS TOTAL_VM ffffff880a997c00 ffffff8825747000 16565804k 445353
閱讀全文
posted @ 2024-08-14 10:51
dolinux
閱讀(49)
推薦(0)
摘要:
CFI/CFG 安全防護原理詳解 https://github.com/Smilencelsy/Control-Flow-Integrity 介紹:https://en.wikipedia.org/wiki/Control-flow_integrity https://hikunpeng.csdn.
閱讀全文
posted @ 2024-07-12 18:58
dolinux
閱讀(555)
推薦(0)
摘要:
文檔: DDI0487J_a_a-profile_architecture_reference_manual.pdf
閱讀全文
posted @ 2024-06-07 15:48
dolinux
閱讀(64)
推薦(0)
摘要:
參考 https://patchwork.kernel.org/project/linux-trace-kernel/patch/20230306122549.236561-1-douglas.raillard@arm.com/#25471294 現象 I/perfetto( 3707): prob
閱讀全文
posted @ 2024-05-19 00:37
dolinux
閱讀(257)
推薦(0)
摘要:
參考 https://github.com/weidongshan/cpp_projects 《C++ Primer Plus》 C++ Standards Support in GCC GCC GCC中有libstdc++庫的實現 LLVM LLVM中有libc++庫的實現 C++參考手冊 cpl
閱讀全文
posted @ 2024-05-06 10:12
dolinux
閱讀(89)
推薦(0)
摘要:
環境搭建 https://blog.csdn.net/m0_56069910/article/details/135734840 插件 qt-vsaddin各版本下載及安裝方法 文檔 https://doc.qt.io/qt-5/
閱讀全文
posted @ 2024-05-01 09:35
dolinux
閱讀(40)
推薦(0)
摘要:
參考 https://fedoraproject.org/wiki/C_and_C%2B%2B_v2 https://docs.fedoraproject.org/en-US/packaging-guidelines/#packaging-static-libraries sudo dnf inst
閱讀全文
posted @ 2024-04-30 11:08
dolinux
閱讀(57)
推薦(0)
摘要:
http://t.csdnimg.cn/IOITj
閱讀全文
posted @ 2024-04-20 09:13
dolinux
閱讀(32)
推薦(0)
摘要:
Android系統學習 —— 替換crash_dump文件
閱讀全文
posted @ 2024-04-17 15:08
dolinux
閱讀(55)
推薦(0)
摘要:
https://blog.csdn.net/pengdonglin137/article/details/137733696
閱讀全文
posted @ 2024-04-14 07:23
dolinux
閱讀(29)
推薦(0)
摘要:
查詢軟件包 以/bin/kill為例,可以先查詢這個文件位于哪個安裝包里: $ dpkg -S /bin/kill procps: /bin/kill 安裝符號表 然后參考下面的方法,配置符號表倉庫: http://www.rzrgm.cn/pengdonglin137/articles/1
閱讀全文
posted @ 2024-04-06 18:52
dolinux
閱讀(107)
推薦(0)
摘要:
參考 Ubuntu 22.04: Connect to WiFi from command line Netplan documentation Netplan CLI How to configure your computer to connect to your home Wi-Fi netw
閱讀全文
posted @ 2024-04-06 10:43
dolinux
閱讀(509)
推薦(0)
摘要:
參考 https://serverfault.com/questions/1101391/disable-ubuntu-22-04s-scaning-processes-candidates-after-package-upgrades 現象 樹莓派上裝了ubuntu server版,每次裝完軟件都
閱讀全文
posted @ 2024-04-06 10:08
dolinux
閱讀(611)
推薦(1)
摘要:
https://docs.fedoraproject.org/en-US/quick-docs/raspberry-pi/#_is_the_onboard_wi_fi_supported_on_the_raspberry_pi_3
閱讀全文
posted @ 2024-04-04 10:54
dolinux
閱讀(121)
推薦(0)
摘要:
https://blog.csdn.net/pengdonglin137/article/details/137460367?spm=1001.2014.3001.5501
閱讀全文
posted @ 2024-03-28 10:08
dolinux
閱讀(53)
推薦(0)
摘要:
參考 https://discussion.fedoraproject.org/t/boot-nearly-full-how-to-free-space/73206 問題 我的fedora的/boot分析下面有一些老的內核,導致/boot分區可用空間不足,如何安全的清理舊的安裝包呢? pengdl@
閱讀全文
posted @ 2024-03-26 11:12
dolinux
閱讀(102)
推薦(0)
摘要:
參考 Dynamic port-forwarding for NAT-ed kvm/libvirt networks Forwarding Incoming Connections 在/etc/libvirt/hooks添加qemu腳本,模板如下,需要根據自己的配置進行修改,修改完畢后,重啟libv
閱讀全文
posted @ 2024-03-25 20:54
dolinux
閱讀(787)
推薦(0)
摘要:
問題 在ubuntu20.04上使用virt-manager安裝了一個fedora虛擬機,在創建快照時提示權限不足: Error creating snapshot: internal error: Child process (/usr/local/bin/qemu-img snapshot -c
閱讀全文
posted @ 2024-03-25 19:54
dolinux
閱讀(290)
推薦(0)
摘要:
參考 https://www.raspberrypi.com/software/ https://www.raspberrypi.com/software/operating-systems/ https://ubuntu.com/download/raspberry-pi https://cdim
閱讀全文
posted @ 2024-03-25 17:21
dolinux
閱讀(279)
推薦(0)
摘要:
問題 在ubuntu上使用apt-get安裝軟件包,系統會自動安裝依賴的軟件包,但是使用dpkg在ubuntu上安裝軟件包時不會,有時會遇到下面的錯誤: pengdl@pengdl-HP:~/Soft$ sudo dpkg -i virtualbox-7.0_7.0.14-161095~Ubuntu
閱讀全文
posted @ 2024-03-25 16:36
dolinux
閱讀(1935)
推薦(0)
摘要:
參考 Raspberry Pi Documentation 官網提供的使用文檔,可以研究一下 樹莓派使用 openEuler 安裝 openEuler鏡像的構建 樹莓派的UEFI支持和網絡啟動 openEuler Embedded使用與開發手冊 Android KonstaKANG 如何在樹莓派上安
閱讀全文
posted @ 2024-03-25 14:18
dolinux
閱讀(107)
推薦(0)
摘要:
參考 Fedora Quick Docs Fedora Server Documentation Deploy an ARM64 Fedora VM on your PC: 3 steps Architectures/AArch64/Install with QEMU Virtualization
閱讀全文
posted @ 2024-03-25 12:49
dolinux
閱讀(524)
推薦(0)
摘要:
bootloader 修改config.txt,在最后增加下面兩行: enable_uart=1 #enable pl uart uart_2ndstage=1 #enable FW debug info kernel 修改cmdline.txt,去掉quiet 日志 Booting Log Rea
閱讀全文
posted @ 2024-03-17 00:40
dolinux
閱讀(616)
推薦(0)
摘要:
操作指南 https://blog.csdn.net/u012915636/article/details/132876601 文件下載 鏈接:https://pan.baidu.com/s/1kg0Zl89p0L7MFoOZFXJteg?pwd=9yl6 提取碼:9yl6 Jlink下載 http
閱讀全文
posted @ 2024-03-13 11:27
dolinux
閱讀(771)
推薦(0)
摘要:
測試程序 在/system/etc/init/hw/init.rc中追加下面的測試程序: 然后重啟 日志 使用logcat抓取init的日志: adb wait-for-device logcat -s init 測試 依次設置test1和test2 vsoc_x86_64:/ # setprop
閱讀全文
posted @ 2024-03-10 00:19
dolinux
閱讀(117)
推薦(0)
摘要:
參考 android studio platform使用體驗分享 調試AOSP源碼的官方神器-Android Studio for Platform(ASfP) 下載 官網: https://developer.android.google.cn/studio/platform?hl=en 注意:使
閱讀全文
posted @ 2024-02-28 09:55
dolinux
閱讀(874)
推薦(0)
摘要:
參考 https://zhuanlan.zhihu.com/p/545432403?utm_id=0 軟件版本 Qemu:8.0.0 Linux:6.5 GCC: 13.2.1 內核配置 參考arch/arm64/Kconfig: CONFIG_ARM64_AS_HAS_MTE: 當編譯器支持mem
閱讀全文
posted @ 2024-02-24 19:07
dolinux
閱讀(426)
推薦(0)
摘要:
https://github.com/torvalds/linux/blob/v6.5/tools/perf/design.txt Performance Counters for Linux Performance counters are special hardware registers a
閱讀全文
posted @ 2024-01-28 19:20
dolinux
閱讀(257)
推薦(0)
摘要:
目錄示例程序1單計數器多計數器示例程序2Configure a single counterConfigure multiple counters (no multiplexing) 示例程序1 Linux perf子系統的使用(一)——計數 剛剛入職的時候我就研究了perf_event_open(
閱讀全文
posted @ 2024-01-28 19:20
dolinux
閱讀(1668)
推薦(0)
摘要:
目錄參考內核版本作者正文初始化內核寫__perf_event_outputperf_output_begin_forwardperf_output_sampleperf_output_put_handle喚醒應用應用讀 參考 perf_event內核框架 tracepoint events soft
閱讀全文
posted @ 2024-01-28 17:36
dolinux
閱讀(751)
推薦(0)
摘要:
目錄示例程序2采集單個值采集多個值示例程序2示例程序3 示例程序2 Linux perf子系統的使用(二)——采樣(signal方式) 在上一篇《Linux perf子系統的使用(一)——計數》已經講解了如何使用perf_event_open、read和ioctl對perf子系統進行編程。但有時我們
閱讀全文
posted @ 2024-01-28 17:12
dolinux
閱讀(1316)
推薦(0)
摘要:
目錄參考NAMESYNOPSISDESCRIPTIONArgumentspid和cpugroup_fdflagsperf_event_attrtypesizeconfigkprobe_func, uprobe_path, kprobe_addr, and probe_offsetsample_per
閱讀全文
posted @ 2024-01-27 20:23
dolinux
閱讀(197)
推薦(0)
摘要:
參考 用clang編譯Linux內核 type_id=3 vlen != 0 on 5.4 LTS kernel libbpf-tools compile with core_fixes.bpf.h include got error bpf_btf_info has no member named
閱讀全文
posted @ 2024-01-17 16:44
dolinux
閱讀(879)
推薦(2)
摘要:
輸出編譯日志 http://www.rzrgm.cn/pengdonglin137/articles/13932025.html 優先鏈接靜態庫 http://www.rzrgm.cn/coding-my-life/p/14018972.html
閱讀全文
posted @ 2024-01-16 14:41
dolinux
閱讀(39)
推薦(0)