Bug 1121 - print statement
Summary: print statement
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: week
Assignee: Graydon Hoare
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-21 18:16 UTC by Frank Ch. Eigler
Modified: 2005-12-07 23:41 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2005-07-21 18:16:49 UTC
- a structured way of dumping to scalars or entire arrays
- sending formatting instructions to good old _stp_print or friends
Comment 1 Frank Ch. Eigler 2005-11-24 20:27:34 UTC
The tapset/logging.stp's print() script function is made redundant by this work,
right?
Comment 2 Graydon Hoare 2005-11-24 23:17:03 UTC
(In reply to comment #1)
> The tapset/logging.stp's print() script function is made redundant by this work,
> right?

Yes. A function named print, printf, sprintf, or sprint will now be ignored, as
such terms are considered print_format nodes. Perhaps I ought to add an error
check in the elaboration phase to make sure no such functions were defined.
Comment 3 Graydon Hoare 2005-12-07 23:26:34 UTC
this feature is now present in the translator.
Comment 4 Frank Ch. Eigler 2005-12-07 23:41:35 UTC
Just to be clear, the new code lacks printing of entire arrays in a single hop,
but pending the outcome of the MAXACTION discussion, that may be just as well.