aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r--tools/lib/traceevent/event-parse.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 8d0ce0ea52dc..0de470c07be9 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -324,7 +324,7 @@ int tep_register_comm(struct tep_handle *pevent, const char *comm, int pid)
324 return 0; 324 return 0;
325} 325}
326 326
327int pevent_register_trace_clock(struct tep_handle *pevent, const char *trace_clock) 327int tep_register_trace_clock(struct tep_handle *pevent, const char *trace_clock)
328{ 328{
329 pevent->trace_clock = strdup(trace_clock); 329 pevent->trace_clock = strdup(trace_clock);
330 if (!pevent->trace_clock) { 330 if (!pevent->trace_clock) {
@@ -544,7 +544,7 @@ pevent_find_function_address(struct tep_handle *pevent, unsigned long long addr)
544} 544}
545 545
546/** 546/**
547 * pevent_register_function - register a function with a given address 547 * tep_register_function - register a function with a given address
548 * @pevent: handle for the pevent 548 * @pevent: handle for the pevent
549 * @function: the function name to register 549 * @function: the function name to register
550 * @addr: the address the function starts at 550 * @addr: the address the function starts at
@@ -553,8 +553,8 @@ pevent_find_function_address(struct tep_handle *pevent, unsigned long long addr)
553 * This registers a function name with an address and module. 553 * This registers a function name with an address and module.
554 * The @func passed in is duplicated. 554 * The @func passed in is duplicated.
555 */ 555 */
556int pevent_register_function(struct tep_handle *pevent, char *func, 556int tep_register_function(struct tep_handle *pevent, char *func,
557 unsigned long long addr, char *mod) 557 unsigned long long addr, char *mod)
558{ 558{
559 struct func_list *item = malloc(sizeof(*item)); 559 struct func_list *item = malloc(sizeof(*item));
560 560
@@ -6477,7 +6477,7 @@ static void free_func_handle(struct tep_function_handler *func)
6477} 6477}
6478 6478
6479/** 6479/**
6480 * pevent_register_print_function - register a helper function 6480 * tep_register_print_function - register a helper function
6481 * @pevent: the handle to the pevent 6481 * @pevent: the handle to the pevent
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
@@ -6491,10 +6491,10 @@ static void free_func_handle(struct tep_function_handler *func)
6491 * The @parameters is a variable list of tep_func_arg_type enums that 6491 * The @parameters is a variable list of tep_func_arg_type enums that
6492 * must end with TEP_FUNC_ARG_VOID. 6492 * must end with TEP_FUNC_ARG_VOID.
6493 */ 6493 */
6494int pevent_register_print_function(struct tep_handle *pevent, 6494int tep_register_print_function(struct tep_handle *pevent,
6495 tep_func_handler func, 6495 tep_func_handler func,
6496 enum tep_func_arg_type ret_type, 6496 enum tep_func_arg_type ret_type,
6497 char *name, ...) 6497 char *name, ...)
6498{ 6498{
6499 struct tep_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;
@@ -6569,7 +6569,7 @@ int pevent_register_print_function(struct tep_handle *pevent,
6569} 6569}
6570 6570
6571/** 6571/**
6572 * pevent_unregister_print_function - unregister a helper function 6572 * tep_unregister_print_function - unregister a helper function
6573 * @pevent: the handle to the pevent 6573 * @pevent: the handle to the pevent
6574 * @func: the function to process the helper function 6574 * @func: the function to process the helper function
6575 * @name: the name of the helper function 6575 * @name: the name of the helper function
@@ -6578,8 +6578,8 @@ int pevent_register_print_function(struct tep_handle *pevent,
6578 * 6578 *
6579 * Returns 0 if the handler was removed successully, -1 otherwise. 6579 * Returns 0 if the handler was removed successully, -1 otherwise.
6580 */ 6580 */
6581int pevent_unregister_print_function(struct tep_handle *pevent, 6581int tep_unregister_print_function(struct tep_handle *pevent,
6582 tep_func_handler func, char *name) 6582 tep_func_handler func, char *name)
6583{ 6583{
6584 struct tep_function_handler *func_handle; 6584 struct tep_function_handler *func_handle;
6585 6585
@@ -6615,7 +6615,7 @@ static struct event_format *pevent_search_event(struct tep_handle *pevent, int i
6615} 6615}
6616 6616
6617/** 6617/**
6618 * pevent_register_event_handler - register a way to parse an event 6618 * tep_register_event_handler - register a way to parse an event
6619 * @pevent: the handle to the pevent 6619 * @pevent: the handle to the pevent
6620 * @id: the id of the event to register 6620 * @id: the id of the event to register
6621 * @sys_name: the system name the event belongs to 6621 * @sys_name: the system name the event belongs to
@@ -6631,9 +6631,9 @@ static struct event_format *pevent_search_event(struct tep_handle *pevent, int i
6631 * If @id is >= 0, then it is used to find the event. 6631 * If @id is >= 0, then it is used to find the event.
6632 * else @sys_name and @event_name are used. 6632 * else @sys_name and @event_name are used.
6633 */ 6633 */
6634int pevent_register_event_handler(struct tep_handle *pevent, int id, 6634int tep_register_event_handler(struct tep_handle *pevent, int id,
6635 const char *sys_name, const char *event_name, 6635 const char *sys_name, const char *event_name,
6636 tep_event_handler_func func, void *context) 6636 tep_event_handler_func func, void *context)
6637{ 6637{
6638 struct event_format *event; 6638 struct event_format *event;
6639 struct event_handler *handle; 6639 struct event_handler *handle;
@@ -6700,7 +6700,7 @@ static int handle_matches(struct event_handler *handler, int id,
6700} 6700}
6701 6701
6702/** 6702/**
6703 * pevent_unregister_event_handler - unregister an existing event handler 6703 * tep_unregister_event_handler - unregister an existing event handler
6704 * @pevent: the handle to the pevent 6704 * @pevent: the handle to the pevent
6705 * @id: the id of the event to unregister 6705 * @id: the id of the event to unregister
6706 * @sys_name: the system name the handler belongs to 6706 * @sys_name: the system name the handler belongs to
@@ -6715,9 +6715,9 @@ static int handle_matches(struct event_handler *handler, int id,
6715 * 6715 *
6716 * Returns 0 if handler was removed successfully, -1 if event was not found. 6716 * Returns 0 if handler was removed successfully, -1 if event was not found.
6717 */ 6717 */
6718int pevent_unregister_event_handler(struct tep_handle *pevent, int id, 6718int tep_unregister_event_handler(struct tep_handle *pevent, int id,
6719 const char *sys_name, const char *event_name, 6719 const char *sys_name, const char *event_name,
6720 tep_event_handler_func func, void *context) 6720 tep_event_handler_func func, void *context)
6721{ 6721{
6722 struct event_format *event; 6722 struct event_format *event;
6723 struct event_handler *handle; 6723 struct event_handler *handle;