需改ebpf程序探测内核,测试性能,验证想法,更新笔记。
This commit is contained in:
@@ -189,6 +189,7 @@ static void* reader_thread_func(void *arg)
|
||||
uint64_t last = __atomic_load_n(&g_shm.hdr->last_seq, __ATOMIC_ACQUIRE);
|
||||
if (local_seq > last) {
|
||||
// 没有新数据,短暂休眠避免空转
|
||||
usleep(500);
|
||||
continue;
|
||||
}
|
||||
if (read_off+ sizeof(replica_rec_hdr_t) >= g_shm.hdr->capacity) {
|
||||
|
||||
Reference in New Issue
Block a user