diff options
author | William Cohen <wcohen@redhat.com> | 2009-02-09 10:12:00 -0500 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2009-02-09 10:12:00 -0500 |
commit | 22f971e83eddada009053d964a397550807b9b50 (patch) | |
tree | f27694ca529f2cc1ed2862dcfbb4c49f9e284c6e /testsuite/systemtap.samples/kmalloc-stacks.stp | |
parent | de0db58a72f197e4dff867f9040bfff982035b6f (diff) | |
download | systemtap-steved-22f971e83eddada009053d964a397550807b9b50.tar.gz systemtap-steved-22f971e83eddada009053d964a397550807b9b50.tar.xz systemtap-steved-22f971e83eddada009053d964a397550807b9b50.zip |
Revised version of kmalloc-top in systemtap.examples.
Diffstat (limited to 'testsuite/systemtap.samples/kmalloc-stacks.stp')
-rw-r--r-- | testsuite/systemtap.samples/kmalloc-stacks.stp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/testsuite/systemtap.samples/kmalloc-stacks.stp b/testsuite/systemtap.samples/kmalloc-stacks.stp deleted file mode 100644 index 25a23f2d..00000000 --- a/testsuite/systemtap.samples/kmalloc-stacks.stp +++ /dev/null @@ -1,35 +0,0 @@ -global kmalloc_stack - -function reset_maxaction () %{ - if (CONTEXT && CONTEXT->actioncount) - CONTEXT->actioncount=0; -%} - -function write_output() -{ - foreach (stack in kmalloc_stack) { - log("<hashkey>"); - print_stack(stack); - log("</hashkey>"); - print("<hashval>"); - print(sprint(kmalloc_stack[stack])); - log("</hashval>"); - reset_maxaction(); - } -} - -probe timer.jiffies(5000) -{ - write_output(); - delete kmalloc_stack; -} - -probe kernel.function("__kmalloc") -{ - kmalloc_stack[backtrace()]++; -} - -probe end -{ - write_output(); -} |