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

NAME

6       tep_get_cpus, tep_set_cpus - Get / set the number of CPUs, which have a
7       tracing buffer representing it. Note, the buffer may be empty.
8

SYNOPSIS

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

DESCRIPTION

16       The tep_get_cpus() function gets the number of CPUs, which have a
17       tracing buffer representing it. The tep argument is trace event parser
18       context.
19
20       The tep_set_cpus() function sets the number of CPUs, which have a
21       tracing buffer representing it. The tep argument is trace event parser
22       context. The cpu argument is the number of CPUs with tracing data.
23

RETURN VALUE

25       The tep_get_cpus() functions returns the number of CPUs, which have
26       tracing data recorded.
27

EXAMPLE

29           #include <event-parse.h>
30           ...
31           struct tep_handle *tep = tep_alloc();
32           ...
33                   tep_set_cpus(tep, 5);
34           ...
35                   printf("We have tracing data for %d CPUs", tep_get_cpus(tep));
36

FILES

38           event-parse.h
39                   Header file to include in order to have access to the library APIs.
40           -ltraceevent
41                   Linker switch to add when building a program that uses the library.
42

SEE ALSO

44       libtraceevent(3), trace-cmd(1)
45

AUTHOR

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

REPORTING BUGS

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

LICENSE

54       libtraceevent is Free Software licensed under the GNU LGPL 2.1
55

RESOURCES

57       https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
58

NOTES

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