This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/15390] New: Add meminfo tapset
- From: "Sergey dot Klyaus at Tune-IT dot Ru" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 23 Apr 2013 09:43:19 +0000
- Subject: [Bug tapsets/15390] New: Add meminfo tapset
- Auto-submitted: auto-generated
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.