rte_rdtsc单位rte_rdtsc单位 RDTSC (Read Time Stamp Counter) 汇编指令的单位为 CPU 时钟周期。在大多数现代处理器中,CPU 时钟周期与时钟速度成比例,通常以 GHz(千兆赫)或 MHz(兆赫)为单位表示。因此,使用 RDTSC 指令来测量代码执行时间时,得到的结果通常以时钟周期、纳秒或毫秒为单位。
staticinttimed_lookups(struct efd_perf_params *params){unsignedinti, j, a;constuint64_tstart_tsc =rte_rdtsc();efd_value_tret_data;for(i =0; i < NUM_LOOKUPS / KEYS_TO_ADD; i++) {for(j =0; j < KEYS_TO_ADD; j++) { ret_data = rte_efd_lookup(params->efd_table, test_socke...
> 1. For every packet reception in lcore thread under while(1), will get > the packet received timestamp using rte_rdtsc() function. Whether usage of > rte_rdtsc() function adds more delay in packet processing? > 2. Is there any way to convert rte_rdtsc() timestamp value to current...