| 1 |
title: Count Times Functions Are Called |
| 2 |
name: functioncallcount.stp |
| 3 |
version: 1.0 |
| 4 |
author: anonymous |
| 5 |
keywords: profiling function |
| 6 |
subsystem: any |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: sorted-list on-exit |
| 10 |
scope: system-wide |
| 11 |
description: The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times that each of the functions on the list is called. On exit the script will print a sorted list from most frequently to least frequently called function. |
| 12 |
test_check: stap -wp4 functioncallcount.stp "*@fs/*.c" |
| 13 |
test_installcheck: stap -w functioncallcount.stp "*@fs/*.c" -T 1 |