随笔分类 -  os

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页

Git 撤销commit文件 和 回退push的文件
摘要:https://www.jianshu.com/p/491a14d414f6 第一种情况 : 撤销commit文件 我们先查看一下log日志: 两种查看方法: 1、git log 显示从近到远的日志记录,按向下键来查看更多,按 Q 键退出查看日志 2、git log --pretty=oneline 阅读全文

posted @ 2020-09-25 11:55 tycoon3 阅读(3306) 评论(0) 推荐(0)

rte_pktmbuf_linearize
摘要:static inline int rte_pktmbuf_linearize(struct rte_mbuf *mbuf) { if (rte_pktmbuf_is_contiguous(mbuf)) return 0; return __rte_pktmbuf_linearize(mbuf); 阅读全文

posted @ 2020-09-25 09:03 tycoon3 阅读(386) 评论(0) 推荐(0)

VFIO driver analysis
摘要:The VFIO driver is a framework for exposing direct device access to userspace. Virtual machine technology uses VFIO to assign physical device to VMs f 阅读全文

posted @ 2020-09-24 15:43 tycoon3 阅读(473) 评论(0) 推荐(0)

iommu_dma_mmap + mmap
摘要:https://www.codeleading.com/article/67454397455/ https://blog.csdn.net/weixin_43503508/article/details/107924027 static const struct dma_map_ops iommu 阅读全文

posted @ 2020-09-24 15:04 tycoon3 阅读(2117) 评论(0) 推荐(0)

DMAR表 + iommu
摘要:话说,盘古开天的时候,设备访问内存(DMA)就只接受物理地址,所以CPU要把一个地址告诉设备,就只能给物理地址。但设备的地址长度还比CPU的总线长度短,所以只能分配低地址来给设备用。所以CPU这边的接口就只有dma=dma_alloc(dev, size),分配了物理地址,然后映射为内核的va,然后 阅读全文

posted @ 2020-09-24 14:41 tycoon3 阅读(2441) 评论(0) 推荐(0)

External Interrupts in the x86 system. Part 1. Interrupt controller evolution
摘要:https://habr.com/ru/post/446312/ This article is about the interrupt delivery process from external devices in the x86 system. It tries to answer ques 阅读全文

posted @ 2020-09-24 10:48 tycoon3 阅读(1778) 评论(0) 推荐(0)

虚拟机中断
摘要:root@srv6:~# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 1: 0 0 0 0 0 0 9 0 IO-APIC 1-edge i8042 4: 442 0 0 0 319 0 0 0 IO-APIC 4-edg 阅读全文

posted @ 2020-09-24 10:41 tycoon3 阅读(1126) 评论(0) 推荐(0)

内核中断
摘要:首先是内核中断的分类,这里只是根据proc/interrupts下显示的中断进行分类,主要包含外部中断和IPI中断 cat proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 1: 107049 104452 77919 106593 17 阅读全文

posted @ 2020-09-24 10:30 tycoon3 阅读(1078) 评论(0) 推荐(0)

交换机三层转发vlanif
摘要:switch1 switch2 swtich3 switch1上ping switch3上的地址 <AGG_CE6855_1>ping -a 10.10.16.254 10.10.30.249 PING 10.10.30.249: 56 data bytes, press CTRL_C to bre 阅读全文

posted @ 2020-09-23 20:18 tycoon3 阅读(382) 评论(0) 推荐(0)

centos 电池
摘要:CentOs7中查看电量剩余电量 查看CentOs7中电量剩余电量:cat /sys/class/power_supply/BAT0/capacity [root@localhost ~]# cat /sys/class/power_supply/BAT0/capacity 100 [root@lo 阅读全文

posted @ 2020-09-23 19:27 tycoon3 阅读(233) 评论(0) 推荐(0)

securecrt 连接串口
摘要: 阅读全文

posted @ 2020-09-23 08:59 tycoon3 阅读(315) 评论(0) 推荐(0)

arping
摘要:[root@bogon ~]# arping -I enahisic2i3 -c 1 10.10.103.229 ARPING 10.10.103.229 from 10.10.103.81 enahisic2i3 Unicast reply from 10.10.103.229 [44:A1:91 阅读全文

posted @ 2020-09-22 11:38 tycoon3 阅读(167) 评论(0) 推荐(0)

Fragmented IP packet forwarding ip分片
摘要:https://rtodto.net/fragmented-ip-packet-forwarding/ IP分片只有第一个带有传输层或ICMP首部,其余的分片只有IP头。 分片报文的有效长度是8的倍数 分片需要解决的问题主要有两个:第一,如何判断是否需要分片(若报文的长度大于1500字节且在分片标志 阅读全文

posted @ 2020-09-22 10:35 tycoon3 阅读(1969) 评论(0) 推荐(0)

iptables rp filter
摘要:sysctl -w net.ipv4.conf.all.rp_filter=0 sysctl -w net.ipv4.conf.all.rp_filter=0 sysctl -w net.ipv4.conf.default.rp_filter=0 sysctl -w net.ipv4.conf.et 阅读全文

posted @ 2020-09-21 15:41 tycoon3 阅读(637) 评论(0) 推荐(0)

iptables -F & filter 丢包
摘要: 阅读全文

posted @ 2020-09-21 14:53 tycoon3 阅读(398) 评论(0) 推荐(0)

iptables NAT转发
摘要:Last login: Sun Sep 20 23:51:55 2020 from 192.168.117.59 [root@localhost ~]# cat /var/log/messages|grep conn [root@localhost ~]# dmesg | grep conntrac 阅读全文

posted @ 2020-09-21 13:06 tycoon3 阅读(357) 评论(0) 推荐(0)

ethtool --offload
摘要:ethtool --show-offload enahisic2i3 ethtool --show-offload enahisic2i3 | grep checksum offload ethtool --show-offload enahisic2i3 | grep checksum ethto 阅读全文

posted @ 2020-09-18 17:27 tycoon3 阅读(814) 评论(0) 推荐(0)

makefile 调试
摘要:https://seisman.github.io/how-to-write-makefile/invoke.html 有时候,我们不想让我们的makefile中的规则执行起来,我们只想检查一下我们的命令,或是执行的序列。于是我们可以使用make命令的下述参数: -n, --just-print, 阅读全文

posted @ 2020-09-18 13:46 tycoon3 阅读(254) 评论(0) 推荐(0)

dpdk GDB Make breakpoint pending on future shared library load
摘要:(gdb) b hinic_tx_offload_pkt_prepare Function "hinic_tx_offload_pkt_prepare" not defined. Make breakpoint pending on future shared library load? (y or 阅读全文

posted @ 2020-09-18 11:21 tycoon3 阅读(1225) 评论(0) 推荐(0)

traceroute
摘要:root@srv6:~# traceroute -p 1053 10.10.16.82 traceroute to 10.10.16.82 (10.10.16.82), 30 hops max, 60 byte packets 1 _gateway (10.10.18.254) 6.265 ms 6 阅读全文

posted @ 2020-09-18 10:17 tycoon3 阅读(194) 评论(0) 推荐(0)

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页

导航