6 tep_event_common_fields, tep_event_fields - Get a list of fields for an event.
12 *#include <event-parse.h>*
14 struct tep_format_field pass:[*]pass:[*]*tep_event_common_fields*(struct tep_event pass:[*]_event_);
15 struct tep_format_field pass:[*]pass:[*]*tep_event_fields*(struct tep_event pass:[*]_event_);
20 The _tep_event_common_fields()_ function returns an array of pointers to common
21 fields for the _event_. The array is allocated in the function and must be freed
22 by free(). The last element of the array is NULL.
24 The _tep_event_fields()_ function returns an array of pointers to event specific
25 fields for the _event_. The array is allocated in the function and must be freed
26 by free(). The last element of the array is NULL.
30 Both _tep_event_common_fields()_ and _tep_event_fields()_ functions return
31 an array of pointers to tep_format_field structures in case of success, or
32 NULL in case of an error.
38 #include <event-parse.h>
40 struct tep_handle *tep = tep_alloc();
43 struct tep_format_field **fields;
44 struct tep_event *event = tep_find_event_by_name(tep, "kvm", "kvm_exit");
46 fields = tep_event_common_fields(event);
51 walk through the list of the common fields
58 fields = tep_event_fields(event);
63 walk through the list of the event specific
64 fields of the kvm_exit event
79 Header file to include in order to have access to the library APIs.
81 Linker switch to add when building a program that uses the library.
86 _libtraceevent(3)_, _trace-cmd(1)_
92 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
93 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
97 Report bugs to <linux-trace-devel@vger.kernel.org>
101 libtraceevent is Free Software licensed under the GNU LGPL 2.1
105 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git