diff options
| author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-08-08 14:02:59 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-08-13 14:24:26 -0400 |
| commit | 3cf477836e24187f2f3acbbf48c80a478d979093 (patch) | |
| tree | da4adae726207ab9005764ecef5bb435e02c8e0d /tools | |
| parent | d97f4ef177ddf8b877de2545dbd67d1faf6878f2 (diff) | |
tools lib traceevent: Rename pevent_function* APIs
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_" and not "pevent_". This changes
APIs: pevent_function_handler, pevent_func_handler,
pevent_func_arg_type, PEVENT_FUNC_ARG_VOID, PEVENT_FUNC_ARG_INT,
PEVENT_FUNC_ARG_LONG, PEVENT_FUNC_ARG_STRING, PEVENT_FUNC_ARG_PTRS,
PEVENT_FUNC_ARG_MAX_TYPES
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180808180701.935881193@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/lib/traceevent/event-parse.c | 62 | ||||
| -rw-r--r-- | tools/lib/traceevent/event-parse.h | 30 | ||||
| -rw-r--r-- | tools/lib/traceevent/plugin_cfg80211.c | 6 | ||||
| -rw-r--r-- | tools/lib/traceevent/plugin_jbd2.c | 12 | ||||
| -rw-r--r-- | tools/lib/traceevent/plugin_kvm.c | 6 | ||||
| -rw-r--r-- | tools/lib/traceevent/plugin_scsi.c | 10 | ||||
| -rw-r--r-- | tools/lib/traceevent/plugin_xen.c | 6 |
7 files changed, 66 insertions, 66 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 01b5dbf2abdf..8d0ce0ea52dc 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
| @@ -94,14 +94,14 @@ struct event_handler { | |||
| 94 | 94 | ||
| 95 | struct pevent_func_params { | 95 | struct pevent_func_params { |
| 96 | struct pevent_func_params *next; | 96 | struct pevent_func_params *next; |
| 97 | enum pevent_func_arg_type type; | 97 | enum tep_func_arg_type type; |
| 98 | }; | 98 | }; |
| 99 | 99 | ||
| 100 | struct pevent_function_handler { | 100 | struct tep_function_handler { |
| 101 | struct pevent_function_handler *next; | 101 | struct tep_function_handler *next; |
| 102 | enum pevent_func_arg_type ret_type; | 102 | enum tep_func_arg_type ret_type; |
| 103 | char *name; | 103 | char *name; |
| 104 | pevent_func_handler func; | 104 | tep_func_handler func; |
| 105 | struct pevent_func_params *params; | 105 | struct pevent_func_params *params; |
| 106 | int nr_args; | 106 | int nr_args; |
| 107 | }; | 107 | }; |
| @@ -110,7 +110,7 @@ static unsigned long long | |||
| 110 | process_defined_func(struct trace_seq *s, void *data, int size, | 110 | process_defined_func(struct trace_seq *s, void *data, int size, |
| 111 | struct event_format *event, struct print_arg *arg); | 111 | struct event_format *event, struct print_arg *arg); |
| 112 | 112 | ||
| 113 | static void free_func_handle(struct pevent_function_handler *func); | 113 | static void free_func_handle(struct tep_function_handler *func); |
| 114 | 114 | ||
| 115 | /** | 115 | /** |
| 116 | * pevent_buffer_init - init buffer for parsing | 116 | * pevent_buffer_init - init buffer for parsing |
| @@ -2914,10 +2914,10 @@ process_bitmask(struct event_format *event __maybe_unused, struct print_arg *arg | |||
| 2914 | return EVENT_ERROR; | 2914 | return EVENT_ERROR; |
| 2915 | } | 2915 | } |
| 2916 | 2916 | ||
| 2917 | static struct pevent_function_handler * | 2917 | static struct tep_function_handler * |
| 2918 | find_func_handler(struct tep_handle *pevent, char *func_name) | 2918 | find_func_handler(struct tep_handle *pevent, char *func_name) |
| 2919 | { | 2919 | { |
| 2920 | struct pevent_function_handler *func; | 2920 | struct tep_function_handler *func; |
| 2921 | 2921 | ||
| 2922 | if (!pevent) | 2922 | if (!pevent) |
| 2923 | return NULL; | 2923 | return NULL; |
| @@ -2932,8 +2932,8 @@ find_func_handler(struct tep_handle *pevent, char *func_name) | |||
| 2932 | 2932 | ||
| 2933 | static void remove_func_handler(struct tep_handle *pevent, char *func_name) | 2933 | static void remove_func_handler(struct tep_handle *pevent, char *func_name) |
| 2934 | { | 2934 | { |
| 2935 | struct pevent_function_handler *func; | 2935 | struct tep_function_handler *func; |
| 2936 | struct pevent_function_handler **next; | 2936 | struct tep_function_handler **next; |
| 2937 | 2937 | ||
| 2938 | next = &pevent->func_handlers; | 2938 | next = &pevent->func_handlers; |
| 2939 | while ((func = *next)) { | 2939 | while ((func = *next)) { |
| @@ -2947,7 +2947,7 @@ static void remove_func_handler(struct tep_handle *pevent, char *func_name) | |||
| 2947 | } | 2947 | } |
| 2948 | 2948 | ||
| 2949 | static enum event_type | 2949 | static enum event_type |
| 2950 | process_func_handler(struct event_format *event, struct pevent_function_handler *func, | 2950 | process_func_handler(struct event_format *event, struct tep_function_handler *func, |
| 2951 | struct print_arg *arg, char **tok) | 2951 | struct print_arg *arg, char **tok) |
| 2952 | { | 2952 | { |
| 2953 | struct print_arg **next_arg; | 2953 | struct print_arg **next_arg; |
| @@ -3008,7 +3008,7 @@ static enum event_type | |||
| 3008 | process_function(struct event_format *event, struct print_arg *arg, | 3008 | process_function(struct event_format *event, struct print_arg *arg, |
| 3009 | char *token, char **tok) | 3009 | char *token, char **tok) |
| 3010 | { | 3010 | { |
| 3011 | struct pevent_function_handler *func; | 3011 | struct tep_function_handler *func; |
| 3012 | 3012 | ||
| 3013 | if (strcmp(token, "__print_flags") == 0) { | 3013 | if (strcmp(token, "__print_flags") == 0) { |
| 3014 | free_token(token); | 3014 | free_token(token); |
| @@ -4132,7 +4132,7 @@ static unsigned long long | |||
| 4132 | process_defined_func(struct trace_seq *s, void *data, int size, | 4132 | process_defined_func(struct trace_seq *s, void *data, int size, |
| 4133 | struct event_format *event, struct print_arg *arg) | 4133 | struct event_format *event, struct print_arg *arg) |
| 4134 | { | 4134 | { |
| 4135 | struct pevent_function_handler *func_handle = arg->func.func; | 4135 | struct tep_function_handler *func_handle = arg->func.func; |
| 4136 | struct pevent_func_params *param; | 4136 | struct pevent_func_params *param; |
| 4137 | unsigned long long *args; | 4137 | unsigned long long *args; |
| 4138 | unsigned long long ret; | 4138 | unsigned long long ret; |
| @@ -4159,12 +4159,12 @@ process_defined_func(struct trace_seq *s, void *data, int size, | |||
| 4159 | 4159 | ||
| 4160 | for (i = 0; i < func_handle->nr_args; i++) { | 4160 | for (i = 0; i < func_handle->nr_args; i++) { |
| 4161 | switch (param->type) { | 4161 | switch (param->type) { |
| 4162 | case PEVENT_FUNC_ARG_INT: | 4162 | case TEP_FUNC_ARG_INT: |
| 4163 | case PEVENT_FUNC_ARG_LONG: | 4163 | case TEP_FUNC_ARG_LONG: |
| 4164 | case PEVENT_FUNC_ARG_PTR: | 4164 | case TEP_FUNC_ARG_PTR: |
| 4165 | args[i] = eval_num_arg(data, size, event, farg); | 4165 | args[i] = eval_num_arg(data, size, event, farg); |
| 4166 | break; | 4166 | break; |
| 4167 | case PEVENT_FUNC_ARG_STRING: | 4167 | case TEP_FUNC_ARG_STRING: |
| 4168 | trace_seq_init(&str); | 4168 | trace_seq_init(&str); |
| 4169 | print_str_arg(&str, data, size, event, "%s", -1, farg); | 4169 | print_str_arg(&str, data, size, event, "%s", -1, farg); |
| 4170 | trace_seq_terminate(&str); | 4170 | trace_seq_terminate(&str); |
| @@ -6461,7 +6461,7 @@ int tep_print_func_field(struct trace_seq *s, const char *fmt, | |||
| 6461 | return -1; | 6461 | return -1; |
| 6462 | } | 6462 | } |
| 6463 | 6463 | ||
| 6464 | static void free_func_handle(struct pevent_function_handler *func) | 6464 | static void free_func_handle(struct tep_function_handler *func) |
| 6465 | { | 6465 | { |
| 6466 | struct pevent_func_params *params; | 6466 | struct pevent_func_params *params; |
| 6467 | 6467 | ||
| @@ -6482,24 +6482,24 @@ static void free_func_handle(struct pevent_function_handler *func) | |||
| 6482 | * @func: the function to process the helper function | 6482 | * @func: the function to process the helper function |
| 6483 | * @ret_type: the return type of the helper function | 6483 | * @ret_type: the return type of the helper function |
| 6484 | * @name: the name of the helper function | 6484 | * @name: the name of the helper function |
| 6485 | * @parameters: A list of enum pevent_func_arg_type | 6485 | * @parameters: A list of enum tep_func_arg_type |
| 6486 | * | 6486 | * |
| 6487 | * Some events may have helper functions in the print format arguments. | 6487 | * Some events may have helper functions in the print format arguments. |
| 6488 | * This allows a plugin to dynamically create a way to process one | 6488 | * This allows a plugin to dynamically create a way to process one |
| 6489 | * of these functions. | 6489 | * of these functions. |
| 6490 | * | 6490 | * |
| 6491 | * The @parameters is a variable list of pevent_func_arg_type enums that | 6491 | * The @parameters is a variable list of tep_func_arg_type enums that |
| 6492 | * must end with PEVENT_FUNC_ARG_VOID. | 6492 | * must end with TEP_FUNC_ARG_VOID. |
| 6493 | */ | 6493 | */ |
| 6494 | int pevent_register_print_function(struct tep_handle *pevent, | 6494 | int pevent_register_print_function(struct tep_handle *pevent, |
| 6495 | pevent_func_handler func, | 6495 | tep_func_handler func, |
| 6496 | enum pevent_func_arg_type ret_type, | 6496 | enum tep_func_arg_type ret_type, |
| 6497 | char *name, ...) | 6497 | char *name, ...) |
| 6498 | { | 6498 | { |
| 6499 | struct pevent_function_handler *func_handle; | 6499 | struct tep_function_handler *func_handle; |
| 6500 | struct pevent_func_params **next_param; | 6500 | struct pevent_func_params **next_param; |
| 6501 | struct pevent_func_params *param; | 6501 | struct pevent_func_params *param; |
| 6502 | enum pevent_func_arg_type type; | 6502 | enum tep_func_arg_type type; |
| 6503 | va_list ap; | 6503 | va_list ap; |
| 6504 | int ret; | 6504 | int ret; |
| 6505 | 6505 | ||
| @@ -6532,11 +6532,11 @@ int pevent_register_print_function(struct tep_handle *pevent, | |||
| 6532 | next_param = &(func_handle->params); | 6532 | next_param = &(func_handle->params); |
| 6533 | va_start(ap, name); | 6533 | va_start(ap, name); |
| 6534 | for (;;) { | 6534 | for (;;) { |
| 6535 | type = va_arg(ap, enum pevent_func_arg_type); | 6535 | type = va_arg(ap, enum tep_func_arg_type); |
| 6536 | if (type == PEVENT_FUNC_ARG_VOID) | 6536 | if (type == TEP_FUNC_ARG_VOID) |
| 6537 | break; | 6537 | break; |
| 6538 | 6538 | ||
| 6539 | if (type >= PEVENT_FUNC_ARG_MAX_TYPES) { | 6539 | if (type >= TEP_FUNC_ARG_MAX_TYPES) { |
| 6540 | do_warning("Invalid argument type %d", type); | 6540 | do_warning("Invalid argument type %d", type); |
| 6541 | ret = TEP_ERRNO__INVALID_ARG_TYPE; | 6541 | ret = TEP_ERRNO__INVALID_ARG_TYPE; |
| 6542 | goto out_free; | 6542 | goto out_free; |
| @@ -6579,9 +6579,9 @@ int pevent_register_print_function(struct tep_handle *pevent, | |||
| 6579 | * Returns 0 if the handler was removed successully, -1 otherwise. | 6579 | * Returns 0 if the handler was removed successully, -1 otherwise. |
| 6580 | */ | 6580 | */ |
| 6581 | int pevent_unregister_print_function(struct tep_handle *pevent, | 6581 | int pevent_unregister_print_function(struct tep_handle *pevent, |
| 6582 | pevent_func_handler func, char *name) | 6582 | tep_func_handler func, char *name) |
| 6583 | { | 6583 | { |
| 6584 | struct pevent_function_handler *func_handle; | 6584 | struct tep_function_handler *func_handle; |
| 6585 | 6585 | ||
| 6586 | func_handle = find_func_handler(pevent, name); | 6586 | func_handle = find_func_handler(pevent, name); |
| 6587 | if (func_handle && func_handle->func == func) { | 6587 | if (func_handle && func_handle->func == func) { |
| @@ -6819,7 +6819,7 @@ void tep_free(struct tep_handle *pevent) | |||
| 6819 | struct cmdline_list *cmdlist, *cmdnext; | 6819 | struct cmdline_list *cmdlist, *cmdnext; |
| 6820 | struct func_list *funclist, *funcnext; | 6820 | struct func_list *funclist, *funcnext; |
| 6821 | struct printk_list *printklist, *printknext; | 6821 | struct printk_list *printklist, *printknext; |
| 6822 | struct pevent_function_handler *func_handler; | 6822 | struct tep_function_handler *func_handler; |
| 6823 | struct event_handler *handle; | 6823 | struct event_handler *handle; |
| 6824 | int i; | 6824 | int i; |
| 6825 | 6825 | ||
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index 3067f524fef8..81f34132fc47 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
| @@ -269,10 +269,10 @@ struct print_arg_op { | |||
| 269 | struct print_arg *right; | 269 | struct print_arg *right; |
| 270 | }; | 270 | }; |
| 271 | 271 | ||
| 272 | struct pevent_function_handler; | 272 | struct tep_function_handler; |
| 273 | 273 | ||
| 274 | struct print_arg_func { | 274 | struct print_arg_func { |
| 275 | struct pevent_function_handler *func; | 275 | struct tep_function_handler *func; |
| 276 | struct print_arg *args; | 276 | struct print_arg *args; |
| 277 | }; | 277 | }; |
| 278 | 278 | ||
| @@ -361,16 +361,16 @@ enum event_type { | |||
| 361 | EVENT_SQUOTE, | 361 | EVENT_SQUOTE, |
| 362 | }; | 362 | }; |
| 363 | 363 | ||
| 364 | typedef unsigned long long (*pevent_func_handler)(struct trace_seq *s, | 364 | typedef unsigned long long (*tep_func_handler)(struct trace_seq *s, |
| 365 | unsigned long long *args); | 365 | unsigned long long *args); |
| 366 | 366 | ||
| 367 | enum pevent_func_arg_type { | 367 | enum tep_func_arg_type { |
| 368 | PEVENT_FUNC_ARG_VOID, | 368 | TEP_FUNC_ARG_VOID, |
| 369 | PEVENT_FUNC_ARG_INT, | 369 | TEP_FUNC_ARG_INT, |
| 370 | PEVENT_FUNC_ARG_LONG, | 370 | TEP_FUNC_ARG_LONG, |
| 371 | PEVENT_FUNC_ARG_STRING, | 371 | TEP_FUNC_ARG_STRING, |
| 372 | PEVENT_FUNC_ARG_PTR, | 372 | TEP_FUNC_ARG_PTR, |
| 373 | PEVENT_FUNC_ARG_MAX_TYPES | 373 | TEP_FUNC_ARG_MAX_TYPES |
| 374 | }; | 374 | }; |
| 375 | 375 | ||
| 376 | enum tep_flag { | 376 | enum tep_flag { |
| @@ -524,7 +524,7 @@ struct tep_handle { | |||
| 524 | struct format_field *bprint_buf_field; | 524 | struct format_field *bprint_buf_field; |
| 525 | 525 | ||
| 526 | struct event_handler *handlers; | 526 | struct event_handler *handlers; |
| 527 | struct pevent_function_handler *func_handlers; | 527 | struct tep_function_handler *func_handlers; |
| 528 | 528 | ||
| 529 | /* cache */ | 529 | /* cache */ |
| 530 | struct event_format *last_event; | 530 | struct event_format *last_event; |
| @@ -680,11 +680,11 @@ int pevent_unregister_event_handler(struct tep_handle *pevent, int id, | |||
| 680 | const char *sys_name, const char *event_name, | 680 | const char *sys_name, const char *event_name, |
| 681 | tep_event_handler_func func, void *context); | 681 | tep_event_handler_func func, void *context); |
| 682 | int pevent_register_print_function(struct tep_handle *pevent, | 682 | int pevent_register_print_function(struct tep_handle *pevent, |
| 683 | pevent_func_handler func, | 683 | tep_func_handler func, |
| 684 | enum pevent_func_arg_type ret_type, | 684 | enum tep_func_arg_type ret_type, |
| 685 | char *name, ...); | 685 | char *name, ...); |
| 686 | int pevent_unregister_print_function(struct tep_handle *pevent, | 686 | int pevent_unregister_print_function(struct tep_handle *pevent, |
| 687 | pevent_func_handler func, char *name); | 687 | tep_func_handler func, char *name); |
| 688 | 688 | ||
| 689 | struct format_field *tep_find_common_field(struct event_format *event, const char *name); | 689 | struct format_field *tep_find_common_field(struct event_format *event, const char *name); |
| 690 | struct format_field *tep_find_field(struct event_format *event, const char *name); | 690 | struct format_field *tep_find_field(struct event_format *event, const char *name); |
diff --git a/tools/lib/traceevent/plugin_cfg80211.c b/tools/lib/traceevent/plugin_cfg80211.c index c189bbc9fa18..e0421e31509f 100644 --- a/tools/lib/traceevent/plugin_cfg80211.c +++ b/tools/lib/traceevent/plugin_cfg80211.c | |||
| @@ -29,10 +29,10 @@ int TEP_PLUGIN_LOADER(struct tep_handle *pevent) | |||
| 29 | { | 29 | { |
| 30 | pevent_register_print_function(pevent, | 30 | pevent_register_print_function(pevent, |
| 31 | process___le16_to_cpup, | 31 | process___le16_to_cpup, |
| 32 | PEVENT_FUNC_ARG_INT, | 32 | TEP_FUNC_ARG_INT, |
| 33 | "__le16_to_cpup", | 33 | "__le16_to_cpup", |
| 34 | PEVENT_FUNC_ARG_PTR, | 34 | TEP_FUNC_ARG_PTR, |
| 35 | PEVENT_FUNC_ARG_VOID); | 35 | TEP_FUNC_ARG_VOID); |
| 36 | return 0; | 36 | return 0; |
| 37 | } | 37 | } |
| 38 | 38 | ||
diff --git a/tools/lib/traceevent/plugin_jbd2.c b/tools/lib/traceevent/plugin_jbd2.c index 9b88aebb48a9..6da955ff037e 100644 --- a/tools/lib/traceevent/plugin_jbd2.c +++ b/tools/lib/traceevent/plugin_jbd2.c | |||
| @@ -51,17 +51,17 @@ int TEP_PLUGIN_LOADER(struct tep_handle *pevent) | |||
| 51 | { | 51 | { |
| 52 | pevent_register_print_function(pevent, | 52 | pevent_register_print_function(pevent, |
| 53 | process_jbd2_dev_to_name, | 53 | process_jbd2_dev_to_name, |
| 54 | PEVENT_FUNC_ARG_STRING, | 54 | TEP_FUNC_ARG_STRING, |
| 55 | "jbd2_dev_to_name", | 55 | "jbd2_dev_to_name", |
| 56 | PEVENT_FUNC_ARG_INT, | 56 | TEP_FUNC_ARG_INT, |
| 57 | PEVENT_FUNC_ARG_VOID); | 57 | TEP_FUNC_ARG_VOID); |
| 58 | 58 | ||
| 59 | pevent_register_print_function(pevent, | 59 | pevent_register_print_function(pevent, |
| 60 | process_jiffies_to_msecs, | 60 | process_jiffies_to_msecs, |
| 61 | PEVENT_FUNC_ARG_LONG, | 61 | TEP_FUNC_ARG_LONG, |
| 62 | "jiffies_to_msecs", | 62 | "jiffies_to_msecs", |
| 63 | PEVENT_FUNC_ARG_LONG, | 63 | TEP_FUNC_ARG_LONG, |
| 64 | PEVENT_FUNC_ARG_VOID); | 64 | TEP_FUNC_ARG_VOID); |
| 65 | return 0; | 65 | return 0; |
| 66 | } | 66 | } |
| 67 | 67 | ||
diff --git a/tools/lib/traceevent/plugin_kvm.c b/tools/lib/traceevent/plugin_kvm.c index d71bc3fde75b..c20f743edf1f 100644 --- a/tools/lib/traceevent/plugin_kvm.c +++ b/tools/lib/traceevent/plugin_kvm.c | |||
| @@ -479,10 +479,10 @@ int TEP_PLUGIN_LOADER(struct tep_handle *pevent) | |||
| 479 | 479 | ||
| 480 | pevent_register_print_function(pevent, | 480 | pevent_register_print_function(pevent, |
| 481 | process_is_writable_pte, | 481 | process_is_writable_pte, |
| 482 | PEVENT_FUNC_ARG_INT, | 482 | TEP_FUNC_ARG_INT, |
| 483 | "is_writable_pte", | 483 | "is_writable_pte", |
| 484 | PEVENT_FUNC_ARG_LONG, | 484 | TEP_FUNC_ARG_LONG, |
| 485 | PEVENT_FUNC_ARG_VOID); | 485 | TEP_FUNC_ARG_VOID); |
| 486 | return 0; | 486 | return 0; |
| 487 | } | 487 | } |
| 488 | 488 | ||
diff --git a/tools/lib/traceevent/plugin_scsi.c b/tools/lib/traceevent/plugin_scsi.c index bb9aea6fb000..ce38df7ed4d8 100644 --- a/tools/lib/traceevent/plugin_scsi.c +++ b/tools/lib/traceevent/plugin_scsi.c | |||
| @@ -417,12 +417,12 @@ int TEP_PLUGIN_LOADER(struct tep_handle *pevent) | |||
| 417 | { | 417 | { |
| 418 | pevent_register_print_function(pevent, | 418 | pevent_register_print_function(pevent, |
| 419 | process_scsi_trace_parse_cdb, | 419 | process_scsi_trace_parse_cdb, |
| 420 | PEVENT_FUNC_ARG_STRING, | 420 | TEP_FUNC_ARG_STRING, |
| 421 | "scsi_trace_parse_cdb", | 421 | "scsi_trace_parse_cdb", |
| 422 | PEVENT_FUNC_ARG_PTR, | 422 | TEP_FUNC_ARG_PTR, |
| 423 | PEVENT_FUNC_ARG_PTR, | 423 | TEP_FUNC_ARG_PTR, |
| 424 | PEVENT_FUNC_ARG_INT, | 424 | TEP_FUNC_ARG_INT, |
| 425 | PEVENT_FUNC_ARG_VOID); | 425 | TEP_FUNC_ARG_VOID); |
| 426 | return 0; | 426 | return 0; |
| 427 | } | 427 | } |
| 428 | 428 | ||
diff --git a/tools/lib/traceevent/plugin_xen.c b/tools/lib/traceevent/plugin_xen.c index 1973dd8abbfd..2ffbd91d5bb7 100644 --- a/tools/lib/traceevent/plugin_xen.c +++ b/tools/lib/traceevent/plugin_xen.c | |||
| @@ -123,10 +123,10 @@ int TEP_PLUGIN_LOADER(struct tep_handle *pevent) | |||
| 123 | { | 123 | { |
| 124 | pevent_register_print_function(pevent, | 124 | pevent_register_print_function(pevent, |
| 125 | process_xen_hypercall_name, | 125 | process_xen_hypercall_name, |
| 126 | PEVENT_FUNC_ARG_STRING, | 126 | TEP_FUNC_ARG_STRING, |
| 127 | "xen_hypercall_name", | 127 | "xen_hypercall_name", |
| 128 | PEVENT_FUNC_ARG_INT, | 128 | TEP_FUNC_ARG_INT, |
| 129 | PEVENT_FUNC_ARG_VOID); | 129 | TEP_FUNC_ARG_VOID); |
| 130 | return 0; | 130 | return 0; |
| 131 | } | 131 | } |
| 132 | 132 | ||
