Debian Codegraph @

EXAMPLES/general/sizeof_interactive.meta

raw
1 title: Interactive Print the Size of a C Type
2 name: sizeof_interactive.stp
3 version: 1.0
4 author: Aaron Merey
5 keywords: statistics memory interactive
6 subsystem: any
7 status: proposed
8 exit: user-controlled
9 output: user-controlled
10 scope: system-wide
11 description: This script prints the size of a type, based on dwarf debuginfo for any kernel or userspace module, or trial-compilation of a given header file name. Types and corresponding locations are provided to the script at runtime via keyboard input. The format of the input is identical to that of sizeof.stp (see script source for more information). Types and locations can be repeatedly given until the process is terminated.
12 test_check: stap -p4 sizeof_interactive.stp
13 test_installcheck: echo "FILE '</usr/include/stdio.h>'" | stap sizeof_interactive.stp -T 1