diff options
author | Rajasekhar Duddu <rajduddu@linux.vnet.ibm.com> | 2009-12-21 17:10:54 +0530 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-22 23:44:28 +0100 |
commit | 7f24dd744bc6dbef16024c2ec3cbb0ee8e0d4ee5 (patch) | |
tree | 49c2f67fc75515aa232b7904ca4e7d50a78b8352 /testsuite/buildok/vm.tracepoints.stp | |
parent | 75dfa5cb9b3584995f9e634a6e769b8a1576bc0d (diff) | |
download | systemtap-steved-7f24dd744bc6dbef16024c2ec3cbb0ee8e0d4ee5.tar.gz systemtap-steved-7f24dd744bc6dbef16024c2ec3cbb0ee8e0d4ee5.tar.xz systemtap-steved-7f24dd744bc6dbef16024c2ec3cbb0ee8e0d4ee5.zip |
Tracepoint based tapset for memory subsystem.
Diffstat (limited to 'testsuite/buildok/vm.tracepoints.stp')
-rw-r--r-- | testsuite/buildok/vm.tracepoints.stp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/buildok/vm.tracepoints.stp b/testsuite/buildok/vm.tracepoints.stp new file mode 100644 index 00000000..488ca0fc --- /dev/null +++ b/testsuite/buildok/vm.tracepoints.stp @@ -0,0 +1,31 @@ +#! stap -up4 + +probe vm.kfree { + println(name) + printf("%-15s %-15p %-15s %-15p \n", execname(), call_site, caller_function, ptr) +} + +probe vm.kmalloc { + println(name) + printf("%-15s %-15p %-15s %-15p %-15d %-15d %-15d %-15s \n", execname(), call_site, caller_function, ptr, bytes_req, bytes_alloc, gfp_flags, gfp_flag_name) +} + +probe vm.kmem_cache_alloc { + println(name) + printf("%-15s %-15p %-15s %-15p %-15d %-15d %-15d %-15s \n", execname(), call_site, caller_function, ptr, bytes_req, bytes_alloc, gfp_flags, gfp_flag_name) +} + +probe vm.kmalloc_node { + println(name) + printf("%-15s %-15p %-15s %-15p %-15d %-15d %-15d %-15s \n", execname(), call_site, caller_function, ptr, bytes_req, bytes_alloc, gfp_flags, gfp_flag_name) +} + +probe vm.kmem_cache_alloc_node { + println(name) + printf("%-15s %-15p %-15s %-15p %-15d %-15d %-15d %-15s \n", execname(), call_site, caller_function, ptr, bytes_req, bytes_alloc, gfp_flags, gfp_flag_name) +} + +probe vm.kmem_cache_free { + println(name) + printf("%-15s %-15p %-15s %-15p \n", execname(), call_site, caller_function, ptr) +} |