public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] SNMP tapset
@ 2009-07-07  3:03 David J. Wilder
  0 siblings, 0 replies; only message in thread
From: David J. Wilder @ 2009-07-07  3:03 UTC (permalink / raw)
  To: systemtap

This family of tapsets enhances the kernel's implementation of the
Simple Network Management Protocol (SNMP) by allowing the user to
collect per-socket statistics. SNMP data is collected in the Linux
kernel by counting various events occurring in the networking subsystem.
Linux provides one counter for each type of event, thus providing a
single system-wide collection of network statistics.

The probpoints defined in the SNMP group of tapsets allow users to
aberrate each SNMP counter into groups of counters. For example, the
user may count SNMP events for a single network socket or for a group of
sockets.

These patch include three new tapset each represents a different set of
SMNP MIBS one each for the IP, TCP layers and one for the enhanced linux
MIB. I am also submitting a tapscript called tcpipstat.stp that can be
used to collect per-socket statistics, it is a bit like like netstat -s
on steroids :)

In the kernel, SNMP is implemented using a set of macros. A macro is
placed in the code in each spot where a management event is to be
counted. When I first experimented with writing this tapset I added
markers into these SNMP macros, this made writing of the tapset a snap
as all probes looked identical. An another advantage of the marker
implementation was the ease of maintainability. However, I wanted to
create a tool that could be used in current linux distributions so I
switched to a kprobes implementation that I am now submitting. I plan to
investigating using a tracepoint implementation for a later version.
This will require patches to the SMNP macros being accepted up stream,
we will see how that goes.

Dave...


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-07  3:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-07  3:03 [PATCH 0/6] SNMP tapset David J. Wilder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).