summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/memory/kmalloc-top.meta
blob: 2dfbf8988746bd8d94b6fc1e50169599d45503b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
title: Show Paths to Kernel Malloc (kmalloc) Invocations
name: kmalloc-top
version: 1.0
author: anonymous
keywords: memory
subsystem: memory
status: production
exit: user-controlled
output: sorted-list
scope: system-wide
description: The kmalloc-top perl program runs a small systemtap script to collect stack traces for each call to the kmalloc function and counts the time that each stack trace is observed. When kmalloc-top exits it prints out sorted list. The output can be be filtered to print only only the first stack traces (-t) stack traces with more a minimum counts (-m), or exclude certain stack traces (-e).
test_check: kmalloc-top -o "-p4" -c "sleep 0"
test_installcheck: kmalloc-top -c "sleep 1"