首页> 外国专利> LINUX KERNEL-BASED MEMORY LEAKAGE DETECTION METHOD

LINUX KERNEL-BASED MEMORY LEAKAGE DETECTION METHOD

机译:基于LINUX核的内存泄漏检测方法

摘要

Provided in the present invention is a Linux kernel-based memory leakage detection method, applied to detection of memory leakage, the method comprising: reading nodes, and acquiring a return address of every memory page distribution function and the number of memory pages which are distributed correspondingly by the distribution functions; after reading is completed, releasing the return addresses of the distribution functions counted by the nodes and the number of the memory pages which are distributed correspondingly by the distribution functions; reading the nodes again, and acquiring the return address of every distribution function and the number of the memory pages which are distributed correspondingly by the distribution functions; and comparing the number of the memory pages which are correspondingly distributed by the same distribution functions to obtain a difference, and if the difference is a positive value and increases continuously, determining that the memory pages which are distributed correspondingly by the distribution functions are experiencing a leak. According to the described technical solution, the Linux kernel-based memory leakage detection method has the beneficial effects of the consumption of memory being small and distributing and releasing efficiency of the memory are not affected in the process of detecting whether the memory experiences a leak.
机译:本发明提供了一种基于Linux内核的内存泄漏检测方法,适用于内存泄漏的检测,该方法包括:读取节点,获取每个内存页面分配函数的返回地址以及所分配的内存页面数相应地通过分布函数;读取完成后,释放节点计数的分配函数的返回地址和分配函数对应分配的存储页数。再次读取节点,获取每个分配函数的返回地址以及分配函数对应分配的存储页数;比较由同一分配函数对应分配的存储页面的个数,得到差值,如果差为正值且连续增加,则确定由分配函数对应分配的存储页面正经历泄漏。根据上述技术方案,基于Linux内核的内存泄漏检测方法具有以下有益效果:内存消耗小,并且在检测内存是否发生泄漏的过程中不影响内存的分配和释放效率。

著录项

  • 公开/公告号WO2019091244A1

    专利类型

  • 公开/公告日2019-05-16

    原文格式PDF

  • 申请/专利权人 AMLOGIC (SHANGHAI) CO. LTD;

    申请/专利号WO2018CN108103

  • 发明设计人 ZENG TAO;

    申请日2018-09-27

  • 分类号G06F11/36;

  • 国家 WO

  • 入库时间 2022-08-21 11:54:48

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号