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