Commit 5647f94b authored by Tzvetomir Stoyanov (VMware)'s avatar Tzvetomir Stoyanov (VMware) Committed by Arnaldo Carvalho de Melo

tools lib traceevent, perf tools: Add prefix tep_ to all print_* structures

In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_". This adds prefix tep_ to all
print_* structures
Signed-off-by: default avatarTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180919185723.381753268@goodmis.orgSigned-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent c1953bcc
This diff is collapsed.
......@@ -161,77 +161,77 @@ struct tep_format {
struct tep_format_field *fields;
};
struct print_arg_atom {
struct tep_print_arg_atom {
char *atom;
};
struct print_arg_string {
struct tep_print_arg_string {
char *string;
int offset;
};
struct print_arg_bitmask {
struct tep_print_arg_bitmask {
char *bitmask;
int offset;
};
struct print_arg_field {
struct tep_print_arg_field {
char *name;
struct tep_format_field *field;
};
struct print_flag_sym {
struct print_flag_sym *next;
struct tep_print_flag_sym {
struct tep_print_flag_sym *next;
char *value;
char *str;
};
struct print_arg_typecast {
struct tep_print_arg_typecast {
char *type;
struct print_arg *item;
struct tep_print_arg *item;
};
struct print_arg_flags {
struct print_arg *field;
struct tep_print_arg_flags {
struct tep_print_arg *field;
char *delim;
struct print_flag_sym *flags;
struct tep_print_flag_sym *flags;
};
struct print_arg_symbol {
struct print_arg *field;
struct print_flag_sym *symbols;
struct tep_print_arg_symbol {
struct tep_print_arg *field;
struct tep_print_flag_sym *symbols;
};
struct print_arg_hex {
struct print_arg *field;
struct print_arg *size;
struct tep_print_arg_hex {
struct tep_print_arg *field;
struct tep_print_arg *size;
};
struct print_arg_int_array {
struct print_arg *field;
struct print_arg *count;
struct print_arg *el_size;
struct tep_print_arg_int_array {
struct tep_print_arg *field;
struct tep_print_arg *count;
struct tep_print_arg *el_size;
};
struct print_arg_dynarray {
struct tep_print_arg_dynarray {
struct tep_format_field *field;
struct print_arg *index;
struct tep_print_arg *index;
};
struct print_arg;
struct tep_print_arg;
struct print_arg_op {
struct tep_print_arg_op {
char *op;
int prio;
struct print_arg *left;
struct print_arg *right;
struct tep_print_arg *left;
struct tep_print_arg *right;
};
struct tep_function_handler;
struct print_arg_func {
struct tep_print_arg_func {
struct tep_function_handler *func;
struct print_arg *args;
struct tep_print_arg *args;
};
enum print_arg_type {
......@@ -253,28 +253,28 @@ enum print_arg_type {
PRINT_HEX_STR,
};
struct print_arg {
struct print_arg *next;
struct tep_print_arg {
struct tep_print_arg *next;
enum print_arg_type type;
union {
struct print_arg_atom atom;
struct print_arg_field field;
struct print_arg_typecast typecast;
struct print_arg_flags flags;
struct print_arg_symbol symbol;
struct print_arg_hex hex;
struct print_arg_int_array int_array;
struct print_arg_func func;
struct print_arg_string string;
struct print_arg_bitmask bitmask;
struct print_arg_op op;
struct print_arg_dynarray dynarray;
struct tep_print_arg_atom atom;
struct tep_print_arg_field field;
struct tep_print_arg_typecast typecast;
struct tep_print_arg_flags flags;
struct tep_print_arg_symbol symbol;
struct tep_print_arg_hex hex;
struct tep_print_arg_int_array int_array;
struct tep_print_arg_func func;
struct tep_print_arg_string string;
struct tep_print_arg_bitmask bitmask;
struct tep_print_arg_op op;
struct tep_print_arg_dynarray dynarray;
};
};
struct print_fmt {
struct tep_print_fmt {
char *format;
struct print_arg *args;
struct tep_print_arg *args;
};
struct tep_event_format {
......@@ -283,7 +283,7 @@ struct tep_event_format {
int id;
int flags;
struct tep_format format;
struct print_fmt print_fmt;
struct tep_print_fmt print_fmt;
char *system;
tep_event_handler_func handler;
void *context;
......
......@@ -99,7 +99,7 @@ static void define_symbolic_value(const char *ev_name,
LEAVE;
}
static void define_symbolic_values(struct print_flag_sym *field,
static void define_symbolic_values(struct tep_print_flag_sym *field,
const char *ev_name,
const char *field_name)
{
......@@ -157,7 +157,7 @@ static void define_flag_value(const char *ev_name,
LEAVE;
}
static void define_flag_values(struct print_flag_sym *field,
static void define_flag_values(struct tep_print_flag_sym *field,
const char *ev_name,
const char *field_name)
{
......@@ -191,7 +191,7 @@ static void define_flag_field(const char *ev_name,
static void define_event_symbols(struct tep_event_format *event,
const char *ev_name,
struct print_arg *args)
struct tep_print_arg *args)
{
if (args == NULL)
return;
......
......@@ -224,7 +224,7 @@ static void define_value(enum print_arg_type field_type,
}
static void define_values(enum print_arg_type field_type,
struct print_flag_sym *field,
struct tep_print_flag_sym *field,
const char *ev_name,
const char *field_name)
{
......@@ -266,7 +266,7 @@ static void define_field(enum print_arg_type field_type,
static void define_event_symbols(struct tep_event_format *event,
const char *ev_name,
struct print_arg *args)
struct tep_print_arg *args)
{
if (args == NULL)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment