gpt4 book ai didi

c - 为什么 mtrace 实用程序不支持 mmap() 分配?

转载 作者:太空宇宙 更新时间:2023-11-04 04:41:50 25 4
gpt4 key购买 nike

为什么 Linux mtrace 实用程序不跟踪通过 mmap()/munmap() 调用完成的内存分配?如何实现以及实现的挑战是什么?

我需要一个可靠的工具来跟踪我的应用程序完成的内存分配,该应用程序大量使用 mmap() 调用。 valgrind 不支持启用 setuid 的应用程序,并发出此错误“无法执行 setuid/setgid 可执行文件::Valgrind 不支持 setuid 可执行文件。”

谢谢,萨拉瓦南

最佳答案

我不知道您使用的是哪个 mtrace 实用程序。但对于 nmap,mtrace 具有不同的实用程序,前提是 http://nmap.org .您必须下载可用的实用程序 http://nmap.org/nsedoc/scripts/mtrace.html .提供以下描述

Queries for the multicast path from a source to a destination host.

This works by sending an IGMP Traceroute Query and listening for IGMP Traceroute responses. The Traceroute Query is sent to the first hop and contains information about source, destination and multicast group addresses. First hop defaults to the multicast All routers address. The default multicast group address is 0.0.0.0 and the default destination is our own host address. A source address must be provided. The responses are parsed to get interesting information about interface addresses, used protocols and error codes.

This is similar to the mtrace utility provided in Cisco IOS.

关于c - 为什么 mtrace 实用程序不支持 mmap() 分配?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25679687/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com