summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/memory/overcommit.stp
blob: 60c48cf6ae26a91415716fea7d1a361dfc62d322 (plain)
1
2
3
4
5
6
7
8
#! /usr/bin/env stap

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