public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10690] New: need way to produce bigger procfs output
@ 2009-09-23 14:17 fche at redhat dot com
  2009-09-23 14:42 ` [Bug translator/10690] " przemyslaw at pawelczyk dot it
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: fche at redhat dot com @ 2009-09-23 14:17 UTC (permalink / raw)
  To: systemtap

There exist uses for procfs("file").write and especially .read,
for which it is desirable for stap scripts to produce much more than
MAXSTRINGLEN bytes of output.

The probe point syntax could be extended to specify a .maxsize(NNN)
option for the probes.  Then, extra syntax of some sort would be
needed to write/read the $value variable.  Perhaps something like
this for the output side:

probe procfs("file").read.maxbuf(8192) {
  $value .= sprint("hello\n")
  $value .= sprint("more and more test\n")
}

(i.e., we'd have to special-case/optimize the concatenate-assign operator.)

I don't have a simple idea about new syntax to parse extra-long incoming
$value strings.  Maybe a special substr that takes string-references instead
of values.?

-- 
           Summary: need way to produce bigger procfs output
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

end of thread, other threads:[~2010-02-24 17:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-23 14:17 [Bug translator/10690] New: need way to produce bigger procfs output fche at redhat dot com
2009-09-23 14:42 ` [Bug translator/10690] " przemyslaw at pawelczyk dot it
2010-01-18 20:15 ` fche at redhat dot com
2010-01-19 22:32 ` dsmith at redhat dot com
2010-01-22 20:58 ` dsmith at redhat dot com
2010-01-22 21:24 ` dsmith at redhat dot com
2010-01-26 19:46 ` dsmith at redhat dot com
2010-02-04 19:21 ` dsmith at redhat dot com
2010-02-04 19:31 ` dsmith at redhat dot com
2010-02-09  0:06 ` jistone at redhat dot com
2010-02-09 15:24 ` fche at redhat dot com
2010-02-24 17:05 ` 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).