Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>When a program starts to use a certain amount of memory, like 100MB, I want an interrupt to be triggered that will cause a function to run.</p> </blockquote> <p>Depending on requirements. If capturing malloc calls is enought you might be interested:</p> <ul> <li><a href="http://www.jayconrod.com/cgi/view_post.py?23" rel="nofollow noreferrer">Tutorial: Function Interposition in Linux</a> , an example how to make you own malloc substitute, here another relared tutorial : <a href="http://www.ibm.com/developerworks/linux/library/l-memory/index.html" rel="nofollow noreferrer">Inside memory management</a></li> <li><a href="https://stackoverflow.com/questions/262439/create-a-wrapper-function-for-malloc-and-free-in-c">Create a wrapper function for malloc and free in C - stackoverflow.com</a> , especially <a href="http://www.gnu.org/software/libtool/manual/libc/Hooks-for-Malloc.html" rel="nofollow noreferrer">malloc hooks</a></li> <li><a href="http://en.wikipedia.org/wiki/Mtrace" rel="nofollow noreferrer">mtrace at GNU C Library.</a></li> </ul> <p>If, you'd like to capture <a href="http://www.kernel.org/doc/man-pages/online/pages/man2/brk.2.html" rel="nofollow noreferrer">brk(2)</a> as well - (<a href="http://www.linuxjournal.com/article/6390" rel="nofollow noreferrer">related article</a>) , you might like to follow in some of tracing solution</p> <ul> <li>ptrace()</li> <li><a href="http://dev.exherbo.org/~alip/pinktrace/" rel="nofollow noreferrer">pinktrace</a></li> </ul> <p>or binary instrumentation</p> <ul> <li><a href="http://valgrind.org/" rel="nofollow noreferrer">Valgrind</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload