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

tools lib traceevent: Add prefix tep_ to struct filter_{arg,value_type}

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
struct filter_arg, enum filter_value_type and all enum's members.
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.972818215@goodmis.orgSigned-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4746d22a
...@@ -819,13 +819,13 @@ enum tep_filter_arg_type { ...@@ -819,13 +819,13 @@ enum tep_filter_arg_type {
TEP_FILTER_ARG_STR, TEP_FILTER_ARG_STR,
}; };
enum filter_value_type { enum tep_filter_value_type {
FILTER_NUMBER, TEP_FILTER_NUMBER,
FILTER_STRING, TEP_FILTER_STRING,
FILTER_CHAR TEP_FILTER_CHAR
}; };
struct fliter_arg; struct tep_filter_arg;
struct filter_arg_boolean { struct filter_arg_boolean {
enum tep_filter_boolean_type value; enum tep_filter_boolean_type value;
...@@ -836,7 +836,7 @@ struct filter_arg_field { ...@@ -836,7 +836,7 @@ struct filter_arg_field {
}; };
struct filter_arg_value { struct filter_arg_value {
enum filter_value_type type; enum tep_filter_value_type type;
union { union {
char *str; char *str;
unsigned long long val; unsigned long long val;
...@@ -845,20 +845,20 @@ struct filter_arg_value { ...@@ -845,20 +845,20 @@ struct filter_arg_value {
struct filter_arg_op { struct filter_arg_op {
enum tep_filter_op_type type; enum tep_filter_op_type type;
struct filter_arg *left; struct tep_filter_arg *left;
struct filter_arg *right; struct tep_filter_arg *right;
}; };
struct filter_arg_exp { struct filter_arg_exp {
enum tep_filter_exp_type type; enum tep_filter_exp_type type;
struct filter_arg *left; struct tep_filter_arg *left;
struct filter_arg *right; struct tep_filter_arg *right;
}; };
struct filter_arg_num { struct filter_arg_num {
enum tep_filter_cmp_type type; enum tep_filter_cmp_type type;
struct filter_arg *left; struct tep_filter_arg *left;
struct filter_arg *right; struct tep_filter_arg *right;
}; };
struct filter_arg_str { struct filter_arg_str {
...@@ -869,7 +869,7 @@ struct filter_arg_str { ...@@ -869,7 +869,7 @@ struct filter_arg_str {
regex_t reg; regex_t reg;
}; };
struct filter_arg { struct tep_filter_arg {
enum tep_filter_arg_type type; enum tep_filter_arg_type type;
union { union {
struct filter_arg_boolean boolean; struct filter_arg_boolean boolean;
...@@ -885,7 +885,7 @@ struct filter_arg { ...@@ -885,7 +885,7 @@ struct filter_arg {
struct filter_type { struct filter_type {
int event_id; int event_id;
struct tep_event_format *event; struct tep_event_format *event;
struct filter_arg *filter; struct tep_filter_arg *filter;
}; };
#define TEP_FILTER_ERROR_BUFSZ 1024 #define TEP_FILTER_ERROR_BUFSZ 1024
......
This diff is collapsed.
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