- 博客(9)
- 收藏
- 关注
原创 No BUILD ID 问题解决
在编译linux内核的rpm包时候,如果需要debuginfo信息,会在spec中调用rpm下的find-debuginfo.sh脚本,如果指定了strict-build-id选项,那么会检查linux中间obj文件的build id。本地编译,由于gcc安装时候,configure没有加--enable-linker-build-id项,同时,linux的tool下面makefile的LDF...
2019-01-17 23:47:00
3199
1
原创 python合并已经存在的sheet数据到新sheet
简单的合并,本例是横向合并,纵向合并可以自行调整。import xlrd import xlwtimport shutil from xlutils.copy import copy import datetime # 打开要使用的excel,获取要需要写入的行数 bk = xlrd.open_workbook('A.xlsx') #打开A文件nbk = copy(bk)newsh =...
2018-05-28 15:45:29
1465
翻译 OVS的CT action
CT相关内容。1. match部分,ct_state,ct_zone,ct_mark,ct_label2. action部分, commit,提交一个新的connection给connection tracker模块 table,fork一份pipeline,报文copy一份送给connection tracker,然后从当前指定table重入 zone,制定connectio...
2018-05-15 18:08:28
4061
原创 文档按固定格式字符串排序
#!/bin/shecho -e "original file name"read fileecho -e "target file name"read file cat "$file" | grep "xxx" -n > index.txtsed "s/\([0-9]\)":fix_string.*/\1/g" index.txt > linerecord.txt #
2018-03-22 15:26:18
376
原创 shell脚本,对指定目录下C文件,替换和删除字符串
#!/bin/shecho -e "file patch"read file_pathfind $file_path -name "*.c" > path.txtdos2unix -q path.txtline_number=$(cat path.txt | wc-l)for(i=1;i<$line_number;i++){ sed_para="$(i)p" cmd="se...
2018-03-12 09:52:29
543
转载 Docker 容器使用 cgroups 限制资源使用
https://www.cnblogs.com/sammyliu/p/5886833.html
2018-02-24 14:41:18
278
翻译 bbit0和dext指令
mips的两个指令bbit0 是指对某一位检测是否为0,检测后进行跳转,其他bbit指令类似ex bbit0 s4, 0xd, address; 检测s4寄存器的数值的13位是否为0,是九跳转address执行dext,不确定是不是64上专用dext a0,a1,0x0,0x20把a1的0+0x20位取出填充到a0低位,高位由符号位填充...
2018-02-12 11:01:50
1023
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人