随笔分类 -  linux

linux学习笔记
摘要:piggy.lnk 简析 SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }} 简析:SECTIONS { .data 阅读全文
posted @ 2017-12-01 12:37 mull 阅读(218) 评论(0) 推荐(0)
摘要:0.11内核rd_load@ramdisk.c中memcpy函数好像有bug,如:#define memcpy(dst,src,n) \ __asm__("cld;rep;movsl"::"D"((long)(dst)),"S"((long)(src)), "c"((long)(n)/4))//me 阅读全文
posted @ 2017-11-17 15:31 mull 阅读(350) 评论(0) 推荐(0)
摘要:kernel : 4.9.51kexec-tools : 2.0.41.~ # ./kexec -p /boot/vmlinuz --initrd=/boot/initrd --command-line="`cat /proc/cmdline` irqpoll maxcpus=1 reset_dev 阅读全文
posted @ 2017-11-08 14:11 mull 阅读(766) 评论(0) 推荐(0)
摘要:2017-10-01 21:40:56[ 176.700091] vif: Could not allocate 40960 bytes percpu data[ 263.762812] percpu: allocation failed, size=16384 align=32 atomic=0, 阅读全文
posted @ 2017-10-01 22:19 mull 阅读(2063) 评论(0) 推荐(0)
摘要:[ cut here ] WARNING: CPU: 0 PID: 1 at ./arch/x86/include/asm/fpu/internal.h:373 0xffffffffb3022ed7Modules linked in:CPU: 0 PID: 1 Comm: swapper/0 Tai 阅读全文
posted @ 2017-08-13 17:23 mull 阅读(1555) 评论(1) 推荐(0)
摘要:默认的情况下,make会在工作目录(执行make的目录)下按照文件名顺序寻找makefile文件读取并执行,查找的文件名顺序为:“GNUmakefile”、“makefile”、“Makefile”。通 常应该使用“makefile”或者“Makefile”作为一个makefile的文件名(我们推荐 阅读全文
posted @ 2016-08-02 10:22 mull 阅读(2078) 评论(0) 推荐(1)
摘要:http://blog.csdn.net/kakadiablo/article/details/7948414struct sk_buff *skb;skb->len 是data长度,包含所带分片长度skb->data_len 是paged data长度, 即分片数据的长度,也就是skb_share... 阅读全文
posted @ 2015-10-05 16:57 mull 阅读(3860) 评论(0) 推荐(0)
摘要:IP分片重组的分析和常见碎片攻击 v0.2http://www.nsfocus.net/index.php?act=magazine&do=view&mid=584作者:yawl (mailto:yawl@nsfocus.com)主页:http://www.nsfocus.com日期:2000-09... 阅读全文
posted @ 2015-10-05 14:35 mull 阅读(1044) 评论(0) 推荐(0)
摘要:分类: LINUX原文地址:devtmpfs文件系统创建设备节点 作者:wangbaolin719http://blog.chinaunix.net/uid-27097876-id-4334356.html 一、devtmpfs概述 1.devtmpfs 的功用是在 Linux 核心 启动... 阅读全文
posted @ 2015-09-11 16:23 mull 阅读(1432) 评论(0) 推荐(0)
摘要:接口地址全部清除才清理从此接口发出的下一跳路由如: eth7配置两个地址eth7:192.168.1.110.1.1.1添加一条路由:route add -net 2.2.2.0/24 gw 10.1.1.254然后删除eth7上的地址10.1.1.1查一下路由表, 下一跳10.1.1.254还在~... 阅读全文
posted @ 2015-08-26 18:16 mull 阅读(580) 评论(0) 推荐(0)
摘要:busybox 默认读取内核printk信息长度256, 通过CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE宏可调整, 如下:#cd busybox-1.21.1#make menuconfig找到:System Logging Utilities ---> [*] ... 阅读全文
posted @ 2015-07-16 10:35 mull 阅读(752) 评论(0) 推荐(0)
摘要:[ 1.454380] BUG: unable to handle kernel NULL pointer dereference at 00000000000005d0[ 1.474020] IP: [] DSFW_rx_handle+0x1bb/0x370[ 1.487902] PGD 139c... 阅读全文
posted @ 2015-07-10 11:24 mull 阅读(1297) 评论(0) 推荐(0)
摘要:CallTrace:[221.634988][]?kmld_pte_lookup+0x17/0x60[221.635016][]?kmld_fault+0x94/0xf0[221.635051][]?kmld_pte_lookup+0x17/0x60[221.635079][]kmld_fault+... 阅读全文
posted @ 2015-07-10 10:49 mull 阅读(2120) 评论(0) 推荐(0)
摘要:File systems ---> Pseudo filesystems ---> [*] HugeTLB file system support相关Kconfig如下: config HUGETLBFS bool "HugeTLB file system support" depends ... 阅读全文
posted @ 2015-07-06 21:05 mull 阅读(848) 评论(0) 推荐(0)
摘要:ixgbe 82599 固定源与目标, UDP, 64字节小包, 1488w pps 单核CPU软中断sirq 100% 注: 测试使用, 正常应用不要开启五元组不同, 开启ntupleethtool --config-ntuple eth12 rx-flow-hash udp4 sdfnMem: ... 阅读全文
posted @ 2015-06-25 20:30 mull 阅读(1704) 评论(0) 推荐(0)
摘要:1. pci_driver结构struct pci_driver { struct list_head node; const char *name; const struct pci_device_id *id_table; /* must be non-NULL for probe to be ... 阅读全文
posted @ 2015-06-23 10:13 mull 阅读(1876) 评论(0) 推荐(0)
摘要:dell r710 安装ubuntu 12.04 server 启动后进入initramfs解决办法grub 启动菜单后加入 rootdelay=90, 如下:/boot/vmlinuz-2.6.32-38-server root=UUID=8685ab7a-20a9-4ddf-81c8-9ab9a... 阅读全文
posted @ 2015-06-22 07:31 mull 阅读(593) 评论(0) 推荐(0)
摘要:调用:int dev_set_allmulti(struct net_device *dev, int inc)打上IFF_ALLMULTI标记#define IFF_ALLMULTI 0x200 /* receive all multicast packets*/ 阅读全文
posted @ 2015-04-10 17:33 mull 阅读(463) 评论(0) 推荐(0)