This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10690] New: need way to produce bigger procfs output
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 23 Sep 2009 14:17:23 -0000
- Subject: [Bug translator/10690] New: need way to produce bigger procfs output
- Reply-to: sourceware-bugzilla at sourceware dot org
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.