@@ -1097,8 +1097,8 @@ size_t kshark_load_data_matrix(struct kshark_context *kshark_ctx,
return -ENOMEM;
}
-static const char *kshark_get_latency(struct tep_handle *pe,
- struct tep_record *record)
+static const char *get_latency(struct tep_handle *pe,
+ struct tep_record *record)
{
if (!record)
return NULL;
@@ -1108,7 +1108,7 @@ static const char *kshark_get_latency(struct tep_handle *pe,
return seq.buffer;
}
-static const char *kshark_get_info(struct tep_handle *pe,
+static const char *get_info(struct tep_handle *pe,
struct tep_record *record,
struct tep_event *event)
{
@@ -1233,7 +1233,7 @@ const char *kshark_get_latency_easy(struct kshark_entry *entry)
pthread_mutex_lock(&kshark_ctx->input_mutex);
data = tracecmd_read_at(kshark_ctx->handle, entry->offset, NULL);
- lat = kshark_get_latency(kshark_ctx->pevent, data);
+ lat = get_latency(kshark_ctx->pevent, data);
tracecmd_free_record(data);
pthread_mutex_unlock(&kshark_ctx->input_mutex);
@@ -1376,7 +1376,7 @@ const char *kshark_get_info_easy(struct kshark_entry *entry)
event_id = tep_data_type(kshark_ctx->pevent, data);
event = tep_find_event(kshark_ctx->pevent, event_id);
if (event)
- info = kshark_get_info(kshark_ctx->pevent, data, event);
+ info = get_info(kshark_ctx->pevent, data, event);
tracecmd_free_record(data);
@@ -1471,7 +1471,7 @@ char* kshark_dump_entry(const struct kshark_entry *entry)
event = tep_find_event(kshark_ctx->pevent, entry->event_id);
event_name = event? event->name : "[UNKNOWN EVENT]";
- lat = kshark_get_latency(kshark_ctx->pevent, data);
+ lat = get_latency(kshark_ctx->pevent, data);
size = asprintf(&temp_str, "%" PRIu64 "; %s-%i; CPU %i; %s;",
entry->ts,
@@ -1480,7 +1480,7 @@ char* kshark_dump_entry(const struct kshark_entry *entry)
entry->cpu,
lat);
- info = kshark_get_info(kshark_ctx->pevent, data, event);
+ info = get_info(kshark_ctx->pevent, data, event);
if (size > 0) {
size = asprintf(&entry_str, "%s %s; %s; 0x%x",
"kshark" prefix is needed only for the public methods of the API. We are changing the names of those static methods because we need to use those names when integrating the data streams into the API.i Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com> --- src/libkshark.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)