| 1 |
title: Show socket lifespan, from accept() to close() (non-debuginfo) |
| 2 |
name: accept2close-nd.stp |
| 3 |
author: Brendan Gregg |
| 4 |
keywords: network socket |
| 5 |
description: This traces socket duration from the accept() syscall to close(), and provides details on the lifespan of these passive connections, showing the distribution as a histogram. |
| 6 |
scope: system-wide |
| 7 |
usage: ./accept2close-nd.stp [min_ms] |
| 8 |
arg_1: Minimum lifespan threshold, in milliseconds. This is an optional argument that can be used to focus on outliers. |
| 9 |
test_check: stap -p4 accept2close-nd.stp |
| 10 |
test_installcheck: stap accept2close-nd.stp -T 1 |