libtracefs 1.6

Changes since libtracefs 1.5.0

New API:

 - Can now read the trace_pipe_raw files and send data to file descriptors and
   pipes. The following APIs were added:

        tracefs_cpu_open()		- Open a per CPU raw trace file
        tracefs_cpu_close()		- Close the pre CPU raw trace file
        tracefs_cpu_read_size()		- Get the buffer size to use
        tracefs_cpu_read()		- Read from a pre CPU trace file
        tracefs_cpu_buffered_read()	- Read buffered (piped) from the file
        tracefs_cpu_write()		- Send the per CPU buffer to a file descriptor
        tracefs_cpu_stop()		- Stop the reader that is blocked on the file
        tracefs_cpu_flush()		- Flush out the rest of the file
        tracefs_cpu_flush_write()	- Flush out the rest of the file to another file.

	tracefs_cpu_alloc_fd()		- Open a descriptor from an existing open buffer file
	tracefs_cpu_free_fd()		- Close just the descriptor.

	tracefs_cpu_pipe()		- Send the per CPU file to a pipe.

 - Added tracefs_event_is_enabled()	- Returns the state of an event (or events)

 - tracefs_instance_get_buffer_size()	- Return the current buffer size

 - tracefs_instance_set_buffer_size()	- Set the buffer size.

 - tracefs_tracing_dir_is_mounted()	- Check if tracefs is already mounted
					   (and mount if asked)

 - Added tracefs_follow_event()		- Call a callback when an event is hit
					    in tracefs_iterate_raw_events()

 - Added tracefs_follow_missed_events()	- Call a callback when missed events
					   are hit in tracefs_iterate_raw_events()

 - Created a bunch of unit tests for the above.

 - Updated the man pages to reflect the updates.

Fixes:

 - Added "buckets" field to tracefs_sql()

 - Allow filters to use "COMM" keyword

 - Build fixes.
libtracefs: version 1.6

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed