add NtyCo as submodule & 搭建设计ebpf主从同步代码框架

This commit is contained in:
1iaan
2026-01-28 12:05:28 +00:00
parent 226f9a510f
commit fe257cafec
49 changed files with 249 additions and 8922 deletions

Binary file not shown.

View File

@@ -1,36 +0,0 @@
BEGIN
{
printf("Start memory leakage detect\n");
}
uprobe:/home/lian/share/9.1-kvstore/kvstore:nMalloc
{
@tmp_size[tid] = arg0;
@tmp_file[tid] = str(arg1);
@tmp_func[tid] = str(arg2);
@tmp_line[tid] = arg3;
}
uretprobe:/home/lian/share/9.1-kvstore/kvstore:nMalloc
{
$ptr = retval;
if ($ptr != 0) {
@allocs[$ptr] = ( @tmp_file[tid], @tmp_line[tid], @tmp_func[tid], @tmp_size[tid]);
}
delete(@tmp_size[tid]);
delete(@tmp_file[tid]);
delete(@tmp_func[tid]);
delete(@tmp_line[tid]);
}
uprobe:/home/lian/share/9.1-kvstore/kvstore:nFree
{
delete(@allocs[arg0]);
}
END
{
printf("\n=== Memory Leaks ===\n");
}