This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/15390] New: Add meminfo tapset


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]