diff options
author | ddomingo <ddomingo@redhat.com> | 2009-02-10 12:46:12 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2009-02-10 12:46:12 +1000 |
commit | e0b8b4c0262d7d446a6d207700795f78ccbfe2a4 (patch) | |
tree | 86ad23c73942f2130f260d9e329a5548f11feb27 /testsuite/systemtap.samples/kmalloc-stacks.stp | |
parent | b7287c2e8d75606b96a8bc26eb7c747b89e2ded0 (diff) | |
parent | 890cb11e7e87596423ec8dcc67bcb7444b6b5b90 (diff) | |
download | systemtap-steved-e0b8b4c0262d7d446a6d207700795f78ccbfe2a4.tar.gz systemtap-steved-e0b8b4c0262d7d446a6d207700795f78ccbfe2a4.tar.xz systemtap-steved-e0b8b4c0262d7d446a6d207700795f78ccbfe2a4.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
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(); -} |