1LIBTRACEEVENT(3)             libtraceevent Manual             LIBTRACEEVENT(3)
2
3
4

NAME

6       tep_get_page_size, tep_set_page_size - Get / set the size of a memory
7       page on the machine, where the trace is generated
8

SYNOPSIS

10       #include <event-parse.h>
11
12       int tep_get_page_size(struct tep_handle *tep);
13       void tep_set_page_size(struct tep_handle *tep, int page_size);
14

DESCRIPTION

16       The tep_get_page_size() function returns the size of a memory page on
17       the machine, where the trace is generated. The tep argument is trace
18       event parser context.
19
20       The tep_set_page_size() function stores in the tep context the size of
21       a memory page on the machine, where the trace is generated. The tep
22       argument is trace event parser context. The page_size argument is the
23       size of a memory page, in bytes.
24

RETURN VALUE

26       The tep_get_page_size() function returns size of the memory page, in
27       bytes.
28

EXAMPLE

30           #include <unistd.h>
31           #include <event-parse.h>
32           ...
33           struct tep_handle *tep = tep_alloc();
34           ...
35                   int page_size = getpagesize();
36
37                   tep_set_page_size(tep, page_size);
38
39                   printf("The page size for this machine is %d\n", tep_get_page_size(tep));
40

FILES

42           event-parse.h
43                   Header file to include in order to have access to the library APIs.
44           -ltraceevent
45                   Linker switch to add when building a program that uses the library.
46

SEE ALSO

48       libtraceevent(3), trace-cmd(1)
49

AUTHOR

51           Steven Rostedt <rostedt@goodmis.org[1]>, author of libtraceevent.
52           Tzvetomir Stoyanov <tz.stoyanov@gmail.com[2]>, author of this man page.
53

REPORTING BUGS

55       Report bugs to <linux-trace-devel@vger.kernel.org[3]>
56

LICENSE

58       libtraceevent is Free Software licensed under the GNU LGPL 2.1
59

RESOURCES

61       https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
62

NOTES

64        1. rostedt@goodmis.org
65           mailto:rostedt@goodmis.org
66
67        2. tz.stoyanov@gmail.com
68           mailto:tz.stoyanov@gmail.com
69
70        3. linux-trace-devel@vger.kernel.org
71           mailto:linux-trace-devel@vger.kernel.org
72
73
74
75libtraceevent 1.1.1               02/08/2021                  LIBTRACEEVENT(3)
Impressum