6 tep_get_cpus, tep_set_cpus - Get / set the number of CPUs, which have a tracing
7 buffer representing it. Note, the buffer may be empty.
13 *#include <event-parse.h>*
15 int *tep_get_cpus*(struct tep_handle pass:[*]_tep_);
16 void *tep_set_cpus*(struct tep_handle pass:[*]_tep_, int _cpus_);
21 The _tep_get_cpus()_ function gets the number of CPUs, which have a tracing
22 buffer representing it. The _tep_ argument is trace event parser context.
24 The _tep_set_cpus()_ function sets the number of CPUs, which have a tracing
25 buffer representing it. The _tep_ argument is trace event parser context.
26 The _cpu_ argument is the number of CPUs with tracing data.
30 The _tep_get_cpus()_ functions returns the number of CPUs, which have tracing
37 #include <event-parse.h>
39 struct tep_handle *tep = tep_alloc();
43 printf("We have tracing data for %d CPUs", tep_get_cpus(tep));
51 Header file to include in order to have access to the library APIs.
53 Linker switch to add when building a program that uses the library.
58 _libtraceevent(3)_, _trace-cmd(1)_
64 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
65 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
69 Report bugs to <linux-trace-devel@vger.kernel.org>
73 libtraceevent is Free Software licensed under the GNU LGPL 2.1
77 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git