aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.c
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>2018-09-19 14:56:50 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-09-19 16:17:44 -0400
commit1e97216f20330fb001f57d0f6f48e76c060bfd16 (patch)
tree1a2b28ffaae36b6d3a6ffd3df4e7b0b42a251e26 /tools/lib/traceevent/event-parse.c
parent5647f94b90f6681bcc6f37abeb3bc3d1850b12cb (diff)
tools lib traceevent, perf tools: Rename enum print_arg_type to enum tep_print_arg_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 renames enum print_arg_type to enum tep_print_arg_type and add prefix TEP_ to all its members. Signed-off-by: Tzvetomir 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.533960748@goodmis.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r--tools/lib/traceevent/event-parse.c248
1 files changed, 124 insertions, 124 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 3beab91afded..055bee7b738a 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -802,52 +802,52 @@ static void free_arg(struct tep_print_arg *arg)
802 return; 802 return;
803 803
804 switch (arg->type) { 804 switch (arg->type) {
805 case PRINT_ATOM: 805 case TEP_PRINT_ATOM:
806 free(arg->atom.atom); 806 free(arg->atom.atom);
807 break; 807 break;
808 case PRINT_FIELD: 808 case TEP_PRINT_FIELD:
809 free(arg->field.name); 809 free(arg->field.name);
810 break; 810 break;
811 case PRINT_FLAGS: 811 case TEP_PRINT_FLAGS:
812 free_arg(arg->flags.field); 812 free_arg(arg->flags.field);
813 free(arg->flags.delim); 813 free(arg->flags.delim);
814 free_flag_sym(arg->flags.flags); 814 free_flag_sym(arg->flags.flags);
815 break; 815 break;
816 case PRINT_SYMBOL: 816 case TEP_PRINT_SYMBOL:
817 free_arg(arg->symbol.field); 817 free_arg(arg->symbol.field);
818 free_flag_sym(arg->symbol.symbols); 818 free_flag_sym(arg->symbol.symbols);
819 break; 819 break;
820 case PRINT_HEX: 820 case TEP_PRINT_HEX:
821 case PRINT_HEX_STR: 821 case TEP_PRINT_HEX_STR:
822 free_arg(arg->hex.field); 822 free_arg(arg->hex.field);
823 free_arg(arg->hex.size); 823 free_arg(arg->hex.size);
824 break; 824 break;
825 case PRINT_INT_ARRAY: 825 case TEP_PRINT_INT_ARRAY:
826 free_arg(arg->int_array.field); 826 free_arg(arg->int_array.field);
827 free_arg(arg->int_array.count); 827 free_arg(arg->int_array.count);
828 free_arg(arg->int_array.el_size); 828 free_arg(arg->int_array.el_size);
829 break; 829 break;
830 case PRINT_TYPE: 830 case TEP_PRINT_TYPE:
831 free(arg->typecast.type); 831 free(arg->typecast.type);
832 free_arg(arg->typecast.item); 832 free_arg(arg->typecast.item);
833 break; 833 break;
834 case PRINT_STRING: 834 case TEP_PRINT_STRING:
835 case PRINT_BSTRING: 835 case TEP_PRINT_BSTRING:
836 free(arg->string.string); 836 free(arg->string.string);
837 break; 837 break;
838 case PRINT_BITMASK: 838 case TEP_PRINT_BITMASK:
839 free(arg->bitmask.bitmask); 839 free(arg->bitmask.bitmask);
840 break; 840 break;
841 case PRINT_DYNAMIC_ARRAY: 841 case TEP_PRINT_DYNAMIC_ARRAY:
842 case PRINT_DYNAMIC_ARRAY_LEN: 842 case TEP_PRINT_DYNAMIC_ARRAY_LEN:
843 free(arg->dynarray.index); 843 free(arg->dynarray.index);
844 break; 844 break;
845 case PRINT_OP: 845 case TEP_PRINT_OP:
846 free(arg->op.op); 846 free(arg->op.op);
847 free_arg(arg->op.left); 847 free_arg(arg->op.left);
848 free_arg(arg->op.right); 848 free_arg(arg->op.right);
849 break; 849 break;
850 case PRINT_FUNC: 850 case TEP_PRINT_FUNC:
851 while (arg->func.args) { 851 while (arg->func.args) {
852 farg = arg->func.args; 852 farg = arg->func.args;
853 arg->func.args = farg->next; 853 arg->func.args = farg->next;
@@ -855,7 +855,7 @@ static void free_arg(struct tep_print_arg *arg)
855 } 855 }
856 break; 856 break;
857 857
858 case PRINT_NULL: 858 case TEP_PRINT_NULL:
859 default: 859 default:
860 break; 860 break;
861 } 861 }
@@ -1729,7 +1729,7 @@ process_cond(struct tep_event_format *event, struct tep_print_arg *top, char **t
1729 goto out_free; 1729 goto out_free;
1730 } 1730 }
1731 1731
1732 arg->type = PRINT_OP; 1732 arg->type = TEP_PRINT_OP;
1733 arg->op.left = left; 1733 arg->op.left = left;
1734 arg->op.right = right; 1734 arg->op.right = right;
1735 1735
@@ -1859,7 +1859,7 @@ static int set_op_prio(struct tep_print_arg *arg)
1859{ 1859{
1860 1860
1861 /* single ops are the greatest */ 1861 /* single ops are the greatest */
1862 if (!arg->op.left || arg->op.left->type == PRINT_NULL) 1862 if (!arg->op.left || arg->op.left->type == TEP_PRINT_NULL)
1863 arg->op.prio = 0; 1863 arg->op.prio = 0;
1864 else 1864 else
1865 arg->op.prio = get_op_prio(arg->op.op); 1865 arg->op.prio = get_op_prio(arg->op.op);
@@ -1878,7 +1878,7 @@ process_op(struct tep_event_format *event, struct tep_print_arg *arg, char **tok
1878 /* the op is passed in via tok */ 1878 /* the op is passed in via tok */
1879 token = *tok; 1879 token = *tok;
1880 1880
1881 if (arg->type == PRINT_OP && !arg->op.left) { 1881 if (arg->type == TEP_PRINT_OP && !arg->op.left) {
1882 /* handle single op */ 1882 /* handle single op */
1883 if (token[1]) { 1883 if (token[1]) {
1884 do_warning_event(event, "bad op token %s", token); 1884 do_warning_event(event, "bad op token %s", token);
@@ -1901,7 +1901,7 @@ process_op(struct tep_event_format *event, struct tep_print_arg *arg, char **tok
1901 if (!left) 1901 if (!left)
1902 goto out_warn_free; 1902 goto out_warn_free;
1903 1903
1904 left->type = PRINT_NULL; 1904 left->type = TEP_PRINT_NULL;
1905 arg->op.left = left; 1905 arg->op.left = left;
1906 1906
1907 right = alloc_arg(); 1907 right = alloc_arg();
@@ -1923,7 +1923,7 @@ process_op(struct tep_event_format *event, struct tep_print_arg *arg, char **tok
1923 /* copy the top arg to the left */ 1923 /* copy the top arg to the left */
1924 *left = *arg; 1924 *left = *arg;
1925 1925
1926 arg->type = PRINT_OP; 1926 arg->type = TEP_PRINT_OP;
1927 arg->op.op = token; 1927 arg->op.op = token;
1928 arg->op.left = left; 1928 arg->op.left = left;
1929 arg->op.prio = 0; 1929 arg->op.prio = 0;
@@ -1957,7 +1957,7 @@ process_op(struct tep_event_format *event, struct tep_print_arg *arg, char **tok
1957 /* copy the top arg to the left */ 1957 /* copy the top arg to the left */
1958 *left = *arg; 1958 *left = *arg;
1959 1959
1960 arg->type = PRINT_OP; 1960 arg->type = TEP_PRINT_OP;
1961 arg->op.op = token; 1961 arg->op.op = token;
1962 arg->op.left = left; 1962 arg->op.left = left;
1963 arg->op.right = NULL; 1963 arg->op.right = NULL;
@@ -1977,7 +1977,7 @@ process_op(struct tep_event_format *event, struct tep_print_arg *arg, char **tok
1977 type == TEP_EVENT_DELIM && (strcmp(token, ")") == 0)) { 1977 type == TEP_EVENT_DELIM && (strcmp(token, ")") == 0)) {
1978 char *new_atom; 1978 char *new_atom;
1979 1979
1980 if (left->type != PRINT_ATOM) { 1980 if (left->type != TEP_PRINT_ATOM) {
1981 do_warning_event(event, "bad pointer type"); 1981 do_warning_event(event, "bad pointer type");
1982 goto out_free; 1982 goto out_free;
1983 } 1983 }
@@ -2007,7 +2007,7 @@ process_op(struct tep_event_format *event, struct tep_print_arg *arg, char **tok
2007 goto out_free; 2007 goto out_free;
2008 } 2008 }
2009 2009
2010 if (right->type == PRINT_OP && 2010 if (right->type == TEP_PRINT_OP &&
2011 get_op_prio(arg->op.op) < get_op_prio(right->op.op)) { 2011 get_op_prio(arg->op.op) < get_op_prio(right->op.op)) {
2012 struct tep_print_arg tmp; 2012 struct tep_print_arg tmp;
2013 2013
@@ -2031,7 +2031,7 @@ process_op(struct tep_event_format *event, struct tep_print_arg *arg, char **tok
2031 2031
2032 *left = *arg; 2032 *left = *arg;
2033 2033
2034 arg->type = PRINT_OP; 2034 arg->type = TEP_PRINT_OP;
2035 arg->op.op = token; 2035 arg->op.op = token;
2036 arg->op.left = left; 2036 arg->op.left = left;
2037 2037
@@ -2084,7 +2084,7 @@ process_entry(struct tep_event_format *event __maybe_unused, struct tep_print_ar
2084 goto out_free; 2084 goto out_free;
2085 field = token; 2085 field = token;
2086 2086
2087 arg->type = PRINT_FIELD; 2087 arg->type = TEP_PRINT_FIELD;
2088 arg->field.name = field; 2088 arg->field.name = field;
2089 2089
2090 if (is_flag_field) { 2090 if (is_flag_field) {
@@ -2240,7 +2240,7 @@ eval_type_str(unsigned long long val, const char *type, int pointer)
2240static unsigned long long 2240static unsigned long long
2241eval_type(unsigned long long val, struct tep_print_arg *arg, int pointer) 2241eval_type(unsigned long long val, struct tep_print_arg *arg, int pointer)
2242{ 2242{
2243 if (arg->type != PRINT_TYPE) { 2243 if (arg->type != TEP_PRINT_TYPE) {
2244 do_warning("expected type argument"); 2244 do_warning("expected type argument");
2245 return 0; 2245 return 0;
2246 } 2246 }
@@ -2254,16 +2254,16 @@ static int arg_num_eval(struct tep_print_arg *arg, long long *val)
2254 int ret = 1; 2254 int ret = 1;
2255 2255
2256 switch (arg->type) { 2256 switch (arg->type) {
2257 case PRINT_ATOM: 2257 case TEP_PRINT_ATOM:
2258 *val = strtoll(arg->atom.atom, NULL, 0); 2258 *val = strtoll(arg->atom.atom, NULL, 0);
2259 break; 2259 break;
2260 case PRINT_TYPE: 2260 case TEP_PRINT_TYPE:
2261 ret = arg_num_eval(arg->typecast.item, val); 2261 ret = arg_num_eval(arg->typecast.item, val);
2262 if (!ret) 2262 if (!ret)
2263 break; 2263 break;
2264 *val = eval_type(*val, arg, 0); 2264 *val = eval_type(*val, arg, 0);
2265 break; 2265 break;
2266 case PRINT_OP: 2266 case TEP_PRINT_OP:
2267 switch (arg->op.op[0]) { 2267 switch (arg->op.op[0]) {
2268 case '|': 2268 case '|':
2269 ret = arg_num_eval(arg->op.left, &left); 2269 ret = arg_num_eval(arg->op.left, &left);
@@ -2366,7 +2366,7 @@ static int arg_num_eval(struct tep_print_arg *arg, long long *val)
2366 break; 2366 break;
2367 case '-': 2367 case '-':
2368 /* check for negative */ 2368 /* check for negative */
2369 if (arg->op.left->type == PRINT_NULL) 2369 if (arg->op.left->type == TEP_PRINT_NULL)
2370 left = 0; 2370 left = 0;
2371 else 2371 else
2372 ret = arg_num_eval(arg->op.left, &left); 2372 ret = arg_num_eval(arg->op.left, &left);
@@ -2378,7 +2378,7 @@ static int arg_num_eval(struct tep_print_arg *arg, long long *val)
2378 *val = left - right; 2378 *val = left - right;
2379 break; 2379 break;
2380 case '+': 2380 case '+':
2381 if (arg->op.left->type == PRINT_NULL) 2381 if (arg->op.left->type == TEP_PRINT_NULL)
2382 left = 0; 2382 left = 0;
2383 else 2383 else
2384 ret = arg_num_eval(arg->op.left, &left); 2384 ret = arg_num_eval(arg->op.left, &left);
@@ -2401,11 +2401,11 @@ static int arg_num_eval(struct tep_print_arg *arg, long long *val)
2401 } 2401 }
2402 break; 2402 break;
2403 2403
2404 case PRINT_NULL: 2404 case TEP_PRINT_NULL:
2405 case PRINT_FIELD ... PRINT_SYMBOL: 2405 case TEP_PRINT_FIELD ... TEP_PRINT_SYMBOL:
2406 case PRINT_STRING: 2406 case TEP_PRINT_STRING:
2407 case PRINT_BSTRING: 2407 case TEP_PRINT_BSTRING:
2408 case PRINT_BITMASK: 2408 case TEP_PRINT_BITMASK:
2409 default: 2409 default:
2410 do_warning("invalid eval type %d", arg->type); 2410 do_warning("invalid eval type %d", arg->type);
2411 ret = 0; 2411 ret = 0;
@@ -2420,21 +2420,21 @@ static char *arg_eval (struct tep_print_arg *arg)
2420 static char buf[20]; 2420 static char buf[20];
2421 2421
2422 switch (arg->type) { 2422 switch (arg->type) {
2423 case PRINT_ATOM: 2423 case TEP_PRINT_ATOM:
2424 return arg->atom.atom; 2424 return arg->atom.atom;
2425 case PRINT_TYPE: 2425 case TEP_PRINT_TYPE:
2426 return arg_eval(arg->typecast.item); 2426 return arg_eval(arg->typecast.item);
2427 case PRINT_OP: 2427 case TEP_PRINT_OP:
2428 if (!arg_num_eval(arg, &val)) 2428 if (!arg_num_eval(arg, &val))
2429 break; 2429 break;
2430 sprintf(buf, "%lld", val); 2430 sprintf(buf, "%lld", val);
2431 return buf; 2431 return buf;
2432 2432
2433 case PRINT_NULL: 2433 case TEP_PRINT_NULL:
2434 case PRINT_FIELD ... PRINT_SYMBOL: 2434 case TEP_PRINT_FIELD ... TEP_PRINT_SYMBOL:
2435 case PRINT_STRING: 2435 case TEP_PRINT_STRING:
2436 case PRINT_BSTRING: 2436 case TEP_PRINT_BSTRING:
2437 case PRINT_BITMASK: 2437 case TEP_PRINT_BITMASK:
2438 default: 2438 default:
2439 do_warning("invalid eval type %d", arg->type); 2439 do_warning("invalid eval type %d", arg->type);
2440 break; 2440 break;
@@ -2532,7 +2532,7 @@ process_flags(struct tep_event_format *event, struct tep_print_arg *arg, char **
2532 char *token = NULL; 2532 char *token = NULL;
2533 2533
2534 memset(arg, 0, sizeof(*arg)); 2534 memset(arg, 0, sizeof(*arg));
2535 arg->type = PRINT_FLAGS; 2535 arg->type = TEP_PRINT_FLAGS;
2536 2536
2537 field = alloc_arg(); 2537 field = alloc_arg();
2538 if (!field) { 2538 if (!field) {
@@ -2585,7 +2585,7 @@ process_symbols(struct tep_event_format *event, struct tep_print_arg *arg, char
2585 char *token = NULL; 2585 char *token = NULL;
2586 2586
2587 memset(arg, 0, sizeof(*arg)); 2587 memset(arg, 0, sizeof(*arg));
2588 arg->type = PRINT_SYMBOL; 2588 arg->type = TEP_PRINT_SYMBOL;
2589 2589
2590 field = alloc_arg(); 2590 field = alloc_arg();
2591 if (!field) { 2591 if (!field) {
@@ -2618,7 +2618,7 @@ out_free:
2618 2618
2619static enum tep_event_type 2619static enum tep_event_type
2620process_hex_common(struct tep_event_format *event, struct tep_print_arg *arg, 2620process_hex_common(struct tep_event_format *event, struct tep_print_arg *arg,
2621 char **tok, enum print_arg_type type) 2621 char **tok, enum tep_print_arg_type type)
2622{ 2622{
2623 memset(arg, 0, sizeof(*arg)); 2623 memset(arg, 0, sizeof(*arg));
2624 arg->type = type; 2624 arg->type = type;
@@ -2642,21 +2642,21 @@ out:
2642static enum tep_event_type 2642static enum tep_event_type
2643process_hex(struct tep_event_format *event, struct tep_print_arg *arg, char **tok) 2643process_hex(struct tep_event_format *event, struct tep_print_arg *arg, char **tok)
2644{ 2644{
2645 return process_hex_common(event, arg, tok, PRINT_HEX); 2645 return process_hex_common(event, arg, tok, TEP_PRINT_HEX);
2646} 2646}
2647 2647
2648static enum tep_event_type 2648static enum tep_event_type
2649process_hex_str(struct tep_event_format *event, struct tep_print_arg *arg, 2649process_hex_str(struct tep_event_format *event, struct tep_print_arg *arg,
2650 char **tok) 2650 char **tok)
2651{ 2651{
2652 return process_hex_common(event, arg, tok, PRINT_HEX_STR); 2652 return process_hex_common(event, arg, tok, TEP_PRINT_HEX_STR);
2653} 2653}
2654 2654
2655static enum tep_event_type 2655static enum tep_event_type
2656process_int_array(struct tep_event_format *event, struct tep_print_arg *arg, char **tok) 2656process_int_array(struct tep_event_format *event, struct tep_print_arg *arg, char **tok)
2657{ 2657{
2658 memset(arg, 0, sizeof(*arg)); 2658 memset(arg, 0, sizeof(*arg));
2659 arg->type = PRINT_INT_ARRAY; 2659 arg->type = TEP_PRINT_INT_ARRAY;
2660 2660
2661 if (alloc_and_process_delim(event, ",", &arg->int_array.field)) 2661 if (alloc_and_process_delim(event, ",", &arg->int_array.field))
2662 goto out; 2662 goto out;
@@ -2688,7 +2688,7 @@ process_dynamic_array(struct tep_event_format *event, struct tep_print_arg *arg,
2688 char *token; 2688 char *token;
2689 2689
2690 memset(arg, 0, sizeof(*arg)); 2690 memset(arg, 0, sizeof(*arg));
2691 arg->type = PRINT_DYNAMIC_ARRAY; 2691 arg->type = TEP_PRINT_DYNAMIC_ARRAY;
2692 2692
2693 /* 2693 /*
2694 * The item within the parenthesis is another field that holds 2694 * The item within the parenthesis is another field that holds
@@ -2755,7 +2755,7 @@ process_dynamic_array_len(struct tep_event_format *event, struct tep_print_arg *
2755 if (read_expect_type(TEP_EVENT_ITEM, &token) < 0) 2755 if (read_expect_type(TEP_EVENT_ITEM, &token) < 0)
2756 goto out_free; 2756 goto out_free;
2757 2757
2758 arg->type = PRINT_DYNAMIC_ARRAY_LEN; 2758 arg->type = TEP_PRINT_DYNAMIC_ARRAY_LEN;
2759 2759
2760 /* Find the field */ 2760 /* Find the field */
2761 field = tep_find_field(event, token); 2761 field = tep_find_field(event, token);
@@ -2814,8 +2814,8 @@ process_paren(struct tep_event_format *event, struct tep_print_arg *arg, char **
2814 /* make this a typecast and contine */ 2814 /* make this a typecast and contine */
2815 2815
2816 /* prevous must be an atom */ 2816 /* prevous must be an atom */
2817 if (arg->type != PRINT_ATOM) { 2817 if (arg->type != TEP_PRINT_ATOM) {
2818 do_warning_event(event, "previous needed to be PRINT_ATOM"); 2818 do_warning_event(event, "previous needed to be TEP_PRINT_ATOM");
2819 goto out_free; 2819 goto out_free;
2820 } 2820 }
2821 2821
@@ -2826,7 +2826,7 @@ process_paren(struct tep_event_format *event, struct tep_print_arg *arg, char **
2826 goto out_free; 2826 goto out_free;
2827 } 2827 }
2828 2828
2829 arg->type = PRINT_TYPE; 2829 arg->type = TEP_PRINT_TYPE;
2830 arg->typecast.type = arg->atom.atom; 2830 arg->typecast.type = arg->atom.atom;
2831 arg->typecast.item = item_arg; 2831 arg->typecast.item = item_arg;
2832 type = process_arg_token(event, item_arg, &token, type); 2832 type = process_arg_token(event, item_arg, &token, type);
@@ -2853,7 +2853,7 @@ process_str(struct tep_event_format *event __maybe_unused, struct tep_print_arg
2853 if (read_expect_type(TEP_EVENT_ITEM, &token) < 0) 2853 if (read_expect_type(TEP_EVENT_ITEM, &token) < 0)
2854 goto out_free; 2854 goto out_free;
2855 2855
2856 arg->type = PRINT_STRING; 2856 arg->type = TEP_PRINT_STRING;
2857 arg->string.string = token; 2857 arg->string.string = token;
2858 arg->string.offset = -1; 2858 arg->string.offset = -1;
2859 2859
@@ -2882,7 +2882,7 @@ process_bitmask(struct tep_event_format *event __maybe_unused, struct tep_print_
2882 if (read_expect_type(TEP_EVENT_ITEM, &token) < 0) 2882 if (read_expect_type(TEP_EVENT_ITEM, &token) < 0)
2883 goto out_free; 2883 goto out_free;
2884 2884
2885 arg->type = PRINT_BITMASK; 2885 arg->type = TEP_PRINT_BITMASK;
2886 arg->bitmask.bitmask = token; 2886 arg->bitmask.bitmask = token;
2887 arg->bitmask.offset = -1; 2887 arg->bitmask.offset = -1;
2888 2888
@@ -2943,7 +2943,7 @@ process_func_handler(struct tep_event_format *event, struct tep_function_handler
2943 char *token; 2943 char *token;
2944 int i; 2944 int i;
2945 2945
2946 arg->type = PRINT_FUNC; 2946 arg->type = TEP_PRINT_FUNC;
2947 arg->func.func = func; 2947 arg->func.func = func;
2948 2948
2949 *tok = NULL; 2949 *tok = NULL;
@@ -3096,13 +3096,13 @@ process_arg_token(struct tep_event_format *event, struct tep_print_arg *arg,
3096 type = read_token_item(&token); 3096 type = read_token_item(&token);
3097 } 3097 }
3098 3098
3099 arg->type = PRINT_ATOM; 3099 arg->type = TEP_PRINT_ATOM;
3100 arg->atom.atom = atom; 3100 arg->atom.atom = atom;
3101 break; 3101 break;
3102 3102
3103 case TEP_EVENT_DQUOTE: 3103 case TEP_EVENT_DQUOTE:
3104 case TEP_EVENT_SQUOTE: 3104 case TEP_EVENT_SQUOTE:
3105 arg->type = PRINT_ATOM; 3105 arg->type = TEP_PRINT_ATOM;
3106 arg->atom.atom = token; 3106 arg->atom.atom = token;
3107 type = read_token_item(&token); 3107 type = read_token_item(&token);
3108 break; 3108 break;
@@ -3114,7 +3114,7 @@ process_arg_token(struct tep_event_format *event, struct tep_print_arg *arg,
3114 } 3114 }
3115 case TEP_EVENT_OP: 3115 case TEP_EVENT_OP:
3116 /* handle single ops */ 3116 /* handle single ops */
3117 arg->type = PRINT_OP; 3117 arg->type = TEP_PRINT_OP;
3118 arg->op.op = token; 3118 arg->op.op = token;
3119 arg->op.left = NULL; 3119 arg->op.left = NULL;
3120 type = process_op(event, arg, &token); 3120 type = process_op(event, arg, &token);
@@ -3533,12 +3533,12 @@ eval_num_arg(void *data, int size, struct tep_event_format *event, struct tep_pr
3533 unsigned int field_size; 3533 unsigned int field_size;
3534 3534
3535 switch (arg->type) { 3535 switch (arg->type) {
3536 case PRINT_NULL: 3536 case TEP_PRINT_NULL:
3537 /* ?? */ 3537 /* ?? */
3538 return 0; 3538 return 0;
3539 case PRINT_ATOM: 3539 case TEP_PRINT_ATOM:
3540 return strtoull(arg->atom.atom, NULL, 0); 3540 return strtoull(arg->atom.atom, NULL, 0);
3541 case PRINT_FIELD: 3541 case TEP_PRINT_FIELD:
3542 if (!arg->field.field) { 3542 if (!arg->field.field) {
3543 arg->field.field = tep_find_any_field(event, arg->field.name); 3543 arg->field.field = tep_find_any_field(event, arg->field.name);
3544 if (!arg->field.field) 3544 if (!arg->field.field)
@@ -3549,27 +3549,27 @@ eval_num_arg(void *data, int size, struct tep_event_format *event, struct tep_pr
3549 val = tep_read_number(pevent, data + arg->field.field->offset, 3549 val = tep_read_number(pevent, data + arg->field.field->offset,
3550 arg->field.field->size); 3550 arg->field.field->size);
3551 break; 3551 break;
3552 case PRINT_FLAGS: 3552 case TEP_PRINT_FLAGS:
3553 case PRINT_SYMBOL: 3553 case TEP_PRINT_SYMBOL:
3554 case PRINT_INT_ARRAY: 3554 case TEP_PRINT_INT_ARRAY:
3555 case PRINT_HEX: 3555 case TEP_PRINT_HEX:
3556 case PRINT_HEX_STR: 3556 case TEP_PRINT_HEX_STR:
3557 break; 3557 break;
3558 case PRINT_TYPE: 3558 case TEP_PRINT_TYPE:
3559 val = eval_num_arg(data, size, event, arg->typecast.item); 3559 val = eval_num_arg(data, size, event, arg->typecast.item);
3560 return eval_type(val, arg, 0); 3560 return eval_type(val, arg, 0);
3561 case PRINT_STRING: 3561 case TEP_PRINT_STRING:
3562 case PRINT_BSTRING: 3562 case TEP_PRINT_BSTRING:
3563 case PRINT_BITMASK: 3563 case TEP_PRINT_BITMASK:
3564 return 0; 3564 return 0;
3565 case PRINT_FUNC: { 3565 case TEP_PRINT_FUNC: {
3566 struct trace_seq s; 3566 struct trace_seq s;
3567 trace_seq_init(&s); 3567 trace_seq_init(&s);
3568 val = process_defined_func(&s, data, size, event, arg); 3568 val = process_defined_func(&s, data, size, event, arg);
3569 trace_seq_destroy(&s); 3569 trace_seq_destroy(&s);
3570 return val; 3570 return val;
3571 } 3571 }
3572 case PRINT_OP: 3572 case TEP_PRINT_OP:
3573 if (strcmp(arg->op.op, "[") == 0) { 3573 if (strcmp(arg->op.op, "[") == 0) {
3574 /* 3574 /*
3575 * Arrays are special, since we don't want 3575 * Arrays are special, since we don't want
@@ -3579,7 +3579,7 @@ eval_num_arg(void *data, int size, struct tep_event_format *event, struct tep_pr
3579 3579
3580 /* handle typecasts */ 3580 /* handle typecasts */
3581 larg = arg->op.left; 3581 larg = arg->op.left;
3582 while (larg->type == PRINT_TYPE) { 3582 while (larg->type == TEP_PRINT_TYPE) {
3583 if (!typearg) 3583 if (!typearg)
3584 typearg = larg; 3584 typearg = larg;
3585 larg = larg->typecast.item; 3585 larg = larg->typecast.item;
@@ -3589,7 +3589,7 @@ eval_num_arg(void *data, int size, struct tep_event_format *event, struct tep_pr
3589 field_size = pevent->long_size; 3589 field_size = pevent->long_size;
3590 3590
3591 switch (larg->type) { 3591 switch (larg->type) {
3592 case PRINT_DYNAMIC_ARRAY: 3592 case TEP_PRINT_DYNAMIC_ARRAY:
3593 offset = tep_read_number(pevent, 3593 offset = tep_read_number(pevent,
3594 data + larg->dynarray.field->offset, 3594 data + larg->dynarray.field->offset,
3595 larg->dynarray.field->size); 3595 larg->dynarray.field->size);
@@ -3603,7 +3603,7 @@ eval_num_arg(void *data, int size, struct tep_event_format *event, struct tep_pr
3603 offset &= 0xffff; 3603 offset &= 0xffff;
3604 offset += right; 3604 offset += right;
3605 break; 3605 break;
3606 case PRINT_FIELD: 3606 case TEP_PRINT_FIELD:
3607 if (!larg->field.field) { 3607 if (!larg->field.field) {
3608 larg->field.field = 3608 larg->field.field =
3609 tep_find_any_field(event, larg->field.name); 3609 tep_find_any_field(event, larg->field.name);
@@ -3719,7 +3719,7 @@ eval_num_arg(void *data, int size, struct tep_event_format *event, struct tep_pr
3719 goto out_warning_op; 3719 goto out_warning_op;
3720 } 3720 }
3721 break; 3721 break;
3722 case PRINT_DYNAMIC_ARRAY_LEN: 3722 case TEP_PRINT_DYNAMIC_ARRAY_LEN:
3723 offset = tep_read_number(pevent, 3723 offset = tep_read_number(pevent,
3724 data + arg->dynarray.field->offset, 3724 data + arg->dynarray.field->offset,
3725 arg->dynarray.field->size); 3725 arg->dynarray.field->size);
@@ -3730,7 +3730,7 @@ eval_num_arg(void *data, int size, struct tep_event_format *event, struct tep_pr
3730 */ 3730 */
3731 val = (unsigned long long)(offset >> 16); 3731 val = (unsigned long long)(offset >> 16);
3732 break; 3732 break;
3733 case PRINT_DYNAMIC_ARRAY: 3733 case TEP_PRINT_DYNAMIC_ARRAY:
3734 /* Without [], we pass the address to the dynamic data */ 3734 /* Without [], we pass the address to the dynamic data */
3735 offset = tep_read_number(pevent, 3735 offset = tep_read_number(pevent,
3736 data + arg->dynarray.field->offset, 3736 data + arg->dynarray.field->offset,
@@ -3877,13 +3877,13 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
3877 int i, len; 3877 int i, len;
3878 3878
3879 switch (arg->type) { 3879 switch (arg->type) {
3880 case PRINT_NULL: 3880 case TEP_PRINT_NULL:
3881 /* ?? */ 3881 /* ?? */
3882 return; 3882 return;
3883 case PRINT_ATOM: 3883 case TEP_PRINT_ATOM:
3884 print_str_to_seq(s, format, len_arg, arg->atom.atom); 3884 print_str_to_seq(s, format, len_arg, arg->atom.atom);
3885 return; 3885 return;
3886 case PRINT_FIELD: 3886 case TEP_PRINT_FIELD:
3887 field = arg->field.field; 3887 field = arg->field.field;
3888 if (!field) { 3888 if (!field) {
3889 field = tep_find_any_field(event, arg->field.name); 3889 field = tep_find_any_field(event, arg->field.name);
@@ -3940,7 +3940,7 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
3940 print_str_to_seq(s, format, len_arg, str); 3940 print_str_to_seq(s, format, len_arg, str);
3941 free(str); 3941 free(str);
3942 break; 3942 break;
3943 case PRINT_FLAGS: 3943 case TEP_PRINT_FLAGS:
3944 val = eval_num_arg(data, size, event, arg->flags.field); 3944 val = eval_num_arg(data, size, event, arg->flags.field);
3945 print = 0; 3945 print = 0;
3946 for (flag = arg->flags.flags; flag; flag = flag->next) { 3946 for (flag = arg->flags.flags; flag; flag = flag->next) {
@@ -3963,7 +3963,7 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
3963 trace_seq_printf(s, "0x%llx", val); 3963 trace_seq_printf(s, "0x%llx", val);
3964 } 3964 }
3965 break; 3965 break;
3966 case PRINT_SYMBOL: 3966 case TEP_PRINT_SYMBOL:
3967 val = eval_num_arg(data, size, event, arg->symbol.field); 3967 val = eval_num_arg(data, size, event, arg->symbol.field);
3968 for (flag = arg->symbol.symbols; flag; flag = flag->next) { 3968 for (flag = arg->symbol.symbols; flag; flag = flag->next) {
3969 fval = eval_flag(flag->value); 3969 fval = eval_flag(flag->value);
@@ -3975,9 +3975,9 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
3975 if (!flag) 3975 if (!flag)
3976 trace_seq_printf(s, "0x%llx", val); 3976 trace_seq_printf(s, "0x%llx", val);
3977 break; 3977 break;
3978 case PRINT_HEX: 3978 case TEP_PRINT_HEX:
3979 case PRINT_HEX_STR: 3979 case TEP_PRINT_HEX_STR:
3980 if (arg->hex.field->type == PRINT_DYNAMIC_ARRAY) { 3980 if (arg->hex.field->type == TEP_PRINT_DYNAMIC_ARRAY) {
3981 unsigned long offset; 3981 unsigned long offset;
3982 offset = tep_read_number(pevent, 3982 offset = tep_read_number(pevent,
3983 data + arg->hex.field->dynarray.field->offset, 3983 data + arg->hex.field->dynarray.field->offset,
@@ -3996,17 +3996,17 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
3996 } 3996 }
3997 len = eval_num_arg(data, size, event, arg->hex.size); 3997 len = eval_num_arg(data, size, event, arg->hex.size);
3998 for (i = 0; i < len; i++) { 3998 for (i = 0; i < len; i++) {
3999 if (i && arg->type == PRINT_HEX) 3999 if (i && arg->type == TEP_PRINT_HEX)
4000 trace_seq_putc(s, ' '); 4000 trace_seq_putc(s, ' ');
4001 trace_seq_printf(s, "%02x", hex[i]); 4001 trace_seq_printf(s, "%02x", hex[i]);
4002 } 4002 }
4003 break; 4003 break;
4004 4004
4005 case PRINT_INT_ARRAY: { 4005 case TEP_PRINT_INT_ARRAY: {
4006 void *num; 4006 void *num;
4007 int el_size; 4007 int el_size;
4008 4008
4009 if (arg->int_array.field->type == PRINT_DYNAMIC_ARRAY) { 4009 if (arg->int_array.field->type == TEP_PRINT_DYNAMIC_ARRAY) {
4010 unsigned long offset; 4010 unsigned long offset;
4011 struct tep_format_field *field = 4011 struct tep_format_field *field =
4012 arg->int_array.field->dynarray.field; 4012 arg->int_array.field->dynarray.field;
@@ -4050,9 +4050,9 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
4050 } 4050 }
4051 break; 4051 break;
4052 } 4052 }
4053 case PRINT_TYPE: 4053 case TEP_PRINT_TYPE:
4054 break; 4054 break;
4055 case PRINT_STRING: { 4055 case TEP_PRINT_STRING: {
4056 int str_offset; 4056 int str_offset;
4057 4057
4058 if (arg->string.offset == -1) { 4058 if (arg->string.offset == -1) {
@@ -4066,10 +4066,10 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
4066 print_str_to_seq(s, format, len_arg, ((char *)data) + str_offset); 4066 print_str_to_seq(s, format, len_arg, ((char *)data) + str_offset);
4067 break; 4067 break;
4068 } 4068 }
4069 case PRINT_BSTRING: 4069 case TEP_PRINT_BSTRING:
4070 print_str_to_seq(s, format, len_arg, arg->string.string); 4070 print_str_to_seq(s, format, len_arg, arg->string.string);
4071 break; 4071 break;
4072 case PRINT_BITMASK: { 4072 case TEP_PRINT_BITMASK: {
4073 int bitmask_offset; 4073 int bitmask_offset;
4074 int bitmask_size; 4074 int bitmask_size;
4075 4075
@@ -4086,7 +4086,7 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
4086 data + bitmask_offset, bitmask_size); 4086 data + bitmask_offset, bitmask_size);
4087 break; 4087 break;
4088 } 4088 }
4089 case PRINT_OP: 4089 case TEP_PRINT_OP:
4090 /* 4090 /*
4091 * The only op for string should be ? : 4091 * The only op for string should be ? :
4092 */ 4092 */
@@ -4100,7 +4100,7 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
4100 print_str_arg(s, data, size, event, 4100 print_str_arg(s, data, size, event,
4101 format, len_arg, arg->op.right->op.right); 4101 format, len_arg, arg->op.right->op.right);
4102 break; 4102 break;
4103 case PRINT_FUNC: 4103 case TEP_PRINT_FUNC:
4104 process_defined_func(s, data, size, event, arg); 4104 process_defined_func(s, data, size, event, arg);
4105 break; 4105 break;
4106 default: 4106 default:
@@ -4255,7 +4255,7 @@ static struct tep_print_arg *make_bprint_args(char *fmt, void *data, int size, s
4255 arg->next = NULL; 4255 arg->next = NULL;
4256 next = &arg->next; 4256 next = &arg->next;
4257 4257
4258 arg->type = PRINT_ATOM; 4258 arg->type = TEP_PRINT_ATOM;
4259 4259
4260 if (asprintf(&arg->atom.atom, "%lld", ip) < 0) 4260 if (asprintf(&arg->atom.atom, "%lld", ip) < 0)
4261 goto out_free; 4261 goto out_free;
@@ -4343,7 +4343,7 @@ static struct tep_print_arg *make_bprint_args(char *fmt, void *data, int size, s
4343 goto out_free; 4343 goto out_free;
4344 } 4344 }
4345 arg->next = NULL; 4345 arg->next = NULL;
4346 arg->type = PRINT_ATOM; 4346 arg->type = TEP_PRINT_ATOM;
4347 if (asprintf(&arg->atom.atom, "%lld", val) < 0) { 4347 if (asprintf(&arg->atom.atom, "%lld", val) < 0) {
4348 free(arg); 4348 free(arg);
4349 goto out_free; 4349 goto out_free;
@@ -4367,7 +4367,7 @@ static struct tep_print_arg *make_bprint_args(char *fmt, void *data, int size, s
4367 goto out_free; 4367 goto out_free;
4368 } 4368 }
4369 arg->next = NULL; 4369 arg->next = NULL;
4370 arg->type = PRINT_BSTRING; 4370 arg->type = TEP_PRINT_BSTRING;
4371 arg->string.string = strdup(bptr); 4371 arg->string.string = strdup(bptr);
4372 if (!arg->string.string) 4372 if (!arg->string.string)
4373 goto out_free; 4373 goto out_free;
@@ -4429,12 +4429,12 @@ static void print_mac_arg(struct trace_seq *s, int mac, void *data, int size,
4429 unsigned char *buf; 4429 unsigned char *buf;
4430 const char *fmt = "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x"; 4430 const char *fmt = "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x";
4431 4431
4432 if (arg->type == PRINT_FUNC) { 4432 if (arg->type == TEP_PRINT_FUNC) {
4433 process_defined_func(s, data, size, event, arg); 4433 process_defined_func(s, data, size, event, arg);
4434 return; 4434 return;
4435 } 4435 }
4436 4436
4437 if (arg->type != PRINT_FIELD) { 4437 if (arg->type != TEP_PRINT_FIELD) {
4438 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", 4438 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d",
4439 arg->type); 4439 arg->type);
4440 return; 4440 return;
@@ -4582,12 +4582,12 @@ static int print_ipv4_arg(struct trace_seq *s, const char *ptr, char i,
4582{ 4582{
4583 unsigned char *buf; 4583 unsigned char *buf;
4584 4584
4585 if (arg->type == PRINT_FUNC) { 4585 if (arg->type == TEP_PRINT_FUNC) {
4586 process_defined_func(s, data, size, event, arg); 4586 process_defined_func(s, data, size, event, arg);
4587 return 0; 4587 return 0;
4588 } 4588 }
4589 4589
4590 if (arg->type != PRINT_FIELD) { 4590 if (arg->type != TEP_PRINT_FIELD) {
4591 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type); 4591 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type);
4592 return 0; 4592 return 0;
4593 } 4593 }
@@ -4628,12 +4628,12 @@ static int print_ipv6_arg(struct trace_seq *s, const char *ptr, char i,
4628 rc++; 4628 rc++;
4629 } 4629 }
4630 4630
4631 if (arg->type == PRINT_FUNC) { 4631 if (arg->type == TEP_PRINT_FUNC) {
4632 process_defined_func(s, data, size, event, arg); 4632 process_defined_func(s, data, size, event, arg);
4633 return rc; 4633 return rc;
4634 } 4634 }
4635 4635
4636 if (arg->type != PRINT_FIELD) { 4636 if (arg->type != TEP_PRINT_FIELD) {
4637 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type); 4637 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type);
4638 return rc; 4638 return rc;
4639 } 4639 }
@@ -4686,12 +4686,12 @@ static int print_ipsa_arg(struct trace_seq *s, const char *ptr, char i,
4686 } 4686 }
4687 } 4687 }
4688 4688
4689 if (arg->type == PRINT_FUNC) { 4689 if (arg->type == TEP_PRINT_FUNC) {
4690 process_defined_func(s, data, size, event, arg); 4690 process_defined_func(s, data, size, event, arg);
4691 return rc; 4691 return rc;
4692 } 4692 }
4693 4693
4694 if (arg->type != PRINT_FIELD) { 4694 if (arg->type != TEP_PRINT_FIELD) {
4695 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type); 4695 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type);
4696 return rc; 4696 return rc;
4697 } 4697 }
@@ -4967,7 +4967,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_e
4967 if (isalnum(ptr[1])) 4967 if (isalnum(ptr[1]))
4968 ptr++; 4968 ptr++;
4969 4969
4970 if (arg->type == PRINT_BSTRING) { 4970 if (arg->type == TEP_PRINT_BSTRING) {
4971 trace_seq_puts(s, arg->string.string); 4971 trace_seq_puts(s, arg->string.string);
4972 break; 4972 break;
4973 } 4973 }
@@ -5739,16 +5739,16 @@ static void print_args(struct tep_print_arg *args)
5739 struct trace_seq s; 5739 struct trace_seq s;
5740 5740
5741 switch (args->type) { 5741 switch (args->type) {
5742 case PRINT_NULL: 5742 case TEP_PRINT_NULL:
5743 printf("null"); 5743 printf("null");
5744 break; 5744 break;
5745 case PRINT_ATOM: 5745 case TEP_PRINT_ATOM:
5746 printf("%s", args->atom.atom); 5746 printf("%s", args->atom.atom);
5747 break; 5747 break;
5748 case PRINT_FIELD: 5748 case TEP_PRINT_FIELD:
5749 printf("REC->%s", args->field.name); 5749 printf("REC->%s", args->field.name);
5750 break; 5750 break;
5751 case PRINT_FLAGS: 5751 case TEP_PRINT_FLAGS:
5752 printf("__print_flags("); 5752 printf("__print_flags(");
5753 print_args(args->flags.field); 5753 print_args(args->flags.field);
5754 printf(", %s, ", args->flags.delim); 5754 printf(", %s, ", args->flags.delim);
@@ -5758,7 +5758,7 @@ static void print_args(struct tep_print_arg *args)
5758 trace_seq_destroy(&s); 5758 trace_seq_destroy(&s);
5759 printf(")"); 5759 printf(")");
5760 break; 5760 break;
5761 case PRINT_SYMBOL: 5761 case TEP_PRINT_SYMBOL:
5762 printf("__print_symbolic("); 5762 printf("__print_symbolic(");
5763 print_args(args->symbol.field); 5763 print_args(args->symbol.field);
5764 printf(", "); 5764 printf(", ");
@@ -5768,21 +5768,21 @@ static void print_args(struct tep_print_arg *args)
5768 trace_seq_destroy(&s); 5768 trace_seq_destroy(&s);
5769 printf(")"); 5769 printf(")");
5770 break; 5770 break;
5771 case PRINT_HEX: 5771 case TEP_PRINT_HEX:
5772 printf("__print_hex("); 5772 printf("__print_hex(");
5773 print_args(args->hex.field); 5773 print_args(args->hex.field);
5774 printf(", "); 5774 printf(", ");
5775 print_args(args->hex.size); 5775 print_args(args->hex.size);
5776 printf(")"); 5776 printf(")");
5777 break; 5777 break;
5778 case PRINT_HEX_STR: 5778 case TEP_PRINT_HEX_STR:
5779 printf("__print_hex_str("); 5779 printf("__print_hex_str(");
5780 print_args(args->hex.field); 5780 print_args(args->hex.field);
5781 printf(", "); 5781 printf(", ");
5782 print_args(args->hex.size); 5782 print_args(args->hex.size);
5783 printf(")"); 5783 printf(")");
5784 break; 5784 break;
5785 case PRINT_INT_ARRAY: 5785 case TEP_PRINT_INT_ARRAY:
5786 printf("__print_array("); 5786 printf("__print_array(");
5787 print_args(args->int_array.field); 5787 print_args(args->int_array.field);
5788 printf(", "); 5788 printf(", ");
@@ -5791,18 +5791,18 @@ static void print_args(struct tep_print_arg *args)
5791 print_args(args->int_array.el_size); 5791 print_args(args->int_array.el_size);
5792 printf(")"); 5792 printf(")");
5793 break; 5793 break;
5794 case PRINT_STRING: 5794 case TEP_PRINT_STRING:
5795 case PRINT_BSTRING: 5795 case TEP_PRINT_BSTRING:
5796 printf("__get_str(%s)", args->string.string); 5796 printf("__get_str(%s)", args->string.string);
5797 break; 5797 break;
5798 case PRINT_BITMASK: 5798 case TEP_PRINT_BITMASK:
5799 printf("__get_bitmask(%s)", args->bitmask.bitmask); 5799 printf("__get_bitmask(%s)", args->bitmask.bitmask);
5800 break; 5800 break;
5801 case PRINT_TYPE: 5801 case TEP_PRINT_TYPE:
5802 printf("(%s)", args->typecast.type); 5802 printf("(%s)", args->typecast.type);
5803 print_args(args->typecast.item); 5803 print_args(args->typecast.item);
5804 break; 5804 break;
5805 case PRINT_OP: 5805 case TEP_PRINT_OP:
5806 if (strcmp(args->op.op, ":") == 0) 5806 if (strcmp(args->op.op, ":") == 0)
5807 print_paren = 0; 5807 print_paren = 0;
5808 if (print_paren) 5808 if (print_paren)
@@ -6101,7 +6101,7 @@ enum tep_errno __tep_parse_format(struct tep_event_format **eventp,
6101 event->flags |= TEP_EVENT_FL_FAILED; 6101 event->flags |= TEP_EVENT_FL_FAILED;
6102 return TEP_ERRNO__OLD_FTRACE_ARG_FAILED; 6102 return TEP_ERRNO__OLD_FTRACE_ARG_FAILED;
6103 } 6103 }
6104 arg->type = PRINT_FIELD; 6104 arg->type = TEP_PRINT_FIELD;
6105 arg->field.name = strdup(field->name); 6105 arg->field.name = strdup(field->name);
6106 if (!arg->field.name) { 6106 if (!arg->field.name) {
6107 event->flags |= TEP_EVENT_FL_FAILED; 6107 event->flags |= TEP_EVENT_FL_FAILED;