自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

阿群的笔记(同步备份自简书)

此博客会定期自动同步我的简书投稿,所有文章均非原创,仅作为blog备份

  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 2019-12-18 DPDK开启HPET高精度时钟

/** * Get the number of cycles since boot from the default timer. * * @return * The number of cycles */static inline uint64_trte_get_timer_cycles(void){#ifdef RTE_LIBEAL_USE_HPET ...

2019-12-18 14:41:38 1923

原创 2019-12-18 syscall(SYS_clock_gettime, CLOCK_MONOTONIC_RAW

转载:在linux下获取高精度单调递增的时间,只能使用:syscall(SYS_clock_gettime, CLOCK_MONOTONIC_RAW, &monotonic_time);获取!转载自https://blog.csdn.net/zniahfag/article/details/53489970四、关于wall time和monotonic time...

2019-12-18 14:00:15 1653

原创 2019-12-17 TCP报头结构

2019-12-17 17:37:15 111

原创 2019-12-17 drivers/clocksource/arm_arch_timer.c

https://elixir.bootlin.com/linux/latest/source/drivers/clocksource/arm_arch_timer.c

2019-12-17 10:52:24 373

原创 2019-12-17 摘抄: HPET 硬件高精度时钟源Linux内核引导选项

hpet=enable clocksource=hpet摘抄自博客:https://codeday.me/bug/20190813/1649837.html

2019-12-17 10:42:15 706

原创 2019-12-11 手写libpcap/bpf包过滤器

#include <stdint.h>#include <stdio.h>#include <string.h>#include <netinet/in.h>#include <linux/filter.h>#include <linux/if_ether.h>void dump_line(co...

2019-12-11 17:03:55 247

原创 2019-12-07 IP header的结构由RFC 791定义

IP header的结构由RFC 791定义,如图(第一行每个数字代表一个bit位): 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Versi...

2019-12-07 17:38:10 323

原创 2019-12-07 IPPROTO_RAW

if (sendfd < 0) { if ((sendfd = socket (AF_INET, SOCK_RAW, IPPROTO_RAW)) < 0) { perror ("socket() failed "); exit (EXIT_FAILURE); } ...

2019-12-07 16:45:52 398

原创 2019-12-04 Using PAPI to Measure Execution Time

http://icl.cs.utk.edu/projects/papi/wiki/PAPITopics:Getting_Started

2019-12-04 13:54:46 108

原创 2019-12-02 调用C++高精度时钟 std::chrono::high_resolution_clock的方法

调用C++高精度时钟 std::chrono::high_resolution_clock的方法测试usleep()的延时误差// high_resolution_clock example#include <stdio.h>//#include <iostream>//#include <ctime>//#include <...

2019-12-02 10:13:59 3459

空空如也

空空如也

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

TA关注的人

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