diff options
Diffstat (limited to 'Documentation/libtraceevent-page_size.txt')
-rw-r--r-- | Documentation/libtraceevent-page_size.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/libtraceevent-page_size.txt b/Documentation/libtraceevent-page_size.txt index 7ffeb79..6d0dd36 100644 --- a/Documentation/libtraceevent-page_size.txt +++ b/Documentation/libtraceevent-page_size.txt @@ -3,7 +3,7 @@ libtraceevent(3) NAME ---- -tep_get_page_size, tep_set_page_size - Get / set the size of a memory page on +tep_get_page_size, tep_set_page_size, tep_get_sub_buffer_size - Get / set the size of a memory page on the machine, where the trace is generated SYNOPSIS @@ -14,6 +14,7 @@ SYNOPSIS int *tep_get_page_size*(struct tep_handle pass:[*]_tep_); void *tep_set_page_size*(struct tep_handle pass:[*]_tep_, int _page_size_); +int *tep_get_sub_buffer_size*(struct tep_handle pass:[*]_tep_); -- DESCRIPTION @@ -27,10 +28,17 @@ memory page on the machine, where the trace is generated. The _tep_ argument is trace event parser context. The _page_size_ argument is the size of a memory page, in bytes. +The *tep_get_sub_buffer_size()* returns the size of each "sub buffer" of the +ring buffer. The Linux kernel ring buffer is broken up into sections called +sub buffers. This returns the size of those buffers. + RETURN VALUE ------------ The *tep_get_page_size()* function returns size of the memory page, in bytes. +The *tep_get_sub_buffer_size()* function returns the number of bytes each sub +buffer is made up of. + EXAMPLE ------- [source,c] |