|
@@ -503,7 +503,7 @@ find_func(struct tep_handle *pevent, unsigned long long addr)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * pevent_find_function - find a function by a given address
|
|
|
|
|
|
+ * tep_find_function - find a function by a given address
|
|
* @pevent: handle for the pevent
|
|
* @pevent: handle for the pevent
|
|
* @addr: the address to find the function with
|
|
* @addr: the address to find the function with
|
|
*
|
|
*
|
|
@@ -511,7 +511,7 @@ find_func(struct tep_handle *pevent, unsigned long long addr)
|
|
* address. Note, the address does not have to be exact, it
|
|
* address. Note, the address does not have to be exact, it
|
|
* will select the function that would contain the address.
|
|
* will select the function that would contain the address.
|
|
*/
|
|
*/
|
|
-const char *pevent_find_function(struct tep_handle *pevent, unsigned long long addr)
|
|
|
|
|
|
+const char *tep_find_function(struct tep_handle *pevent, unsigned long long addr)
|
|
{
|
|
{
|
|
struct func_map *map;
|
|
struct func_map *map;
|
|
|
|
|
|
@@ -523,16 +523,16 @@ const char *pevent_find_function(struct tep_handle *pevent, unsigned long long a
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * pevent_find_function_address - find a function address by a given address
|
|
|
|
|
|
+ * tep_find_function_address - find a function address by a given address
|
|
* @pevent: handle for the pevent
|
|
* @pevent: handle for the pevent
|
|
* @addr: the address to find the function with
|
|
* @addr: the address to find the function with
|
|
*
|
|
*
|
|
* Returns the address the function starts at. This can be used in
|
|
* Returns the address the function starts at. This can be used in
|
|
- * conjunction with pevent_find_function to print both the function
|
|
|
|
|
|
+ * conjunction with tep_find_function to print both the function
|
|
* name and the function offset.
|
|
* name and the function offset.
|
|
*/
|
|
*/
|
|
unsigned long long
|
|
unsigned long long
|
|
-pevent_find_function_address(struct tep_handle *pevent, unsigned long long addr)
|
|
|
|
|
|
+tep_find_function_address(struct tep_handle *pevent, unsigned long long addr)
|
|
{
|
|
{
|
|
struct func_map *map;
|
|
struct func_map *map;
|
|
|
|
|
|
@@ -3498,7 +3498,7 @@ struct event_format *tep_find_event(struct tep_handle *pevent, int id)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * pevent_find_event_by_name - find an event by given name
|
|
|
|
|
|
+ * tep_find_event_by_name - find an event by given name
|
|
* @pevent: a handle to the pevent
|
|
* @pevent: a handle to the pevent
|
|
* @sys: the system name to search for
|
|
* @sys: the system name to search for
|
|
* @name: the name of the event to search for
|
|
* @name: the name of the event to search for
|
|
@@ -3507,8 +3507,8 @@ struct event_format *tep_find_event(struct tep_handle *pevent, int id)
|
|
* @sys. If @sys is NULL the first event with @name is returned.
|
|
* @sys. If @sys is NULL the first event with @name is returned.
|
|
*/
|
|
*/
|
|
struct event_format *
|
|
struct event_format *
|
|
-pevent_find_event_by_name(struct tep_handle *pevent,
|
|
|
|
- const char *sys, const char *name)
|
|
|
|
|
|
+tep_find_event_by_name(struct tep_handle *pevent,
|
|
|
|
+ const char *sys, const char *name)
|
|
{
|
|
{
|
|
struct event_format *event;
|
|
struct event_format *event;
|
|
int i;
|
|
int i;
|
|
@@ -5433,7 +5433,7 @@ static bool is_timestamp_in_us(char *trace_clock, bool use_trace_clock)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * pevent_find_event_by_record - return the event from a given record
|
|
|
|
|
|
+ * tep_find_event_by_record - return the event from a given record
|
|
* @pevent: a handle to the pevent
|
|
* @pevent: a handle to the pevent
|
|
* @record: The record to get the event from
|
|
* @record: The record to get the event from
|
|
*
|
|
*
|
|
@@ -5441,7 +5441,7 @@ static bool is_timestamp_in_us(char *trace_clock, bool use_trace_clock)
|
|
* is found.
|
|
* is found.
|
|
*/
|
|
*/
|
|
struct event_format *
|
|
struct event_format *
|
|
-pevent_find_event_by_record(struct tep_handle *pevent, struct tep_record *record)
|
|
|
|
|
|
+tep_find_event_by_record(struct tep_handle *pevent, struct tep_record *record)
|
|
{
|
|
{
|
|
int type;
|
|
int type;
|
|
|
|
|
|
@@ -5564,7 +5564,7 @@ void tep_print_event(struct tep_handle *pevent, struct trace_seq *s,
|
|
{
|
|
{
|
|
struct event_format *event;
|
|
struct event_format *event;
|
|
|
|
|
|
- event = pevent_find_event_by_record(pevent, record);
|
|
|
|
|
|
+ event = tep_find_event_by_record(pevent, record);
|
|
if (!event) {
|
|
if (!event) {
|
|
int i;
|
|
int i;
|
|
int type = trace_parse_common_type(pevent, record->data);
|
|
int type = trace_parse_common_type(pevent, record->data);
|
|
@@ -6607,7 +6607,7 @@ static struct event_format *pevent_search_event(struct tep_handle *pevent, int i
|
|
if (sys_name && (strcmp(sys_name, event->system) != 0))
|
|
if (sys_name && (strcmp(sys_name, event->system) != 0))
|
|
return NULL;
|
|
return NULL;
|
|
} else {
|
|
} else {
|
|
- event = pevent_find_event_by_name(pevent, sys_name, event_name);
|
|
|
|
|
|
+ event = tep_find_event_by_name(pevent, sys_name, event_name);
|
|
if (!event)
|
|
if (!event)
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|