Linux
lidedongsn
RTC,专注音视频
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
gdb通过core file定位程序崩溃位置
Linux环境下经常遇到某个进程挂掉而找不到原因,我们可以通过生成core file文件加上gdb来定位。 linux下如何产生core file?我们可以使用ulimit这条命令对core file文件的大小进行设定。一般默认情况下,core file的大小被设置为了0,这样系统就不dump出core file了。这时用如下命令进行设置:ulimi转载 2013-10-17 14:13:15 · 2773 阅读 · 0 评论 -
Linux常用指令及介绍
lspci------------------------------------------------------------------获取Linux外接设备板卡信息原创 2013-09-07 17:53:38 · 1400 阅读 · 0 评论 -
shell脚本强制进程重启
while :doecho "Current DIR is " $PWDstillRunning=$(ps -ef |grep "$PWD/a.out" |grep -v "grep")if [ "$stillRunning" ] ; thenecho "TWS service was already started by another way"echo "Kill it原创 2013-10-18 09:13:40 · 2173 阅读 · 0 评论 -
调试程序测试malloc 和 free是否配对
#include #include void * debug_malloc(size_t size, const char *file, int line, const char *func) { void *p; p = malloc(size); printf("%s:%d:%s:malloc(%ld): p=0x%lx\n"原创 2013-10-18 17:34:37 · 1877 阅读 · 0 评论 -
valgrind 内训诊断生成log
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --show-reachable=yes --show-possibly-lost=yes --undef-value-errors=yes --track-origins=yes --partial-loads-ok=yes --log-file=exec_log.原创 2013-10-21 17:52:18 · 1810 阅读 · 0 评论 -
服务器自动发送邮件监测freeswitch进程
vim /etc/mail.rc 添加set from=******@163.com smtp=smtp://smtp.163.com:25set smtp-auth-user=******@163.com smtp-auth-password=****** smtp-auth=loginvim check.sh#!/bin/bashsource .bas原创 2015-06-09 15:59:02 · 1981 阅读 · 0 评论 -
基于HISI3716的 spice client 绘图优化
1.pixman pixman作为一个独立的第三方绘图库,其主要作用是根据操作模式及相应的数学算法对图形进行二次处理。常见的有Gradient(颜色渐变)、ROP(光栅操作)、矢量图操作、Alpha compositing、线性变换等。我们涉及的有基本的ROP操作(主要是像素的位运算)、Alpha compositing以及缩放用到的线性变换等。下图是Alpha compositin原创 2015-07-30 17:36:13 · 3623 阅读 · 0 评论
分享