aboutsummaryrefslogtreecommitdiffstats
path: root/trace-seq.c
Commit message (Collapse)AuthorAge
* Added trace_seq_terminateSteven Rostedt2009-12-02
| | | | | | | | Added trace_seq_terminate that zeros out the buffer if the buffer is not full. This is useful when data being returned may be used in a printf directly or more data will be added to the trace_seq. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* keep track of buffer fullJohannes Berg2009-11-25
| | | | | | | | | | | | | | | | The trace_seq buffer might fill up, and right now one needs to check the return value of each printf into the buffer to check for that. Instead, have the buffer keep track of whether it is full or not, and reject more input if it is full or would have overflowed with an input that wasn't added. Also simplify the buffer output function and have it print [truncated] when that is the case. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
* Move trace-seq header into parse-events.hSteven Rostedt2009-11-24
| | | | | | | The functions for trace-seq are moving into the parse-events library. We need to keep the headers more consolidated. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* Remove unused functions from trace-seqSteven Rostedt2009-11-24
| | | | | | trace_seq_putmem* and trace_seq_reserve are not used by the parser. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* Add trace-seqSteven Rostedt2009-11-16
The trace-seq is a nice utility I wrote for Linux. It makes a page size buffer that that can be written to with a printf,puts,putc interface. This is perfect for having the same routine write the same type of output, and used separately. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>