Bug 18503

Summary: procfs .maxsize() overflow should generate error
Product: systemtap Reporter: Frank Ch. Eigler <fche>
Component: runtimeAssignee: Unassigned <systemtap>
Status: RESOLVED FIXED    
Severity: normal CC: flu
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Frank Ch. Eigler 2015-06-08 20:39:12 UTC
probe procfs("foo").read.maxsize(10) {
  $return .= "hello hello hello hello hello hello"
}

... should signal an error or warning, so that a stap script user can tell that her buffer was too small.  (We already detect the overflow, just don't signal it.)
Comment 1 Felix Lu 2015-08-20 14:08:08 UTC
Fixed in commit 3eea5e1066e47b528bff0d92546ef08af110ad13.