libtraceevent-page_size.txt (1844B)
1libtraceevent(3) 2================ 3 4NAME 5---- 6tep_get_page_size, tep_set_page_size - Get / set the size of a memory page on 7the machine, where the trace is generated 8 9SYNOPSIS 10-------- 11[verse] 12-- 13*#include <event-parse.h>* 14 15int *tep_get_page_size*(struct tep_handle pass:[*]_tep_); 16void *tep_set_page_size*(struct tep_handle pass:[*]_tep_, int _page_size_); 17-- 18 19DESCRIPTION 20----------- 21The _tep_get_page_size()_ function returns the size of a memory page on 22the machine, where the trace is generated. The _tep_ argument is trace 23event parser context. 24 25The _tep_set_page_size()_ function stores in the _tep_ context the size of a 26memory page on the machine, where the trace is generated. 27The _tep_ argument is trace event parser context. 28The _page_size_ argument is the size of a memory page, in bytes. 29 30RETURN VALUE 31------------ 32The _tep_get_page_size()_ function returns size of the memory page, in bytes. 33 34EXAMPLE 35------- 36[source,c] 37-- 38#include <unistd.h> 39#include <event-parse.h> 40... 41struct tep_handle *tep = tep_alloc(); 42... 43 int page_size = getpagesize(); 44 45 tep_set_page_size(tep, page_size); 46 47 printf("The page size for this machine is %d\n", tep_get_page_size(tep)); 48 49-- 50 51FILES 52----- 53[verse] 54-- 55*event-parse.h* 56 Header file to include in order to have access to the library APIs. 57*-ltraceevent* 58 Linker switch to add when building a program that uses the library. 59-- 60 61SEE ALSO 62-------- 63_libtraceevent(3)_, _trace-cmd(1)_ 64 65AUTHOR 66------ 67[verse] 68-- 69*Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*. 70*Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page. 71-- 72REPORTING BUGS 73-------------- 74Report bugs to <linux-trace-devel@vger.kernel.org> 75 76LICENSE 77------- 78libtraceevent is Free Software licensed under the GNU LGPL 2.1 79 80RESOURCES 81--------- 82https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git