摘要:
一个ftrace的使用小示例,备忘用。 阅读全文
摘要:
There are times when you want to wrap a library function in order to provide some additional functionality. A common example of this is wrapping the standard library’s malloc() and free() so that you can easily track memory allocations in your program. While there are several techniques for wrapping library functions, one well-known method is using dlsym() with RTLD_NEXT to locate the wrapped function’s address so that you can correctly forward calls to it. 阅读全文
摘要:
Maybe virtual memory over commit is prevented in your system. If it is prevented, then the virtual memory can not be bigger than sizeof physical RAM + 阅读全文
摘要:
1,跳过某个特定信号 (gdb) handle SIGPIPE nostop noprint pass 2,break在特定的系统调用处 (gdb) catch syscall 3 3,遇到一个断点的时候执行一组commands (gdb) commands 1 #在断点1出现的时候执行下面一组命令 阅读全文
摘要:
32位的变量做自增自减的性能比对它做原子加减操作的性能好。 阅读全文
摘要:
If you’re running Linux, then it’s likely that you’ve needed to change some options for your file systems. Getting acquainted with fstab can make the whole process a lot easier, and it’s much easier than you think. 阅读全文
摘要:
如何编译dpdk和spdk的动态库 阅读全文