* [PATCH 1/4] kernel-shark-qt: Change "pevent_" to "tep_" in Doxygen.
@ 2018-08-29 16:29 Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c Yordan Karadzhov (VMware)
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Yordan Karadzhov (VMware) @ 2018-08-29 16:29 UTC (permalink / raw)
To: rostedt; +Cc: linux-trace-devel, Yordan Karadzhov (VMware)
The naming convention has changed in the code already but we forgot to do
this in the Doxygen documentation.
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
kernel-shark-qt/src/libkshark.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel-shark-qt/src/libkshark.c b/kernel-shark-qt/src/libkshark.c
index d07bdd8..1b7e544 100644
--- a/kernel-shark-qt/src/libkshark.c
+++ b/kernel-shark-qt/src/libkshark.c
@@ -759,7 +759,7 @@ ssize_t kshark_load_data_entries(struct kshark_context *kshark_ctx,
/**
* @brief Load the content of the trace data file into an array of
- * pevent_records. Use this function only if you need fast access
+ * tep_records. Use this function only if you need fast access
* to all fields of the record.
*
* @param kshark_ctx: Input location for the session context pointer.
@@ -962,14 +962,14 @@ ssize_t kshark_find_entry_by_time(uint64_t time,
}
/**
- * @brief Binary search inside a time-sorted array of pevent_records.
+ * @brief Binary search inside a time-sorted array of tep_records.
*
* @param time: The value of time to search for.
* @param data: Input location for the trace data.
* @param l: Array index specifying the lower edge of the range to search in.
* @param h: Array index specifying the upper edge of the range to search in.
*
- * @returns On success, the first pevent_record inside the range, having a
+ * @returns On success, the first tep_record inside the range, having a
timestamp equal or bigger than "time".
If all entries inside the range have timestamps greater than "time"
the function returns BSEARCH_ALL_GREATER (negative value).
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c
2018-08-29 16:29 [PATCH 1/4] kernel-shark-qt: Change "pevent_" to "tep_" in Doxygen Yordan Karadzhov (VMware)
@ 2018-08-29 16:29 ` Yordan Karadzhov (VMware)
2018-08-29 16:32 ` Steven Rostedt
2018-08-29 16:29 ` [PATCH 3/4] kernel-shark-qt: Remove TODO comment in kshark_load_data_entries() Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 4/4] kernel-shark-qt: Fix Doxygen doc. for libkshark-model.c Yordan Karadzhov (VMware)
2 siblings, 1 reply; 7+ messages in thread
From: Yordan Karadzhov (VMware) @ 2018-08-29 16:29 UTC (permalink / raw)
To: rostedt; +Cc: linux-trace-devel, Yordan Karadzhov (VMware)
The alignment of the function arguments has to be fixed after the
naming convention changes.
This version of the patch contains a number of improvements suggested
by Steven Rostedt. Thanks Steven!
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
kernel-shark-qt/src/libkshark-configio.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel-shark-qt/src/libkshark-configio.c b/kernel-shark-qt/src/libkshark-configio.c
index 484da93..cdc8c76 100644
--- a/kernel-shark-qt/src/libkshark-configio.c
+++ b/kernel-shark-qt/src/libkshark-configio.c
@@ -1034,7 +1034,7 @@ static bool kshark_adv_filters_to_json(struct kshark_context *kshark_ctx,
for (i = 0; events[i]; i++) {
str = tep_filter_make_string(adv_filter,
- events[i]->id);
+ events[i]->id);
if (!str)
continue;
@@ -1137,7 +1137,7 @@ static bool kshark_adv_filters_from_json(struct kshark_context *kshark_ctx,
json_object_get_string(jcond));
ret = tep_filter_add_filter_str(adv_filter,
- filter_str);
+ filter_str);
if (ret < 0)
goto fail;
}
@@ -1149,7 +1149,7 @@ static bool kshark_adv_filters_from_json(struct kshark_context *kshark_ctx,
char error_str[200];
int error_status =
tep_strerror(kshark_ctx->pevent, ret, error_str,
- sizeof(error_str));
+ sizeof(error_str));
if (error_status == 0)
fprintf(stderr, "filter failed due to: %s\n", error_str);
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c
2018-08-29 16:29 ` [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c Yordan Karadzhov (VMware)
@ 2018-08-29 16:32 ` Steven Rostedt
2018-08-29 16:35 ` Yordan Karadzhov (VMware)
0 siblings, 1 reply; 7+ messages in thread
From: Steven Rostedt @ 2018-08-29 16:32 UTC (permalink / raw)
To: Yordan Karadzhov (VMware); +Cc: linux-trace-devel
On Wed, 29 Aug 2018 19:29:25 +0300
"Yordan Karadzhov (VMware)" <y.karadz@gmail.com> wrote:
> The alignment of the function arguments has to be fixed after the
> naming convention changes.
>
> This version of the patch contains a number of improvements suggested
> by Steven Rostedt. Thanks Steven!
I don't think I need credit for a whitespace fix patch ;-)
-- Steve
>
> Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
> ---
> kernel-shark-qt/src/libkshark-configio.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/kernel-shark-qt/src/libkshark-configio.c b/kernel-shark-qt/src/libkshark-configio.c
> index 484da93..cdc8c76 100644
> --- a/kernel-shark-qt/src/libkshark-configio.c
> +++ b/kernel-shark-qt/src/libkshark-configio.c
> @@ -1034,7 +1034,7 @@ static bool kshark_adv_filters_to_json(struct kshark_context *kshark_ctx,
>
> for (i = 0; events[i]; i++) {
> str = tep_filter_make_string(adv_filter,
> - events[i]->id);
> + events[i]->id);
> if (!str)
> continue;
>
> @@ -1137,7 +1137,7 @@ static bool kshark_adv_filters_from_json(struct kshark_context *kshark_ctx,
> json_object_get_string(jcond));
>
> ret = tep_filter_add_filter_str(adv_filter,
> - filter_str);
> + filter_str);
> if (ret < 0)
> goto fail;
> }
> @@ -1149,7 +1149,7 @@ static bool kshark_adv_filters_from_json(struct kshark_context *kshark_ctx,
> char error_str[200];
> int error_status =
> tep_strerror(kshark_ctx->pevent, ret, error_str,
> - sizeof(error_str));
> + sizeof(error_str));
>
> if (error_status == 0)
> fprintf(stderr, "filter failed due to: %s\n", error_str);
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c
2018-08-29 16:32 ` Steven Rostedt
@ 2018-08-29 16:35 ` Yordan Karadzhov (VMware)
0 siblings, 0 replies; 7+ messages in thread
From: Yordan Karadzhov (VMware) @ 2018-08-29 16:35 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-trace-devel
On 29.08.2018 19:32, Steven Rostedt wrote:
>> This version of the patch contains a number of improvements suggested
>> by Steven Rostedt. Thanks Steven!
> I don't think I need credit for a whitespace fix patch;-)
>
> -- Steve
>
:-D This patch was automatically generated during the rebase because I
made the change when resolving the conflicts.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/4] kernel-shark-qt: Remove TODO comment in kshark_load_data_entries()
2018-08-29 16:29 [PATCH 1/4] kernel-shark-qt: Change "pevent_" to "tep_" in Doxygen Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c Yordan Karadzhov (VMware)
@ 2018-08-29 16:29 ` Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 4/4] kernel-shark-qt: Fix Doxygen doc. for libkshark-model.c Yordan Karadzhov (VMware)
2 siblings, 0 replies; 7+ messages in thread
From: Yordan Karadzhov (VMware) @ 2018-08-29 16:29 UTC (permalink / raw)
To: rostedt; +Cc: linux-trace-devel, Yordan Karadzhov (VMware)
The problem described by the TODO message was fixed, but we forgot
to remove the message itself.
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
kernel-shark-qt/src/libkshark.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/kernel-shark-qt/src/libkshark.c b/kernel-shark-qt/src/libkshark.c
index 1b7e544..b4a76ae 100644
--- a/kernel-shark-qt/src/libkshark.c
+++ b/kernel-shark-qt/src/libkshark.c
@@ -712,13 +712,6 @@ ssize_t kshark_load_data_entries(struct kshark_context *kshark_ctx,
if (*data_rows)
free(*data_rows);
- /*
- * TODO: Getting the records separately slows this function
- * down, instead of just accessing the records when
- * setting up the kernel entries. But this keeps the
- * code simplier. We should revisit to see if we can
- * bring back the performance.
- */
total = get_records(kshark_ctx, &rec_list, type);
if (total < 0)
goto fail;
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] kernel-shark-qt: Fix Doxygen doc. for libkshark-model.c
2018-08-29 16:29 [PATCH 1/4] kernel-shark-qt: Change "pevent_" to "tep_" in Doxygen Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 3/4] kernel-shark-qt: Remove TODO comment in kshark_load_data_entries() Yordan Karadzhov (VMware)
@ 2018-08-29 16:29 ` Yordan Karadzhov (VMware)
2018-08-29 16:34 ` Steven Rostedt
2 siblings, 1 reply; 7+ messages in thread
From: Yordan Karadzhov (VMware) @ 2018-08-29 16:29 UTC (permalink / raw)
To: rostedt; +Cc: linux-trace-devel, Yordan Karadzhov (VMware)
This patch corrects some typos in the Doxygen documentation of
libkshark-model.c
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
kernel-shark-qt/src/libkshark-model.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel-shark-qt/src/libkshark-model.c b/kernel-shark-qt/src/libkshark-model.c
index 3138257..246a60c 100644
--- a/kernel-shark-qt/src/libkshark-model.c
+++ b/kernel-shark-qt/src/libkshark-model.c
@@ -5,7 +5,7 @@
*/
/**
- * @file libkshark.c
+ * @file libkshark-model.c
* @brief Visualization model for FTRACE (trace-cmd) data.
*/
@@ -16,13 +16,13 @@
// KernelShark
#include "libkshark-model.h"
-/* The index of the Upper Overflow bin. */
+/** The index of the Upper Overflow bin. */
#define UOB(histo) (histo->n_bins)
-/* The index of the Lower Overflow bin. */
+/** The index of the Lower Overflow bin. */
#define LOB(histo) (histo->n_bins + 1)
-/* For all bins */
+/** For all bins. */
# define ALLB(histo) LOB(histo)
/**
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-08-29 20:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-29 16:29 [PATCH 1/4] kernel-shark-qt: Change "pevent_" to "tep_" in Doxygen Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 2/4] kernel-shark-qt: Restore the alignment in libkshark-configio.c Yordan Karadzhov (VMware)
2018-08-29 16:32 ` Steven Rostedt
2018-08-29 16:35 ` Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 3/4] kernel-shark-qt: Remove TODO comment in kshark_load_data_entries() Yordan Karadzhov (VMware)
2018-08-29 16:29 ` [PATCH 4/4] kernel-shark-qt: Fix Doxygen doc. for libkshark-model.c Yordan Karadzhov (VMware)
2018-08-29 16:34 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).