Back to home page

OSCL-LXR

 
 

    


0001 libtraceevent(3)
0002 ================
0003 
0004 NAME
0005 ----
0006 tep_get_cpus, tep_set_cpus - Get / set the number of CPUs, which have a tracing
0007 buffer representing it. Note, the buffer may be empty.
0008 
0009 SYNOPSIS
0010 --------
0011 [verse]
0012 --
0013 *#include <event-parse.h>*
0014 
0015 int *tep_get_cpus*(struct tep_handle pass:[*]_tep_);
0016 void *tep_set_cpus*(struct tep_handle pass:[*]_tep_, int _cpus_);
0017 --
0018 
0019 DESCRIPTION
0020 -----------
0021 The _tep_get_cpus()_ function gets the number of CPUs, which have a tracing
0022 buffer representing it. The _tep_ argument is trace event parser context.
0023 
0024 The _tep_set_cpus()_ function sets the number of CPUs, which have a tracing
0025 buffer representing it. The _tep_ argument is trace event parser context.
0026 The _cpu_ argument is the number of CPUs with tracing data.
0027 
0028 RETURN VALUE
0029 ------------
0030 The _tep_get_cpus()_ functions returns the number of CPUs, which have tracing
0031 data recorded.
0032 
0033 EXAMPLE
0034 -------
0035 [source,c]
0036 --
0037 #include <event-parse.h>
0038 ...
0039 struct tep_handle *tep = tep_alloc();
0040 ...
0041         tep_set_cpus(tep, 5);
0042 ...
0043         printf("We have tracing data for %d CPUs", tep_get_cpus(tep));
0044 --
0045 
0046 FILES
0047 -----
0048 [verse]
0049 --
0050 *event-parse.h*
0051         Header file to include in order to have access to the library APIs.
0052 *-ltraceevent*
0053         Linker switch to add when building a program that uses the library.
0054 --
0055 
0056 SEE ALSO
0057 --------
0058 _libtraceevent(3)_, _trace-cmd(1)_
0059 
0060 AUTHOR
0061 ------
0062 [verse]
0063 --
0064 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
0065 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
0066 --
0067 REPORTING BUGS
0068 --------------
0069 Report bugs to  <linux-trace-devel@vger.kernel.org>
0070 
0071 LICENSE
0072 -------
0073 libtraceevent is Free Software licensed under the GNU LGPL 2.1
0074 
0075 RESOURCES
0076 ---------
0077 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git