public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/15390] New: Add meminfo tapset
@ 2013-04-23  9:43 Sergey.Klyaus@Tune-IT.Ru
  2013-04-23  9:43 ` [Bug tapsets/15390] Add /proc/meminfo data to memory.stp tapset Sergey.Klyaus@Tune-IT.Ru
  2013-04-23 14:56 ` dsmith at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: Sergey.Klyaus@Tune-IT.Ru @ 2013-04-23  9:43 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tapsets/15390] Add /proc/meminfo data to memory.stp tapset
  2013-04-23  9:43 [Bug tapsets/15390] New: Add meminfo tapset Sergey.Klyaus@Tune-IT.Ru
@ 2013-04-23  9:43 ` Sergey.Klyaus@Tune-IT.Ru
  2013-04-23 14:56 ` dsmith at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey.Klyaus@Tune-IT.Ru @ 2013-04-23  9:43 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15390

Sergey Klyaus <Sergey.Klyaus@Tune-IT.Ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Add meminfo tapset          |Add /proc/meminfo data to
                   |                            |memory.stp tapset

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tapsets/15390] Add /proc/meminfo data to memory.stp tapset
  2013-04-23  9:43 [Bug tapsets/15390] New: Add meminfo tapset Sergey.Klyaus@Tune-IT.Ru
  2013-04-23  9:43 ` [Bug tapsets/15390] Add /proc/meminfo data to memory.stp tapset Sergey.Klyaus@Tune-IT.Ru
@ 2013-04-23 14:56 ` dsmith at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2013-04-23 14:56 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15390

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsmith at redhat dot com

--- Comment #1 from David Smith <dsmith at redhat dot com> 2013-04-23 14:56:39 UTC ---
This is an interesting idea, that seems doable. You are right, the kernel
internal interface has changed somewhat over time (from looking at 2.6.9 source
vs. current source). For the example you included, I wonder if it wouldn't be
better to go ahead and call si_meminfo(), which would insulate us from kernel
changes a bit.

Which of the /proc/meminfo values would you consider most helpful for stap to
provide?

Another thought I had here was we could to name the stap functions after the
associated /proc/meminfo output, i.e. meminfo_memtotal(), meminfo_memfree(),
meminfo_buffers(), etc.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-23 14:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23  9:43 [Bug tapsets/15390] New: Add meminfo tapset Sergey.Klyaus@Tune-IT.Ru
2013-04-23  9:43 ` [Bug tapsets/15390] Add /proc/meminfo data to memory.stp tapset Sergey.Klyaus@Tune-IT.Ru
2013-04-23 14:56 ` dsmith at redhat dot com

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).