自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (6)
  • 收藏
  • 关注

原创 C++实现swap

#include <iostream> using namespace std;class Swapper{ public: Swapper(){} ~Swapper(){} int swaps(int &a , int &b); int swaps2(int &a , int &b); pri

2021-09-30 20:02:03 209

原创 解决在Vim中鼠标右键不能粘贴问题

方 法一:在普通模式下键入“ :set mouse-=a”(不包括引号)方 法二:编辑 ~/.vimrc 文件,加入如下代码: if has(‘mouse’) set mouse-=a endif方法一每次打开vim时都需要设置一次。方法二改了配置文件后,问题就解决了...

2021-09-11 12:15:30 423

原创 linux中如何结束由一个父进程产生的所有子进程

采用ps + grep + awk + pkill命令组合,可实现“结束由一个父进程产生的所有子进程”,如:父进程名为 parent_proc,可先根据进程名称,得到进程PIDps -ef | grep parent_proc| egrep - v grep | awk '{print $2}'根据父进程PID终止所有子进程PID,保留父进程pkill -9 -P $p_pidfor p_pid in ` ps -ef | grep parent_proc| egrep

2021-09-07 15:36:21 1111 1

原创 Linux:为什么性能工具需要 BPF 技术

了解更多BPF技术内幕,推荐阅读《BPF之巅:洞悉Linux系统和应用性能》一书。▼BPF是近年来Linux 系统技术领域一个巨大的创新。作为 Linux 内核的一个关键发展节点,其重要程度不亚于虚拟化、容器、SDN 等技术。▼BPF 的工作方式十分有趣 :最终用户使用 BPF 虚拟机的指令集(也称 BPF 字节码)定义过滤器表达式,然后传递给内核,由解释器执行。这使得包过滤可以在内核中直接进行,避免了向用户态进程复制每个数据包,从而提升了数据包过滤的性能,tcpdump(8) 就是这样工作的。B

2021-08-28 13:53:55 143

原创 UBUNTU server 20.04 安装成功后启动网卡

ip a查看您的网卡名如 enp11s0f0执行 ip link set enp11s0f0 up启动网卡执行 ip link set enp11s0f0 down关闭网卡dhclient 为网卡DHCP获取IP

2021-06-10 12:45:04 6335

原创 linux/android 驱动模块签名

1.编写配置文件[ req ]default_bits = 4096distinguished_name = req_distinguished_nameprompt = nostring_mask = utf8onlyx509_extensions = myexts[ req_distinguished_name ]O = GenFicCN = Kernel Signing KeyemailAddress = [email protected][ myexts

2021-03-27 23:04:16 199

原创 create initrd.img use dracut

sudo dracut -f --nomdadmconf --nolvmconf --xz --install ‘/.buildstamp’ --no-early-microcode --add ‘fips’ --add ‘anaconda pollcdrom’ --force initrd.img $(uname -r)centos

2021-02-15 19:40:24 172

原创 Rebuild initrd image

[root@rhel-8 rules.d]# cd /tmp/custom_initrd/[root@rhel-8 custom_initrd]#Execute the below command to rebuild initrd image with xz as compression format[root@rhel-8 custom_initrd]# find . 2>/dev/null | cpio -c -o | xz -9 --format=xz > /tmp/new.img

2021-02-13 15:14:33 81

转载 2 ways to update and rebuild initrd image in CentOS/RHEL 7 and 8

How do I unpack or uncompress, and then repack or re-compress, an initrd or initramfs boot image file? How do I modify the contents of an initrd or initramfs? How do I view an initrd or initramfs? How to customize initrd in RHEL Linux. How to rebuild initr

2021-02-13 14:59:35 492

原创 CentOS 8 kernel 4.18.193.rl8 开机logo 多只企鹅修改1只居中显示

driver/vedio/fbdev/core/fbmem.c找到int fb_show_logo(struct fb_info *info, int rotate){ int y; y = fb_show_logo_line(info, rotate, fb_logo.logo, 0, num_online_cpus()); y = fb_show_extra_logos(info, y,

2021-02-12 13:10:54 215

原创 构建CentOS dwarves包

dwarves is a set of tools that use the debugging information inserted inELF binaries by compilers such as GCC, used by well known debuggers such asGDB, and more recent ones such as systemtap.Utilities in the dwarves suite include pahole, that can be use

2021-02-11 15:03:36 1528

libbpf-0.0.4-5.el8.src.rpm

bpf tools of kernel 4.18.193

2021-02-17

dwarves-1.17-1.el8.src.rpm

a power tools of centos redhat sule os

2021-02-17

kmod-25-16.el8.src.rpm

a dependcy of dracut

2021-02-17

dracut-049-95.git20200804.el8.src.rpm

dracut fixes that no anaconda modules problem

2021-02-17

kernel-4.18.0-193.28.1.el8.src.rpm

4.18.193 kernel

2021-02-17

kernel-4.18.0-193.28.1.el8.x86_64.rpm

kernel-4.18.0-193.28.1.el8.x86_64.rpm

2021-02-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除