Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 8e87fca2f49595adc16d9aa519a6edad > files > 110

systemtap-1.6-1.fc14.x86_64.rpm

#!/usr/bin/stap

probe kernel.function("__vm_enough_memory").return {
  if ($return != 0) {
      printf("overcommit blocked malloc, process %s (%d), %d pages\n",
             execname(), pid(), $pages)
  }
}