Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97fbf3f0 authored by Tzvetomir Stoyanov's avatar Tzvetomir Stoyanov Committed by Arnaldo Carvalho de Melo
Browse files

tools lib traceevent, perf tools: Rename 'struct tep_event_format' to 'struct tep_event'



In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts.

This renames 'struct tep_event_format' to 'struct tep_event', which
describes more closely the purpose of the struct.

Signed-off-by: default avatarTzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20181130154647.436403995@goodmis.org


Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
[ Fixup conflict with 6e33c250a88f ("tools lib traceevent: Fix compile warnings in tools/lib/traceevent/event-parse.c") ]
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4c784894
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 * This returns pointer to the first element of the events array
 * If @tep is NULL, NULL is returned.
 */
struct tep_event_format *tep_get_first_event(struct tep_handle *tep)
struct tep_event *tep_get_first_event(struct tep_handle *tep)
{
	if (tep && tep->events)
		return tep->events[0];
+3 −3
Original line number Diff line number Diff line
@@ -50,9 +50,9 @@ struct tep_handle {
	unsigned int printk_count;


	struct tep_event_format **events;
	struct tep_event **events;
	int nr_events;
	struct tep_event_format **sort_events;
	struct tep_event **sort_events;
	enum tep_event_sort_type last_type;

	int type_offset;
@@ -84,7 +84,7 @@ struct tep_handle {
	struct tep_function_handler *func_handlers;

	/* cache */
	struct tep_event_format *last_event;
	struct tep_event *last_event;

	char *trace_clock;
};
+94 −94

File changed.

Preview size limit exceeded, changes collapsed.

+31 −31

File changed.

Preview size limit exceeded, changes collapsed.

+21 −21

File changed.

Preview size limit exceeded, changes collapsed.

Loading