| 1 |
title: Trace Functions Called in Network Socket Code |
| 2 |
name: socket-trace.stp |
| 3 |
version: 1.0 |
| 4 |
author: anonymous |
| 5 |
keywords: network socket |
| 6 |
subsystem: network |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: trace |
| 10 |
scope: system-wide |
| 11 |
description: The script instruments each of the functions in the Linux kernel's net/socket.c file. The script prints out trace data. The first element of a line is time delta in microseconds from the previous entry. This is followed by the command name and the PID. The "->" and "<-" indicates function entry and function exit, respectively. The last element of the line is the function name. |
| 12 |
test_check: stap -p4 socket-trace.stp |
| 13 |
test_installcheck: stap socket-trace.stp -T 1 |