aboutsummaryrefslogtreecommitdiffstats
path: root/trace-seq.c
Commit message (Collapse)AuthorAge
* trace-cmd: Relicense the library files under LGPLSteven Rostedt2010-02-15
| | | | | | | | | | | | | | | | | | | | All the files that are used to create the libraries: libparsevent and libtracecmd are converted to the LGPL as well as the files to create the plugins. All files now have a boilerplate header that states which license that the file is under. A README file is created as well as the COPYING.LIB which contains the text of the LGPL. All authors of the code that created these files have given their Acks. Acked-by: Darren Hart <dvhltc@us.ibm.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* 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>