- 博客(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 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关注的人