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