diff options
author | Rajasekhar Duddu <rajduddu@linux.vnet.ibm.com> | 2009-12-21 17:10:54 +0530 |
---|---|---|
committer | Prerna Saxena <prerna@linux.vnet.ibm.com> | 2009-12-21 17:10:54 +0530 |
commit | 0c487e433fd6343e49b1e9dbc6492f38cfe26143 (patch) | |
tree | be01ff965b202f6ef59e470934f6610d7b454087 /testsuite/systemtap.examples/memory/vm.tracepoints.stp | |
parent | 261135850dbd4a2efd7d4cbd3d0e3dcde46688ee (diff) | |
download | systemtap-steved-0c487e433fd6343e49b1e9dbc6492f38cfe26143.tar.gz systemtap-steved-0c487e433fd6343e49b1e9dbc6492f38cfe26143.tar.xz systemtap-steved-0c487e433fd6343e49b1e9dbc6492f38cfe26143.zip |
Tracepoint based tapset for memory subsystem.
Diffstat (limited to 'testsuite/systemtap.examples/memory/vm.tracepoints.stp')
-rw-r--r-- | testsuite/systemtap.examples/memory/vm.tracepoints.stp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/systemtap.examples/memory/vm.tracepoints.stp b/testsuite/systemtap.examples/memory/vm.tracepoints.stp new file mode 100644 index 00000000..07cee6f5 --- /dev/null +++ b/testsuite/systemtap.examples/memory/vm.tracepoints.stp @@ -0,0 +1,18 @@ +global slabs + +probe vm.kmem_cache_alloc { + slabs [execname(), bytes_req]<<<1 +} + +probe timer.ms(10000) +{ + dummy = ""; + foreach ([name, bytes] in slabs) { + if (dummy != name) + printf("\nProcess:%s\n", name); + printf("Slab_size:%d\tCount:%d\n", bytes, @count(slabs[name, bytes])); + dummy = name; + } + delete slabs + printf("\n-------------------------------------------------------\n\n") +} |