[Bug tapsets/15390] New: Add meminfo tapset
Sergey.Klyaus@Tune-IT.Ru
sourceware-bugzilla@sourceware.org
Tue Apr 23 09:43:00 GMT 2013
http://sourceware.org/bugzilla/show_bug.cgi?id=15390
Bug #: 15390
Summary: Add meminfo tapset
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: tapsets
AssignedTo: systemtap@sourceware.org
ReportedBy: Sergey.Klyaus@Tune-IT.Ru
Classification: Unclassified
In Solaris/dtrace I can easily access `freemem of `availrmem variables which
providing information about current free or available memory. Linux also has
in-kernel interfaces, but I have to use Embedded C to access them. I propose
changes to memory.stp tapset which implements these functionality, i.e:
%{
#include <linux/mmzone.h>
%}
function freemem:long() %{
THIS->__retvalue = global_page_state(NR_FREE_PAGES);
%}
However, interface is quite unstable
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Systemtap
mailing list